FixedIcon Class (Typed)
|
|
Create a FixedIcon object. Unlike the icons created by the Icon class, fixed icons are static—they do not need to be redisplayed every time an ExposeEvent occurs. FixedIcon objects can be created dynamically or from a resource entity.
Inheritance Hierarchy
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.24 GA
SyntaxThe FixedIcon type exposes the following members.
Constructors
Functions
Examples
This example creates a fixed icon from a resource entity and changes its position to the lower-left corner of a dialog window:
1CLASS MyDialogWindow INHERIT DialogWindow
2HIDDEN OMyFIcon AS OBJECT
3METHOD Init(oWindow) CLASS MyDialogWIndow
4SUPER:Init(oWindow,ID_MYDIALOG)
5OMyFIcon := FixedIcon{SELF,MYICON}
6OMyFIcon:Origin := Point{10,10}
7SELF:Show()
In Windows, a fixed icon is equivalent to a static object with the SS_ICON style. These are normally specified in the resource entity as follows:
1RESOURCE IDI_FIXEDICON ICON fixed.ico
2RESOURCE IDD_ABOUT DIALOG 20, 20, 160, 80
3STYLE WS_POPUP | WS_DLGFRAME
4BEGIN
5ICON IDI_FIXEDICON -1, 8, 8, 0, 0
6END
See Also