Page History
Default data alignment http://wiki.srpcs.com/index.php?title=SRP_Tree_Control_Property_DefAlignment&action=edit#forfor new items.
Usage
Code Block |
---|
Set_Property(OLECtrlEntID, "OLE.DefAlignment", Array) |
...
Pos | Name | Type | Description | Default |
---|---|---|---|---|
<1> | Horizontal | Option | The default horizontal alignment for new items | Left |
<2> | Vertical | Option | The default vertical alignment for new items | Center |
...
The DefAlignment property sets the alignment for new items. Setting this property will not change existing items. Instead, newly added items will take on the setting established in this property. See the ItemAlignment property for details.
For more information on how default properties can make you more efficient, see the Default Properties article.
Example
Code Block |
---|
// Center justify new items Set_Property(@Window:".OLE_TREE", "OLE.DefAlignment", "Center":@FM:"Center") |