Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Events on button with Radio property
Events on button with Radio property [message #461165] Mon, 19 September 2005 10:44 Go to next message
Eclipse UserFriend
Originally posted by: nospam.no-spam.net

I have a set of radio-buttons in a pop-up menu. When I select one of them,
the previous one gets un-checked. This is okay !

Now, how do I set the selected/checked state of a button, programatically
(i.e., not by user-selection). It may be button-2, button-3 & so on ...


The problem with button.setSelection(boolean) is that the newly selected
radio-button and the previous one are both shown as selected.

button.notifyListeners() also don't work.

What is the write way to do this ... ?
Re: Events on button with Radio property [message #461185 is a reply to message #461165] Mon, 19 September 2005 12:35 Go to previous message
Philipp is currently offline PhilippFriend
Messages: 49
Registered: July 2009
Member
This is a multipart message in MIME format.
--=_alternative 00452EC8C1257081_=
Content-Type: text/plain; charset="US-ASCII"

If you set the selection programatically, its probably best to set the
selection for every button so things dont get mixed up. So if you set
button 1 as selected (true) just unset all the other (false).
--=_alternative 00452EC8C1257081_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">If you set the selection programatically,
its probably best to set the selection for every button so things dont
get mixed up. So if you set button 1 as selected (true) just unset all
the other (false).</font>
--=_alternative 00452EC8C1257081_=--
Previous Topic:Problem with FormLayout
Next Topic:Acrobat 7.0 and OleFrame
Goto Forum:
  


Current Time: Sat Apr 27 00:02:56 GMT 2024

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

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

Back to the top