Returns or sets the number of tabs and the absolute tab positions of text in a RichEdit control.
object.SelTabCount [= variant]
object.SelTabs(index%) [=variant]
object:RichEdit
The SelTabCount property determines the number of tab positions in the selected paragraph(s) or in those paragraph(s) following the insertion point.
SelTabs(index%) identifies a specific tab. The first tab location has an index of zero (0). The last tab location has an index equal to SelTabCount minus 1.
These properties return Null if the selection spans multiple paragraphs with different tab settings.
Local i%
Ocx RichEdit red = "", 10, 10, 300, 300 : .MultiLine = True : .BorderStyle = 1 : .WantSpecial = True
red.SelTabCount = 5
For i% = 0 To .SelTabCount - 1
red.SelTabs(i%) = 3 * i%
Next
Do : Sleep : Until Me Is Nothing
Null differs from zero, these properties can only be queried with IsNull().
By default, pressing TAB when typing in a RichEdit control causes focus to move to the next control in the tab order, as specified by the TabIndex property. One way to insert a tab in the text is by pressing CTRL+TAB. However, users who are accustomed to working with word processors may find the CTRL+TAB key combination contrary to their experience. You can enable use of the TAB key to insert a tab in a RichEdit control by setting WantSpecial = 1.
{Created by Sjouke Hamstra; Last updated: 23/10/2014 by James Gaite}