Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Check Button on StyledText(I want to draw the check sign on the button from code without user action)
icon7.gif  Check Button on StyledText [message #1058484] Tue, 14 May 2013 06:59 Go to next message
Eclipse UserFriend
I have some buttons between some text on a "StyledText" after I change the text the selected buttons does't retain it's previous state.

After the text is changed the same method is fired that creates the buttons and generates the text.

Help me understand how come when I use "setSelection", after I kept the selections in an "ArrayList", on the button previously selected it does not paint the check mark, but "getSelection" returns true.

I tried setting it in the "PaintObjectListener" but after some clicks the buttons are checked wrong or could not be checked.

Thank you!

[Updated on: Tue, 14 May 2013 06:59] by Moderator

Re: Check Button on StyledText [message #1058592 is a reply to message #1058484] Tue, 14 May 2013 10:07 Go to previous message
Eclipse UserFriend
Code snippet please.
Previous Topic:Resizing works, but scrolling "smears" image.
Next Topic:Table rows disappear when scrolling
Goto Forum:
  


Current Time: Wed Jul 23 18:32:06 EDT 2025

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

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

Back to the top