Skip to main content

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.
Previous Topic:Resizing works, but scrolling "smears" image.
Next Topic:Table rows disappear when scrolling
Goto Forum:

Current Time: Tue Jun 19 04:25:57 GMT 2018

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

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

Back to the top