Widget_window Problem [message #85150] |
Wed, 10 July 2013 03:38  |
Helder Marchetto
Messages: 520 Registered: November 2011
|
Senior Member |
|
|
Hi,
I was just trying to use widget window in a larger widget program and could not get anything in the windget_window to work. So I tried the basic example from the IDL help:
wBase = WIDGET_BASE(/COLUMN)
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)
This results in a black window without anything in it... empty.
I restarted IDL, but no improvement.
By removing the keyword CURRENT I get a normal plot window. So the function plot is working.
Am I the only one with this type of problem?
print, !version
{ x86_64 Win32 Windows Microsoft Windows 8.2.3 May 3 2013 64 64}
Cheers,
Helder
|
|
|