TABSTOPS Property


PLBCMP GUI Only

 

The TABSTOPS property defines tab locations within the DATALIST. The property uses the following format:

TABSTOPS={value}

Note the following:

  1. TABSTOPS may be used in CREATE, SETPROP, or GETPROP statements of a DATALIST object.

  2. {tabs} is a string variable or literal that contains a series of tab values separated by semi-colons.

  3. The tab values are based on the current units within the bounds of the DATALIST. The minimum tab value is two (2) and each specified tab must be greater than the previous tab.

  4. A single tab value of zero clears all tabs and eliminates all tabbing.

  5. When a tab character (0x9) is found in an item in the DATALIST, the next character displayed is tabbed to the next tab position.

  6. If a data field overruns the defined tab position, the tabbing occurs at the next tab position.

  7. If a tab character is encountered after all tab positions, Windows defaults to a predetermined position based on eight (8) times the average character width for the font used in the DATALIST.

  8. Tab positions are relative to the left margin of the DATALIST.

  9. Setting new tabs completely replaces the old tab settings.

  10. The tabs are returned if data is retrieved using GETITEM for an item that has tabs in it.

  11. If {value} begins with a '@' character, it indicates the type of tab stop value calculations performed as follows:

  12.  

    Type

    Identifies that the values supplied in the {value} string should be…

    @

    sent as the tab stop values unchanged. This means that the values being sent to Windows must be Dialog Units.

     

  13. If the {value} does not start with '@', the runtime uses the tab stop values and performs a default calculation into Dialog Units using the following equation. The {avgCharWidth} is the average character width for the current font of the DATALIST.

    {DU} = ( {pos} * 4 ) / {avgCharWidth}
     

  14. The tab stop values supplied in {value} string can be specified as negative value by using a leading minus sign (-) before the tab stop value. When a negative value is specified, the data is right justified at the tab value position.

  15. All tab stop values are processed and presented to Windows in an ascending absolute value order.

 

 

See Also: Tabstops method, Object Properties, Object IO Instructions, Object Definitions

 



PL/B Language Reference TABLABEL Property TABSTYLE Property