win/mac custom cursor/pointer module
BlitzMax Forums/MaxGUI Module/win/mac custom cursor/pointer module
| ||
Hey, I just finished another maxgui extension module today for setting custom cursors cross platform (well mac and windows ... sorry linux). The module lets you import a windows.cur file and set it. Some things to remember - Store cursor in windows .cur file format - Store only 1 cursor per .cur file - In mac mode don't set the cursor right at the start of the program as it wont work (this is a general osx behaviour) - make sure to manually free the cursor when you are done with it. Osx supports loading a .cur file into an NSImage object but as far as I could tell has no knowledge of the hotspot a cursor has. I made a simple .cur file parser which will read out the hotspot data and set it for you automatically. I have tested the code on windows 7 and osx lion. example custumcursor.bmx customcursor.h customcursor.m Last edited 2011 Last edited 2011 Last edited 2011 |
| ||
. Last edited 2012 |