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

Home » Public Forums » archive » Re: State of non-exclusive button
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: State of non-exclusive button [message #26390 is a reply to message #26389] Fri, 31 August 2001 11:37 Go to previous messageGo to previous message
Steve Hartmann is currently offline  Steve Hartmann
Messages: 21
Registered: March 2000
Junior Member
On Fri, 31 Aug 2001 10:55:02 -0500, "K. Bowman"
<k-bowman@null.tamu.edu> wrote:

> How do you get the state (checked or unchecked) of a non-exclusive
> (toggle) button?
>

I would create a button using CW_BGroup, like this:

buttonID = CW_BGroup(parentWidgetID, 'some description', /Col,
/NonExclusive, Set_Value = InitialState)

The " /Col " puts the description text to the right of the toggle
button. "InitialState" is set to "0" or "1" (unchecked or checked).

To determine the current state of the button, use:
Widget_Control, buttonID, Get_Value=CurrentState

Note that, as David suggests, you need to store the buttonID variable
somewhere.

Is this what you were asking for?

-Steve
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: better doc_library?
Next Topic: Could i find some examples for IDL DataMiner ...?

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

Current Time: Fri Oct 10 13:38:19 PDT 2025

Total time taken to generate the page: 2.15958 seconds