Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Trying to draw Button on top of Sash
Trying to draw Button on top of Sash [message #485985] Tue, 15 September 2009 19:29
Maureen Kraft is currently offline Maureen KraftFriend
Messages: 11
Registered: July 2009
Junior Member
I have a custom widget where I have added a Sash bar (or splitter) and I
would like to draw a button on top of the Sash.

No matter what I do, the button is always painted under the Sash bar. I've
put in calls to redraw the button after setting the bounds of the sash and
the button and after redrawing the sash. I've even added a paint listener
to the sash and have added a call to redraw the button inside the
paintControl. Nothing seems to work. I've had to make the Button's height
taller than the Sash's height so that I can see it is actually being drawn.

I am going to try creating a composite and putting the Sash and button on
the composite and then during the layout, setting bounds and calling
redraw of the Button after setting bounds and redrawing the Sash.

Any other thoughts?

Thanks,
Moe
Previous Topic:newbie: columns in combo selection?
Next Topic:Problems using Component Browser
Goto Forum:
  


Current Time: Tue Apr 16 23:45:38 GMT 2024

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

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

Back to the top