Applies to

Tab controls


When the FocusOnButtonDown property is enabled, each tab page gets focus when the user clicks on it. A dotted rectangle marks the tab page. If FocusOnButtonDown is not enabled, the clicked tab page does not display the focus rectangle. In either case, the selected tab page comes to the front.


In a painter

To set the FocusOnButtonDown property:

  • Select the Focus On Button Down check box on the General page of the tab control's Properties view.

In scripts

The FocusOnButtonDown property takes a boolean value. The following example specifies that tab pages within the control tab_1 display the focus rectangle when clicked:

tab_1.FocusOnButtonDown = TRUE