Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Default data alignment http://wiki.srpcs.com/index.php?title=SRP_Tree_Control_Property_DefAlignment&action=edit#for new alignment for new items.

Usage

Code Block
Set_Property(OLECtrlEntID, "OLE.DefAlignment", Array)

...

PosNameTypeDescriptionDefault
<1>HorizontalOptionThe default horizontal alignment for new itemsLeft
<2>VerticalOptionThe default vertical alignment for new itemsCenter

...

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")

See Also

ItemAlignment