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

Home » Public Forums » archive » How to tell if a window id is a pixmap?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
How to tell if a window id is a pixmap? [message #37006] Fri, 07 November 2003 04:34
westrick85 is currently offline  westrick85
Messages: 3
Registered: August 2003
Junior Member
How do you tell if an arbitrary Window ID is a pixmap? !D is the same
whether the current window is a normal window or a pixmap window.

The reason I'm asking is that I wrote a program that changes the mouse
cursor. I discovered that if I use the command "device,
/CURSOR_CROSSHAIR" and the current window is a pixmap, then IDL throws
an error.

Also interesting is that if I use the command "device,
/CURSOR_CROSSHAIR" and there is no current window (I.E. the current
window was deleted) then IDL creates a new window on my behalf.

All of this cursor monkey business is frustrating. I don't see why
the cursor functions even care what the current window is. After all,
the mouse cursor is a global setting that applies to all open visible
windows and not just the current window.

Thanks,
Corey

P.S. Here is some IDL code

window, 0
device, /CURSOR_ORIGINAL ; Works fine
wdelete, 0
device, /CURSOR_ORIGINAL ; Recreates window 0
window, 1, /PIXMAP
device, /CURSOR_CROSSHAIR ; Throws error
[Message index]
 
Read Message
Previous Topic: slightly shifted plots (?)
Next Topic: NOAATech award

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

Current Time: Wed Oct 08 20:13:28 PDT 2025

Total time taken to generate the page: 0.01429 seconds