TcxHintStyle.IconSize Property
Specifies the size of icons displayed within hints.
Declaration
property IconSize: TcxHintIconSize read; write; default cxisDefault;
Property Value
Type | Default |
---|---|
TcxHintIconSize | cxisDefault |
Remarks
The IconType property enables you to specify the icon that will be displayed within hints. You can choose one of the predefined icons or set the property to cxhiCustom so that hints use the custom icon specified by the Icon property.
The IconSize property can be used to adjust the size of icons. The following values are available for this property.
Value | Meaning |
---|---|
cxisDefault | The icon is drawn at its original size. If the IconType property specifies one of the predefined icons (such as the error or warning icon), 32x32 will be applied. If the IconType property is set to cxhiCustom so that the icon is provided by the Icon property, the icon will be displayed at its original size. |
cxisLarge | The icon is displayed at 32x32. If an icon’s actual size is 16x16, the icon will be expanded. Note that the system provides standard icons of both sizes. Thus, when using system icons, you don’t need to worry about loss of quality. |
cxisSmall | The icon is displayed at 16x16. If an icon’s actual size is 32x32, the icon will be shrunk. |
It is recommended that you use cxisDefault when using custom icons. If one of the system icons is used, set the IconSize property to either cxisLarge or cxisSmall as required.
The images below show hints displaying the standard information icon when the IconSize property is set to cxisSmall and cxisLarge respectively.
The default value of the IconSize property is cxisDefault.