SET_VALUE for WIDGET_TABLE seem to be ignored - any ideas why? [message #85442] |
Wed, 07 August 2013 00:13 |
LNpellen
Messages: 37 Registered: November 2009
|
Member |
|
|
I have created a lot of WIDGET_TABLEs previously, but with the application I'm working on now I struggle with the WIDGET_CONTROL... SET_VALUE.
I have this table defined:
wTable=WIDGET_TABLE(bList, XSIZE=5, YSIZE=100, SCR_YSIZE=500, ALIGNMENT=1, /ALL_EVENTS, COLUMN_LABELS=['a','b','c','d','e'], COLUMN_WIDTHS=[160,80,80,80,80])
If I try to populate this table with anything:
test=strarr(5,100) & test(0,0)='test1' & test(0,1)='test2'
WIDGET_TABLE, wTable, SET_VALUE=test
or like I actually want to
WIDGET_CONTROL, wTable, USE_TABLE_SELECT=[0,0,0,N_ELEMENTS(prof.legend)-1], SET_VALUE=TRANSPOSE(prof.legend)
The table is blank visually, but if I do GET_VALUE I see that the table is filled as I wanted.
I've also teste to set the background/foreground color and that work visually.
Any idea what is going on here.
I'd say I have created this table the same way I always do and it use to work...
Best regards
Ellen
|
|
|