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

Home » Public Forums » archive » Why is the content of my object graphics window being wiped?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Why is the content of my object graphics window being wiped? [message #84818] Wed, 12 June 2013 05:24 Go to previous message
dplatten is currently offline  dplatten
Messages: 32
Registered: December 2007
Member
Hi there. I've been looking into using object windows to display object graphics. I have successfully written a routine that draws the Mandelbrot set on the screen. The problem I have is that if I minimize the window and then restore it, the contents of the object window are gone. Equally, if I move the window so that some of it is off the side of my screen, and then move it back, the content that was off the screen is also wiped. I can issue another "draw" command to the object so that it comes back, but this is a bit clumsy. I suspect there is a command that I don't know about that will automatically redraw the object for me - does anyone know what it is?

This simple example illustrates my point:

; Create a destination object, in this case a window:
oWindow = OBJ_NEW('IDLgrWindow')
; Create a viewport that fills the entire window:
oView = OBJ_NEW('IDLgrView')

; Set the color property of the view:
oView->SetProperty, COLOR=[255,0,0]
; Redraw:
oWindow->Draw, oView

If you minimize the window, and then restore it the red has been replaced with black. Equally, if you were to drag the window off the edge of the screen the red is replaced with black.

Thanks for your help,

David
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: spacing between characters
Next Topic: cgHistogram - logarithmic y-axis with integer values

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

Current Time: Wed Oct 08 15:33:03 PDT 2025

Total time taken to generate the page: 0.00407 seconds