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

Home » Public Forums » archive » Trouble with CW_BGROUP events
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: Trouble with CW_BGROUP events [message #49067 is a reply to message #48992] Tue, 13 June 2006 15:39 Go to previous messageGo to previous message
Andrew Cool is currently offline  Andrew Cool
Messages: 219
Registered: January 1996
Senior Member
Phillip Bitzer wrote:
> Thanks, everything works great now. Curious, why does cw_bgroup return
> 0 or 1 as the value? I was under the impression that if you specify the
> button_uvalue keyword, then the corresponding value would be returned
> (here 1 or 2).

Phillip,

The online help says :-

BUTTON_UVALUE
An array of user values to be associated with each button and returned
in the event structure. If this keyword is set, the user values are
always returned, even if the any of the RETURN_ID, RETURN_INDEX, or
RETURN_NAME keywords are set.

Note : "returned in the event structure."

If you insert a help,/structure, event at the top of the event handler
procedure, then
you'll see something like this :-

ID LONG 20
TOP LONG 13
HANDLER LONG 13
SELECT LONG 1
VALUE STRING '2'

where the field event.value contains your stipulated button_uvalue,
hence
you could try :-

Case event.value of
'1'
'2'
etc

but that would would fail when the event is generated by another widget
that
doesn't have a Value field in its structure.

Have you read the Building Applications manual, or bought David
Fanning's book,
subtitled "The Joy of Widgets"?

Cheers,

Andrew
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: is there a function or command in IDL like the "bitget" in matlab?
Next Topic: Re: is there a function or command in IDL like the "bitget" in matlab?

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

Current Time: Fri Oct 10 15:07:30 PDT 2025

Total time taken to generate the page: 2.08071 seconds