Gets or sets whether the Tab key can be used to set focus to the control.
object.TabStop = [boolean]
Where object is an object expression that evaluates to one of the objects in the Applies To list, and boolean is a boolean expression that evaluates to either True or False, as described in Settings.
This property allows you to add or remove a control from the tab order on a form. For example, if you would like to exclude infrequently used entry fields from the tab order, set their TabStop property to False.
The Label and PictureBox controls by default have their TakeFocusOnClick property and TabStop property set to False. If you want the user to be able to tab to and click on these controls you will need to set both properties to True.
An option button group has a single tab stop. The selected button (that is the button with its Valueset to True) has its TabStop property automatically set to True, while the other buttons have their TabStop property set to False.
The TabStop property cannot be used to change the field that receives focus when a form is received. If a host field has the default focus when a screen is received, setting the TabStop property to False will not prevent that field from receiving focus initially, it will only prevent the field from subsequently being tabbed to. If you wish to change the field that receives focus when a screen is received, run a macro or script on the OnTimer event of the form which uses the SetActiveControl method to reposition the cursor to the desired control.
Setting |
Description |
True |
(Default for CheckBox, ComboBox, CommandButton, Data, DataGrid, DateCombo, MenuButton, ListBox, ListView, MenuButton, NumericCombo, OptionButton, Tab, TextBox and TreeView controls) Allow the user to tab to this control. |
False |
(Default for Frame, GoogleBarChart, GoogleMap, GooglePieChart, Label, PictureBox, ProgressBar, ScrollBar, TrackBar and UpDown controls) Prevent the user from tabbing to this control. |
TakeFocusOnClick property | Enabled property | ReadOnly property | GroupStart property | SetActiveControl method | TabIndex property
ScrollBar control (control deprecated in version 10.5)
© 2004-2021 looksoftware. All rights reserved.