Icon & Cursor (mouse pointer) Routines


global function loadCursor(object fName)
Load a single cursor. fName can be a fully qualified path or simply a filename (where it will be searched for it in the application directory). If fName is integer then will load stock cursor resource.

global function getCursor()
Get the handle of the current cursor associated with the mouse pointer.

global function setCursor(atom hCur)
Associates a new cursor with the mouse pointer.

global function loadIcon(object icon)
Get the handle of an icon : from an ico file, the icon bound to the executable OR a standard icon. icon can be a fully qualified path or simply a filename (where it will be searched for it in the application directory). If icon is NULL then it will load icon "exw" associated with the executable program. If icon is one of the following integers then will load the associated stock icon:
IDI_APPLICATION -- icon signifying plain window
IDI_HAND -- red circle with stocky x inside - fatal error
IDI_QUESTION -- Speech bubble with ? inside
IDI_EXCLAMATION -- Yellow triangle with ! inside
IDI_ASTERISK -- Speech bubble with i inside
IDI_WINLOGO -- windows logo

global procedure setIcon(integer id, atom hIcon)
Associate the icon to the window. The icon handle must first be obtained using loadIcon().