Click or drag to resize

FixedIcon Class (Typed)

X#
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
Object
  VObject
    Control
      FixedImage
        FixedIcon

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.24 GA
Syntax
 CLASS FixedIcon INHERIT FixedImage
Request Example View Source

The FixedIcon type exposes the following members.

Constructors
  NameDescription
Public methodFixedIcon
Construct a FixedIcon object.
Top
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:
X#
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:
X#
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