Re: wxEuphoria custom cursor
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Dec 31, 2005
- 527 views
Erik-Jan van Kampen wrote: > > Matt, > > thanks very much for the custom cursor option in wxEuphoria! > > I downloaded the latest version this morning and I now have the part of my > program > with the custom cursors working. > > However, there is one small problem with the cursors. The so called hotspot > of the custom cursors in wxEuphoria is in the topleft corner in stead of in > the center. This results in problems since my controls are very close to each > other. > > Is it possible to change the default hotspot position to the centre of the > cursor? > It looks like it is, but you'll need to use an ico file in windows, and an xbm file under X (not sure if this will work for wxGTK). Here's the constructor you would need to use under windows: -- wxCursor::wxCursor(const wxString&, long, int, int) wxCursor_op_ctr_3 = define_c_var( wxWin, "@wxCursor@$bctr$qrx8wxStringlii" ), I don't have the linux source handy right now to point out that constructor. The wxWidgets docs are here: http://www.wxwidgets.org/manuals/2.4.2/wx81.htm#wxcursor Matt Lewis