Class XbpIcon() Foundation
Class function of the XbpIcon class.
The XbpIcon class provides objects which can display and manage graphic images defined in icon files. Icon files must be linked to the EXE file using the resource compiler in order for the icon to be loaded using the :load() method of the XbpIcon object.
// This example demonstrates the basic process of creating
// icons and displaying them in a window. The icon is
// loaded and displayed using the resource ID 10. At the
// end of the example code, an example of a resource file
// containing the icon as a resource is shown.
PROCEDURE Main
LOCAL oIcon, oPS
SetColor( "N/W" )
CLS
oPS := SetAppWindow():presSpace()
oIcon:= XbpIcon():new():create()
oIcon:load( NIL, 10 )
oIcon:draw( oPS, {50,50} )
WAIT
RETURN
/* Resource file containing the icon declaration
TEST.ARC
*/
ICON 1 = "XPPPMT.ICO"
POINTER 2 = "XPPPOINT.PTR"
ICON 10 = "DATABASE.ICO"
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.