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

Home » Public Forums » archive » Keyword bug in CW_BGROUP??
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
Keyword bug in CW_BGROUP?? [message #16207] Tue, 06 July 1999 00:00 Go to next message
Andrew Kraus is currently offline  Andrew Kraus
Messages: 7
Registered: May 1999
Junior Member
Can anyone figure out what simple error I am making? The following code ...

tlb=widget_base(title='Test', /column)
dims=['64','128','256','512','768','1024']
xbase=widget_base(tlb, /row)
xdim_id=cw_bgroup(xbase, dims, /exclusive, font='arial*14', $
/no_release, /return_index, /row, uvalue='xdim')
ybase=widget_base(tlb, /row)
ydim_id=cw_bgroup(ybase, dims, /label_left, /exclusive, font='arial*14', $
/no_release, /return_index, /row, uvalue='ydim')
widget_control, tlb, /realize



produces this error during execution...
% WIDGET_LABEL: String expression required in this context: LABEL_LEFT.

i.e. it does not seem to like the keyword LABEL_LEFT. I get the same error
with LABEL_TOP.

I am running Windows v5.2 under Win95.


Thanks for any feedback.


AK
Re: Keyword bug in CW_BGROUP?? [message #16256 is a reply to message #16207] Mon, 12 July 1999 00:00 Go to previous message
Andrew Kraus is currently offline  Andrew Kraus
Messages: 7
Registered: May 1999
Junior Member
thanks for pointing out my misunderstanding. I was thinking that
"LABEL_TOP" would cause the individual button labels within the group to be
placed above the radio buttons, but I see that it is referring to the
lead-in question/label for the group. will edit cw_bgroup itself.


Richard G. French wrote in message <3786C824.FAD5E0CB@wellesley.edu>...
>
>
> Andrew Kraus wrote:
>>
>> Can anyone figure out what simple error I am making? The following code
...
>>
>> tlb=widget_base(title='Test', /column)
>> dims=['64','128','256','512','768','1024']
>> xbase=widget_base(tlb, /row)
>> xdim_id=cw_bgroup(xbase, dims, /exclusive, font='arial*14', $
>> /no_release, /return_index, /row, uvalue='xdim')
>> ybase=widget_base(tlb, /row)
>> ydim_id=cw_bgroup(ybase, dims, /label_left, /exclusive, font='arial*14',
$
>> /no_release, /return_index, /row, uvalue='ydim')
>> widget_control, tlb, /realize
>>
>> produces this error during execution...
>> % WIDGET_LABEL: String expression required in this context: LABEL_LEFT.
>>
>> i.e. it does not seem to like the keyword LABEL_LEFT. I get the same
error
>> with LABEL_TOP.
>>
>> I am running Windows v5.2 under Win95.
>>
>> Thanks for any feedback.
>>
>> AK
>
> You have to set LABEL_LEFT to the string value you want the label to be.
> Similar for LABEL_TOP. Try
> LABEL_TOP='Top label',LABEL_LEFT='must be left label'
Re: Keyword bug in CW_BGROUP?? [message #16264 is a reply to message #16207] Sat, 10 July 1999 00:00 Go to previous message
Richard G. French is currently offline  Richard G. French
Messages: 65
Registered: June 1997
Member
Andrew Kraus wrote:
>
> Can anyone figure out what simple error I am making? The following code ...
>
> tlb=widget_base(title='Test', /column)
> dims=['64','128','256','512','768','1024']
> xbase=widget_base(tlb, /row)
> xdim_id=cw_bgroup(xbase, dims, /exclusive, font='arial*14', $
> /no_release, /return_index, /row, uvalue='xdim')
> ybase=widget_base(tlb, /row)
> ydim_id=cw_bgroup(ybase, dims, /label_left, /exclusive, font='arial*14', $
> /no_release, /return_index, /row, uvalue='ydim')
> widget_control, tlb, /realize
>
> produces this error during execution...
> % WIDGET_LABEL: String expression required in this context: LABEL_LEFT.
>
> i.e. it does not seem to like the keyword LABEL_LEFT. I get the same error
> with LABEL_TOP.
>
> I am running Windows v5.2 under Win95.
>
> Thanks for any feedback.
>
> AK

You have to set LABEL_LEFT to the string value you want the label to be.
Similar for LABEL_TOP. Try
LABEL_TOP='Top label',LABEL_LEFT='must be left label'
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Array index bug....
Next Topic: Farewell USA!

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

Current Time: Wed Oct 08 13:40:14 PDT 2025

Total time taken to generate the page: 0.00565 seconds