4D Write v14WR Get text property |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D Write v14
WR Get text property
WR Get text property
The WR Get text property command allows you to determine whether the property passed in property is used in the current selection of the 4D Write area referenced by area.
The property parameter lets you set the property to be examined. For more information, refer to the description of the WR SET TEXT PROPERTY command. If you pass an invalid property number, the error 1075 is returned. You want to make sure that margin sizes do not exceed a fixed value: LEFT:=WR Get text property(Area;wr left margin;$Uniform) You want users to be able to set the line spacing and alignment, but you do not want them to have access to menus and rulers. The input form contains a button labeled Info and two variables, LineSpacing and Alignment, each of them attached to a method. - The following is the object method for the Info button, it retrieves information about the current cursor position: LineSpacing:=WR Get text property(Area;wr line spacing;$Uniform) - LineSpacing object method sets the user's choice for line spacing: WR SET TEXT PROPERTY(Area;LineSpacing) - Alignment object method sets the user's choice for alignment: WR SET TEXT PROPERTY(Area;Alignment) - In the On load form event, you hide menus and rulers: If(Form event=On Load) |
PROPERTIES
Product: 4D Write
HISTORY
Modified: 4D Write 2003 SEE ALSO ARTICLE USAGE
4D Write Language ( 4D Write v11.6) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||