Hi guys:
I use IDL 8.1. I run the fellowing code and get nothing display in wedget window:
wBase = WIDGET_BASE(/COLUMN,MAP=0)
wDraw = WIDGET_WINDOW(wBase, XSIZE=400, YSIZE=400, RENDERER=1, UNAME='DRAWAREA')
WIDGET_CONTROL, wBase, /REALIZE
; Retrieve the newly-created Window object.
WIDGET_CONTROL, wDraw, GET_VALUE=oWin
oWin.erase
oWin.select
p = PLOT(/TEST, /CURRENT, /FILL_BACKGROUND)
WIDGET_CONTROL, wBase, MAP=1, /SHOW
When I remove 'oWin.erase', display is successful. So, what's the problem, thanks!
dave
|