This is my first post here so I don't know if this is a ridiculous question or not but....
On a SUN workstation (Ultra-5) I need to use Xwindows to define a cursor on a window that will be a character. Specifically, I need to XCreatePixmapCursor after doing an XDrawString onto a pixmap created by XCreatePixmapCursor. The reason I need to create a pixmap cursor as opposed to a glyph cursor(which would just take a character from a font and a mask from the same font by supplying the indices) is because a) the mask is in a different font from the source and b) I need to define the hotspot at the center of the character/pixmap instead of at (0,0) as defined by the bounding box of the character which would be the top left corner(XCreatePixmapCursor takes x,y coords for a hotspot) and c) I may have to expand this to take TWO characters as the cursor (a glyph cursor only takes one character from a font whereas a pixmap can have a 2 character string in it).
If anybody has had any experience with this sort of thing (probably not likely) and has any ideas or info I'd greatly appreciate it.



LinkBack URL
About LinkBacks



):