Page History
...
Pos | Name | Type | Description | Default |
---|---|---|---|---|
<0, 1> | Rectangle | Multivalue | The item's size and location | 0, 0, 0, 0 |
<0, 2> | Caption/Image | Text | The item's caption or image | "" |
<0, 3> | Colors | Multivalue | The item's text and background colors | None, None |
<0, 4> | Font | Font | The item's font | Tahoma, 8 pt. |
<0, 5> | Alignment | Multivalue | The item's vertical and horizontal alignment | Left, Top |
<0, 6> | Hyperlink | Boolean | Specifies that the item is a hyperlink | False$ |
<0, 7> | Button | Boolean | Specifies that the item is a button | False$ |
...
The ItemList property sets or gets all the items in the popup. Popup items are rectangular areas on the popup control which contain text or an image. Items can have various effects such as background colors, button effects, and hyperlink effects. The user can click on any items, in which the OnItemClick event is fired.
The ItemList property is an @FM delimited array of items. Each item is comprised of several @VM delimited attributes. Each attributes is explained below in detail.
...
Pos | Name | Type | Description |
---|---|---|---|
<1, 1, 1> | Left | Integer | The item's X position |
<1, 1, 2> | Top | Integer | The item's Y position |
<1, 1, 3> | Width | Integer | The item's width |
<1, 1, 4> | Height | Integer | The item's height |
This is a required value since it defines the item's dimensions. Note also that the rectangle is relative to the top left corner of the popup. So, if X and Y are 0, then the item will start in the popup's top left corner.
...
Pos | Name | Type | Description |
---|---|---|---|
<1, 3, 1> | Text Color | Color | The item's text color |
<1, 3, 2> | Background | Color Fill | The item's background |
The Text Color can be any Color value. If None or Auto, then the text is black. The Background can be any valid Color Fill pattern. If it is set to None, then the item is transparent.
...
Pos | Name | Type | Description |
---|---|---|---|
<1, 5, 1> | Horizontal Alignment | Option | The caption's horizontal alignment |
<1, 5, 2> | Vertical Alignment | Option | The caption's vertical alignment |
...
Code Block |
---|
// Set a single centered text item in the popup Items = "" Items<1, 1> = "0":@SVM:"0":@SVM:"170":@SVM:"130" Items<1, 2> = "Hello, World!" Items<1, 4> = "":@SVM:"":@SVM:"700":@SVM:"0":@SVM:"0" Items<1, 5> = "Center":@SVM:"Center" Set_Property(@Window:".OLE_POPUP", "OLE.ItemList", Items) |