Xceed SmartUI lets you implement the useful PropertyLists. This allows you to mimic the VB properties Objects.
Example
This example shows a SmartUI containing PropertyGroup, PropertyCombo, PropertyColor, and PropertyEdit SmartItems.
This SmartUI:
- displays a Sunken Border style (BorderStyle=bsSunken),
- has no Caption, and its Caption style is set to none (CaptionStyle=csNone)
- is vertical (Orientation=orVertical),
- is opaque (BackStyle=bkOpaque), but it may have been transparent or semi-transparent,
- has its Sorted Property set to false (Sorted=False): the SmartItems are not sorted alphabetically
- has its ShowFocusRect Property set to false (ShowFocusRect =False): no dotted lines shown
- displays no Scrollbar ( ScrollBarStyle=sbNone),
- shows a ButtonFlat PlusMinus button style (PlusMinusStyle=pmButtonFlat), and shows no Treelines (ShowTreeLines=False).
Now let's have a more detailed look at the SmartItems.
This SmartUI contains:
- 5 PropertyGroup ("Appearance", "Hot", "Color", "Behavior", "Miscellaneous"), which Caption is bold by default (Bold=True).
The "Appearance" and "Color" Items' Expanded Property is set to false (Expanded=False).
- 6 PropertyCombo ("HotBold", "HotItalic", "HotUnderline", "HandPointer", "HotTrackSelect", "ItemType" and "Enabled"). They all have Caption, and some of them have an Image: "HotBold", "HotUnderline", ...
Each PropertyCombo has a collection of SubItems, which are ListItemFullRow SmartItems: "True" and "False", or "100 - ToolDefault".
We may also have added a PropertyLabel, a PropertyBrowse, or a PropertyComboEdit SmartItem.
Remarks
Of course, you can customize each item with Bold, HotBold, Underline, HotUnderline, Italic, HotItalic, ForeColor, HotForeColor, Image, HotImage, and so on. Besides, as all those SmartItems can have the Focus, you can specify SelectedBold, SelectedUnderline, SelectedItalic, SelectedImage, and even HotTrackSelect Properties.
And as incredible as it may seem, this SmartUI remains a windowless control!
See Also
ListBoxes,
MenuBars,
ToolBars,
StatusBars,
OutlookBars or
ViewBars,
TreeViews,
OptionLists,
PropertyToolBoxes,
TabstripsFor more information on PropertyLists, you can see the Lesson 11.