Versions Compared

Key

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

...

Simply set this property to a string containing any above value (or abbreviation thereof) separated by spaces. Order is not important. For instance, the following string draws the border along three edges:

Code Block
 * 2 ways to set the border along the bottom edge and both side edges 
Set_Property(@Window:".OLE_PICTURE", "OLE.BorderAlignment", "Left Right Bottom") 
Set_Property(@Window:".OLE_PICTURE", "OLE.BorderAlignment", "L R B"

...

For either on of the above values to work, they must be the first and only value specified. The following example demonstrates an invalid use of these values followed by a valid one.

Code Block
 * Since "None" is not the first word, it is ignore. Thus, only the left border is drawn 
Set_Property(@Window:".OLE_PICTURE", "OLE.BorderAlignment", "Left None") 

 * In this case, "None" works and no border is drawn 
Set_Property(@Window:".OLE_PICTURE", "OLE.BorderAlignment", "None" )

...

As noted in the table, these values only make sense as long as you apply them to only one of the two applicable edges. You cannot ask both a "Left" and "Right" border to move to the opposite edges because one edge will be lost. The following example demonstrates the proper usage of the above values:

Code Block
 * In this case, "Inner_Horz" is ignored because both "Left" and "Right" are specified 
Set_Property(@Window:".OLE_PICTURE", "OLE.BorderAlignment", "Left Right Inner_Horz") 

 * In this case, "Inner_Horz" is recognized, and the left border is drawn along the right edge 
* even though both the top and bottom are specified (because top and bottom are vertical, 
* not horizontal 
Set_Property(@Window:".OLE_PICTURE", "OLE.BorderAlignment", "Left Top Bottom Inner_Horz" )

...