How to tell if a window id is a pixmap? [message #37006] |
Fri, 07 November 2003 04:34 |
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
|
|
|