Type | Description | |||
String | A string expression that defines the control's template |
The control's template uses the X-Script language to initialize the control's content. Use the Template property page of the control to update the control's Template property. Use the Template property to execute code by passing instructions as a string ( template string ). Use the ToTemplate property to generate the control's content to template format. Use the ExecuteTemplate property to get the result of executing a template script.
The Exontrol's eXHelper tool helps you to find easy and quickly the answers and the source code for your questions regarding the usage of our UI components.
Most of our UI components provide a Template page that's accessible in design mode. No matter what programming language you are using, you can have a quick view of the component's features using the WYSWYG Template editor.
The control's Template page helps user to initialize the control's look and feel in design mode, using the x-script language that's easy and powerful. The Template page displays the control on the left side of the page. On the right side of the Template page, a simple editor is displayed where user writes the initialization code. The control's look and feel is automatically updated as soon as the user types new instructions. The Template script is saved to the container persistence ( when Apply button is pressed ), and it is executed when the control is initialized at runtime. Any component that provides a WYSWYG Template page, provides a Template property. The Template property executes code from a string ( template string ).
The Template or x-script is composed by lines of instructions. Instructions are separated by "\n\r" ( newline characters ) or ";" character. The ; character may be available only for newer versions of the components.
An x-script instruction/line can be one of the following:
The x-script may uses constant expressions as follow:
Also , the template or x-script code may support general functions as follows:
BeginUpdate Expanded = True PicturesPath = "C:\Program Files\Exontrol\ExRadialMenu\Sample\Images" HTMLPicture("arrow") = "arrow.png" SubItemsBackColor = RGB(190,190,190) ShadowColor = SubItemsBackColor RadialLineColor(6) = SubItemsBackColor RadialLineColor(5) = -1 Items { Add("Foreground-Color","color_line.png").Items.ToString = "Foreground" Add("Background-Color","color_fill.png").Items.ToString = "Background" Add("Font","format_font_size_less.png").Items.ToString = "Font" Add("Undo","edit_undo.png").Items.ToString = "Undo" Add("Redo","edit_redo.png").Items.ToString = "Redo" Add("Copy","edit_copy.png").Items.ToString = "Copy" Add("List","fileview_text.png").Items.ToString = "List" Add("Tag","checkmark_korganizer.png").Items.ToString = "Tag" } EndUpdate
generates: