Keyword bug in CW_BGROUP?? [message #16207] |
Tue, 06 July 1999 00:00  |
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  |
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  |
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'
|
|
|