ICreate.Controls.Bars Send comments on this topic.
ShowFocus Property
See Also 
ICreate.Controls.Bars Namespace > Bar Class : ShowFocus Property






Gets or sets the value that determines if the Bar element with focus is drawn surrounded by a focus rectangle.

Syntax

Visual Basic (Declaration) 
Public Property ShowFocus As Boolean
Visual Basic (Usage)Copy Code
Dim instance As Bar
Dim value As Boolean
 
instance.ShowFocus = value
 
value = instance.ShowFocus
C# 
public bool ShowFocus {get; set;}
Delphi 
public read-write property ShowFocus: Boolean; 
JScript 
public function get,set ShowFocus : boolean
Managed Extensions for C++ 
public: __property bool get_ShowFocus();
public: __property void set_ShowFocus( 
   bool value
);
C++/CLI 
public:
property bool ShowFocus {
   bool get();
   void set (bool value);
}

Return Value

A System.Boolean value, this property determines if the appearance of the Bar items indicate which one has focus. If ShowFocus is true then the item with focus will display some indication it has focus; otherwise it is false and no indication of the focused item will be given. The default value is true.

Remarks

Bar is the base class of TaskBar, ButtonBar and SideBar. TaskBar indicates which TaskBarItem has focus by drawing a focus rectangle around the item. TaskBar indicates that it itself has the focus by drawing a focus rectangle around its title Text. ButtonBar indicates which element has focus by drawing a focus rectangle around the Text of the ButtonBarItem or the sub button indicator. SideBar indicates which SideBarItem has focus by drawing a focus rectangle around the Text.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also