DYNAMIC_RESIZE Keyword in IDL 5.0.3 [message #10765] |
Mon, 19 January 1998 00:00 |
wmn
Messages: 4 Registered: December 1996
|
Junior Member |
|
|
Following Testfile gets bigger with every press on the button, it should
behave like this in x direction but it also does it in y direction. This error
doesn't occur in IDL 4. We have a lot of widgets with the Keyword
'DYNAMIC_RESIZE', and they all become bigger and bigger with every action.
I would be very lucky to get a good solution for this problem. Thank you!
pro press_but, event
WIDGET_CONTROL, event.id, GET_VAL = str
WIDGET_CONTROL, event.id, SET_VAL = str(0)+' '
end
pro test_dyn_res
base = WIDGET_BASE(/ROW)
subbase = WIDGET_BASE(base, /FRAME)
button = WIDGET_BUTTON(subbase, VAL = 'Press Here', /DYNAMIC_RESIZE, $
EVENT_PRO = 'press_but')
label = WIDGET_LABEL(subbase, VAL = 'Label1')
subbase2 = WIDGET_BASE(base, /FRAME, /COL)
label2 = WIDGET_LABEL(subbase2, VAL = 'Label2')
WIDGET_CONTROL, base, /REALIZE
XManager, 'test_dyn_res', base
end
|
|
|