Wow, I did not know that you can set 'Table_YSize'!
This was how I 'solved' it...
Table = WIDGET_TABLE(base, .....,/SCROLL , YSIZE=100,
Y_SCROLL_SIZE=10 )
But your solution is definitely much better!
Thanks!
On Jun 6, 12:23 pm, Jean H <jghas...@DELTHIS.ucalgary.ANDTHIS.ca>
wrote:
> yoyoteng wrote:
>> One question for those of you who have been using widget_tables,
>
>> The table that I'm creating needs to have a fixed (screen) size.
>> Initially, there is nothing to show on the widget_table, but later on,
>> I will need to show array[100] in the table.
>
>> When creating the table, I have added Y_SCROLL_SIZE=3, /SCROLL to fix
>> the size and enable the scroll. "During" the program, I have used the
>> "Set_Value" and "Get_value" to confirm that the data is correctly
>> passed into the table, however, I cannot scroll down to view the rest
>> of the data.
>
> >table1 = WIDGET_TABLE(base, VALUE=data, /ROW_MAJOR, $
> > ROW_LABELS='', COLUMN_LABELS='', $
> > /RESIZEABLE_COLUMNS, /SCROLL, Y_SCROLL_SIZE=3)
>
>> WIDGET_CONTROL, table1, set_value=data
>
> Hi,
>
> this behavior if counter-intuitive, and may be boggus (as it does not
> follow the content of the help file).
> If you use widget_control this way, you should select the cells to be
> updated firts (add some row, select them, then set the value).
>
> However, if you do:
> data = [d0, d1 , d2, d3,d0, d1, d2, d3,d0, d1, d2, d3,d0, d1, d2,d3]
> WIDGET_CONTROL, table1, set_value=data, Table_YSize = n_elements(data),
> then you will see everything...
>
> Jean
|