| Predefined Cursors in X Windows [message #40361] |
Mon, 09 August 2004 07:39 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Folks,
I'm working on my annotation tool this morning and I am
having cursor questions. Specifically, I want my cursor
to shift into a I-beam shape when the user is typing text
in the window, and into an arrow when the user is selecting
text to move around in the window.
In Windows this is easily accomplished with the CURSOR_STANDARD
command:
Device, Cursor_Standard=32512L ; Arrow
Device, Cursor_Standard=32513L ; I-Beam
In X Windows, these numbers have to be something else. Something
that is defined in /usr/include/X11/cursorfont.h.
Here is my question for you X windows guys. Is this file
standard across all X windows implementations? If so,
what number would I use to obtain these two types of
cursors?
Thanks,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|
|