4D v13

WR SET STYLESHEET TAB

Home

 
4D Write v13
WR SET STYLESHEET TAB

WR SET STYLESHEET TAB 


 

WR SET STYLESHEET TAB ( area ; stylesheetNumber ; tabNumber ; position ; alignment ; fillChar ) 
Parameter Type   Description
area  Longint in 4D Write area
stylesheetNumber  Longint in Stylesheet number
tabNumber  Longint in Tab number
position  Longint in New tab position
alignment  Integer in New value for the tab alignment
fillChar  String in Selected fill character

The WR SET STYLESHEET TAB command allows you to modify the parameters of the tab stop whose number was passed in tabNumber (tabs are counted left to right) belonging to the style sheet whose number was passed in styleSheetNumber (style sheets are counted top to bottom as shown in the style sheets dialog)). The WR SET STYLESHEET TAB command will move the tab stop to position and will set the fill character as well as the alignment of the tab stop.

This command has no effect on the selected text even if it uses the style sheet being modified.

  • If you want to update the text that uses that style sheet, call the WR UPDATE STYLESHEET command after modifying the style sheet definition.
  • If you want to immediately apply the new tab properties of the style sheet to both the style sheet and the current selection, use the WR APPLY STYLESHEET command.

If a tab stop already exists at the new location in the style sheet, it will be replaced by the tab stop that is the subject of this command.

position is the distance from the left margin to which you want to move the tab stop. position is expressed in the current default unit for the document. If you do not want to change the position of the tab stop, pass -1 in the position parameter.

alignment specifies the type of alignment you want to select for the tab stop. In order not to modify the tab alignment, pass -1 in this parameter. Otherwise, you can use the following constants, found in the “WR Tabs” theme:

Constant Type Value Comment
wr left tab Longint 1 Left aligned
wr centered tab Longint 2 Centered
wr right tab Longint 3 Right aligned
wr decimal tab Longint 4 Decimal
wr vertical separator tab Longint 5 Vertical separator

fillCharacter can be any character whose code is contained between 33 and 127. This character is displayed in the same font as the modified tab stop.

Example  

See the example for the WR GET STYLESHEET TAB command.

 
PROPERTIES 

Product: 4D
Theme: WR Style Sheet
Number: 89477

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: 4D Write 6.5

 
SEE ALSO 

WR ADD STYLESHEET TAB
WR DELETE STYLESHEET TAB