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

Home » Public Forums » archive » Getting state of a non-exclusive button (checkbox) widget
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Getting state of a non-exclusive button (checkbox) widget [message #70652] Mon, 26 April 2010 03:41
The Countertony is currently offline  The Countertony
Messages: 2
Registered: April 2010
Junior Member
I'm building a UI for a program, part of which requires that if a non-
exclusive button (checkbox) is unset - this is the default state -
then a number of text widgets and their associated labels are hidden
or inactive (I've chosen to make them inactive for consistency's sake)
- conversely, if the checkbox is set then the widgets should be active
and, in the case of the text widgets editable. In pseudocode, the
event handler would be something like this...

; Get state information.
; Identify the widget that caused the event.

if event.cause == checkbox then {
if checkbox.status == 1 then {
label1.active = 0
text1.active = 0
label2.active = 0
text2.active = 0
}
}

It's the if checkbox.status... line that I don't know how to phrase in
IDL - trouble is, all the references to event-handling of buttons I've
been able to find are for normal buttons, where you don't actually
need to know the state, just the fact that the button's been clicked.

Anyone able to suggest a solution?

Tony
[Message index]
 
Read Message
Previous Topic: Help on comparing 2 arrays
Next Topic: Re: laplacian Kernal

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

Current Time: Mon Dec 01 04:51:53 PST 2025

Total time taken to generate the page: 7.66604 seconds