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

Home » Public Forums » archive » Re: Getting checkbox value
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: Getting checkbox value [message #28743 is a reply to message #28734] Wed, 09 January 2002 00:13 Go to previous messageGo to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Lisa Gandy wrote:
>
> I am trying to get the value of a checkbox...meaning I would like to
> know if the checkbox is selected at a certain time. I have looked
> through the references under widget_control and widget_info but
> neither of these keywords seem to return if a checkbox button has been
> selected or not. Did I overlook something?
>
> Cheers,
> Lisa Gandy

I have written a compound widget cw_buttons to manage this and some
other
button functions.


http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_source/idl _html/dbase/download/cw_buttons.tar.gz

Here is a small example

PRO xtest_event,ev
WIDGET_CONTROL,ev.id, get_uval=cmd
CASE cmd OF
'TEST': BEGIN
WIDGET_CONTROL,ev.id,get_value=v
HELP,v,/str
idx=WHERE(v.set EQ 1,count)
IF count GT 0 THEN PRINT,v.value[idx]
END

'DONE': WIDGET_CONTROL,ev.top,/destroy
ELSE :
ENDCASE

END


PRO xtest
a=WIDGET_BASE(row=2)
value={value:['LOG','ALOG','SIN'],set:[0,0,1]}
b=cw_buttons(a,value=value,uvalue='TEST',col=2, $
/exclusive,frame=2,xoffset=20,yoffset=0,button_frame=1)
b=WIDGET_BUTTON(a,value='DONE',uvalue='DONE')


WIDGET_CONTROL,/realize,a
XMANAGER,'xtest',a
END


regards

Reimar


--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-1)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html

http://www.fz-juelich.de/zb/text/publikation/juel3786.html
============================================================ ======

read something about linux / windows
http://www.suse.de/de/news/hotnews/MS.html
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: RGB image
Next Topic: object widgets

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

Current Time: Sat Nov 29 19:48:16 PST 2025

Total time taken to generate the page: 0.63949 seconds