comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Widget Buttons - Radio and Checkbox control
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Widget Buttons - Radio and Checkbox control [message #19349 is a reply to message #19332] Wed, 08 March 2000 00:00 Go to previous messageGo to previous message
Ben Tupper is currently offline  Ben Tupper
Messages: 186
Registered: August 1999
Senior Member
Oliver Smith wrote:

> I'm currently writing some code in IDL 5.3 that utilises two groups of
> widget buttons, 2 Check boxes and 4 Radio Buttons. I would like to be able
> to set both check boxes and one of the radio buttons to be 'on' when the
> program starts, and possibly to reset them at a later stage of program
> execution after user intervention.
>
>

Hello,

Assuming that you are using CW_BGroup ... and that things haven't changed much
since version 5.2 ...

To control the radio buttons (exclusive) set the Set_Value keyword to
Widget_Control to the button index (starting from zero). As an example, to
have the second button of 4 buttons set on use Set_Value = 1

To control the check boxes (non-exclusive) set the Set_Value keyword to
Widget_Control to an array of on/off flags. As an example, to turn on the
second of the 2 button group but leave the first one off use Set_Value = [0,1]

You can also set the values when you first define the button groups with the
same keyword in CW_Group.

Hope this helps.

Ben

--
Ben Tupper

Bigelow Laboratory for Ocean Science
tupper@seadas.bigelow.org

pemaquidriver@tidewater.net
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: license manager over the internet
Next Topic: interpolation around a contour

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 01:05:13 PDT 2025

Total time taken to generate the page: 2.31680 seconds