Hi guys:
I have the fellowing code. And window title is 'TEST TITLE'.
But when the widget show up, the window title is 'PLOT'. So why?
Very thanks!
PRO widget_window_test
; Create the widgets.
wBase = WIDGET_BASE(/COLUMN, title='TEST TITLE')
wDraw = WIDGET_WINDOW(wBase, X_SCROLL_SIZE=400, Y_SCROLL_SIZE=400)
WIDGET_CONTROL, wBase, /REALIZE
; Retrieve the newly-created Window object.
WIDGET_CONTROL, wDraw, GET_VALUE=oWin
; Make sure this is the current window
oWin.Select
p = PLOT(/TEST, /CURRENT, /FILL_BACKGROUND)
END
|