comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: How to use backing store while using object graphics?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: How to use backing store while using object graphics? [message #54423] Sun, 10 June 2007 08:07 Go to previous message
rkombiyil is currently offline  rkombiyil
Messages: 59
Registered: March 2006
Member
On Jun 10, 11:00 am, Robert Chuang <zhuang...@gmail.com> wrote:
> 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

Robert,
It works for me..If I understand the problem correctly - i.e., while
overlaying or minimizing or maximizing the window, the contours don't
disappear :P I was going to attach 2 screenshots for your viewing
pleasure (one of them advertises David's ebook - which I bought
recently- too ;-) ), but I guess I can't abuse usenet :)

I usually do this backing store thingy within my xconfig. Within the /
etc/X11/xorg.conf (Section "Device"), I add the following above the
'EndSection' instead of .idlrc...
----------------------------------------------
Option "BACKING STORE" "TRUE"
----------------------------------------------
Hth,
/metachronist
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to use backing store while using object graphics?
Next Topic: fast for loop

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:42:26 PDT 2025

Total time taken to generate the page: 0.00484 seconds