How to use backing store while using object graphics? [message #54429] |
Sat, 09 June 2007 19:00 |
zhuangbao@gmail.com
Messages: 12 Registered: January 2007
|
Junior Member |
|
|
I don't know how to let IDL back store the display, note that I've
written "device, retain=2" in the IDL_startup.pro file, and it works
fine while using direct graphics.
Here is an example,
PRO test_gui
COMPILE_OPT, IDL2
mywindow = OBJ_NEW('IDLgrWindow') ;;retain=2
myview = OBJ_NEW('IDLgrView', VIEWPLANE_RECT=[0, 0, 19, 19])
mymodel = OBJ_NEW('IDLgrModel')
data = DIST(20)
mycontour = OBJ_NEW('IDLgrContour', data, COLOR=[100, 150, 200], $
C_LINESTYLE=[0, 2, 4], /PLANAR, GEOMZ=0, C_VALUE=INDGEN(20))
myview->Add, mymodel
mymodel->Add, mycontour ;how to set backup storage?
mywindow->Draw, myview
END
The display will disappear while overlay, minimize and maximize the
window, the "device, retain=2" command doesn't work any more. How to
fix it?
Thanks
|
|
|