Page History
...
Code Block |
---|
Errors = SRP_PropertyPanel(PanelCtrl, "Init", ItemList, ColWidth, Colors, FontArray) |
Parameters
ItemList
Pos | Name | Description | Default |
---|---|---|---|
<x, 1> | Level | The item's level in the panel - 1 is the group, 2 is the property. | |
<x, 2> | PropertyKey | The key to each property - must be unique. | |
<x, 3> | PropertyName | (Optional) The text label to use as the property name. | Key |
<x, 4> | Type | (Optional) The type of entry / type of cell : "B" - two boolean values"C" - custom dropdown list "D" - date / calendar dropdown "O" - option button "V" - varchar "X" - checkbox (see below). | V |
<x, 5> | Conversion | (Optional) Oconv :SVM: Iconvnone | |
<x, 6> | Params | (Optional) dropdown list or parameters depending on Type (see below). | |
<x, 7> | Value | (Optional) Any value to pre-fill into the data section. | |
<x, 8> | Visible | (Optional) show or hide a specific property. | True |
<x, 9> | Fields | (Optional) User defined value pairs associated with a property. | |
<x,10> | Force Update | (Optional) Forces update to a cell after dropdown selection. | False |
ColWidth
The width of each of the two columns, @FM delimited. Can be a number or "Auto" (default is Auto).
...
Field | Description | Default |
---|---|---|
<1> | Headers & Gridlines | defaults to a light grays, RGB(240,240,240) |
<2> | Selection | defaults to "Select" |
<3> | Background | defaults to "White" |
FontArray
Field | Name | Value |
---|---|---|
<1> | Group | Standard font parameter |
<2> | Property | Standard font parameter |
<3> | Value | Standard font parameter |
...
Types
(B)oolean
Position | Description |
---|---|
<x,6,1> | Value to be considered as true / yes / 1 |
<x,6,2> | Value to be considered as false / no / 0 |
(COL)or
Call the color picker dialog. Returns the color value formatted based on user requirement
Position | Description | Default |
---|---|---|
<x,6,1> | How the resulting color should be returned: DEC : decimal format HEX : # hex color number RGB : R, G, B | DEC |
<x,6,2> | Prevent the cell background from displaying the selected color | No |
(C)ustom
Position | Description |
---|---|
<x,6,x> | SVM list of items to appear in the dropdown |
...