SetFocus
SetFocus()
Forces the control into focus
Applies to: Generic , Group , TabbedItem
SetFocus(bMoveFocus)
Moves the tab into focus
bMoveFocus | Bool |
---|
Applies to: TabbedItem
Introduced in KCML version 6.00
This method is used to force the control to which it is applied into focus. For example:
.editControl1.Setfocus()
It can be used to switch focus to the first tabbable control within the group. Groups are set up and named at design time within the Form Designer.
When applied to a page on a tab control it will have the effect of selecting that page, exposing its controls and setting input focus to the the tab's ear. The user can then press TAB to move to the first control of the page in tabstop order. The Forms Designer can set a separate tabstop order for the controls on each tab page. SetFocus() is the same as SetFocus(TRUE). SetFocus(FALSE) will select the tab page but will not move focus.