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

Home » Public Forums » archive » Re: Antw: Re: Formatting WIDGET_TABLE cells?
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: Antw: Re: Formatting WIDGET_TABLE cells? [message #50927] Mon, 23 October 2006 06:54
btt is currently offline  btt
Messages: 345
Registered: December 2000
Senior Member
Harald Jeszenszky wrote:
> Dear Ben,
>
> According to the IDL documentation of WIDGET_CONTROL, the syntax
> USE_TABLE_SELECT=[left,top,right,bottom] is valid (see example for changing
> the column widths).
>
> Aside from that, the USE_TABLE_SELECT/SET_TABLE_SELECT combination results
> in the same error message.
>
> Regards,
> Harald
>
>>>> Ben Tupper<btupper@bigelow.org> 23.10.06 14:36 >>>
> Harald Jeszenszky wrote:
>> Hi,
>>
>> When I try to format some WIDGET_TABLE columns holding double precision
> data
>> I always get the following error message:
>>
>> WIDGET_CONTROL, (*ptr).idData, USE_TABLE_SELECT=[4,0,9,9],
>> FORMAT='(F15.3)'
>>
>> %WIDGET_CONTROL: Unable to set format for table widget
>>
>> If I use ALIGNMENT=2 instead of FORMAT='(F15.3)' the cells are
>> right-justified as expected, so it could not be a matter of cell
> selection.
>> Any idea?
>
> Hi,
>
> The USE_TABLE_SELECT keyword is logical (0/1). Do you really want ...
>
> WIDGET_CONTROL, myID, /USE_TABLE_SELECT, SET_TABLE_SELECT = [4,0,9,9],
> FORMAT = '(F15.3)'
>
> instead?

Oh,

Interesting. I see I should have scrolled down more in the online help.

I modified the IDL example application called
'table_widget_example1.pro' by adding the lines...

WIDGET_CONTROL, table, SET_TABLE_SELECT = [1,1,3,3]
WIDGET_CONTROL, table, /USE_TABLE_SELECT, FORMAT = '(F15.3)'

Just after the the widget is realized. The cells are selected but the
error appears.

% WIDGET_CONTROL: Unable to set format for table widget.
% Execution halted at: TABLE_WIDGET_EXAMPLE1 122
/Applications/rsi/idl_6.3/examples/doc/widgets/table_widget_ example1.pro
% $MAIN$


I guess that isn't much help.

{ ppc darwin unix Mac OS X 6.3 Mar 23 2006 32 64}

Ben
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Antw: Re: Formatting WIDGET_TABLE cells?
Next Topic: resolving specific pro, functions inside of a file

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

Current Time: Wed Oct 08 15:39:12 PDT 2025

Total time taken to generate the page: 0.00474 seconds