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

Home » Public Forums » archive » Re: Non-exclusive buttons initial selection
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Non-exclusive buttons initial selection [message #6331] Tue, 04 June 1996 00:00
David Foster is currently offline  David Foster
Messages: 341
Registered: January 1996
Senior Member
munter@glhpx11.cen.uiuc.edu (Alan Edwin Munter) wrote:
>
> I have been trying to figure out how to select one of a bgroup of three
> non-exclusive buttons when the widget is realized.
>
> The command:
>
> WIDGET_CONTROL, bgroup1, set_button=1
>
> will select all of them, but I can't figure out how to select
> just one.
>

When you create the widget button-group, use the keyword IDS to
return a lonarr containing the widget id's of the individual
buttons in the group:

bgroup1 = cw_bgroup( tlb, ..., ids = ids_grp1, ...)

Then use widget_control on these individual button widgets:

widget_control, ids_grp1(0), set_button=1
widget_control, ids_grp1(1), set_button=0
...

Dave Foster
UCSD Brain Image Analysis Laboratory
foster@bial1.ucsd.edu
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: making a composite from several images
Next Topic: Annotate and ROIs

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

Current Time: Fri Oct 10 04:39:06 PDT 2025

Total time taken to generate the page: 1.28240 seconds