Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Draw SWT widget on SWT canvas
Draw SWT widget on SWT canvas [message #1094750] Mon, 26 August 2013 02:21 Go to next message
Eclipse UserFriend
Hi, Just want to ask whether it is possible to draw an SWT widget (like a spinner) on an SWT canvas and specify x, y position in canvas to draw.
Thanks Smile
Re: Draw SWT widget on SWT canvas [message #1095388 is a reply to message #1094750] Mon, 26 August 2013 22:02 Go to previous message
Eclipse UserFriend
Hi, I think I find out how to do it, first declare:
Button btn = new Button(canvas, SWT.PUSH);
then hide it, btn.setVisible(false);
and whenever you want to show it, first set the position:
btn.setBounds(x,y, width, height);
Then, btn.setVisible(true).
Previous Topic:Google Earth Integration in 64-bit SWT application
Next Topic:Outlook E-Mail
Goto Forum:
  


Current Time: Wed Jul 16 00:08:26 EDT 2025

Powered by FUDForum. Page generated in 0.05330 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top