Hi Daikan,
Could the following example help you?:
pro widget_window_plot_ex
; Create the widgets.
wBase = WIDGET_BASE(/COLUMN)
wDraw = WIDGET_WINDOW(wBase, X_SCROLL_SIZE=600, 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
b = plot(/test, /CURRENT)
end
Cheers,
Fernando
|