Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 10:59 Go to next message
aaa ass is currently offline aaa assFriend
Messages: 4
Registered: April 2013
Junior Member
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 10:59]

Report message to a moderator

Re: Check Button on StyledText [message #1058592 is a reply to message #1058484] Tue, 14 May 2013 14:07 Go to previous message
Vijay RajFriend
Messages: 608
Registered: July 2009
Senior Member
Code snippet please.

---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
Previous Topic:Resizing works, but scrolling "smears" image.
Next Topic:Table rows disappear when scrolling
Goto Forum:
  


Current Time: Thu Nov 27 02:02:26 GMT 2014

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

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