Click or drag to resize

StatusBar Class (Typed)

X#
Create a status bar for use in a window.
Inheritance Hierarchy
Object
  VObject
    Control
      StatusBar

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.24 GA
Syntax
 CLASS StatusBar INHERIT Control
Request Example View Source

The StatusBar type exposes the following members.

Constructors
  NameDescription
Public methodStatusBar
Construct a status bar.
Top
Properties
  NameDescription
Public propertyAsString
Public propertyControlText
A string representing a message associated with a control to be displayed on the status bar. This message takes priority over the StatusBar:PermanentText message.
Public propertyDisabledKeyIndicatorColor
The Color object that the status bar uses to indicate that a key is disabled. The default is gray.
Public propertyErrorMessageBeep
A logical value determining whether a beep is sounded by the error system when an error occurs. TRUE turns beeping on; FALSE turns it off.
Public propertyErrorText
A string representing an error message to be displayed on the status bar. This message takes priority over the StatusBar:ControlText and StatusBar:PermanentText messages.
Public propertyHorizontalBorder
A numeric value representing the width of the horizontal border between the top or bottom edge of the status bar and its items.
Public propertyInsertMode
A logical value indicating whether the program is in insert mode.
Public propertyItemBorder
A numeric value representing the width of the borders between the status bar items.
Public propertyKeyIndicatorColor
The Color object that the status bar uses to indicate to the user that a key is in the on state.
Public propertyLength
A numeric value representing the number of characters in the message to be displayed on the status bar.
Public propertyMenuText
A string representing a message associated with a menu selection to be displayed on the status bar.
Public propertyPermanentText
A string representing the default message to be displayed on the status bar
Public propertyPosition
A pair representing the coordinates to be shown in the status bar. The units you choose for coordinates are arbitrary.
Public propertyTextValue
A string representing the value held in the status bar.
(Overrides TextValue.)
Public propertyTimeOut
A numeric value indicating the number of seconds a nonpermanent message is displayed on the status bar.
Public propertyTransient
A string representing an error message to be displayed on the status bar. This message takes priority over the StatusBar:ControlText and StatusBar:PermanentText messages.
Public propertyVerticalBorder
A numeric value representing the height of the vertical border between the left or right edge of the status bar and its items.
Top
Functions
  NameDescription
Public methodAddItem
Add a new item to the status bar.
Public methodClearItems
Remove all of the status bar items.
Public methodDestroy
Provide a method to de-instantiate a StatusBar object.
(Overrides Destroy.)
Public methodDisplayKeyboard
Enable the display of the keyboard state on the status bar.
Public methodDisplayMemory
Enable the display of the virtual memory available, on the status bar. You must keep the display refreshed as necessary by calling StatusBar:RefreshMemoryDisplay().
Public methodDisplayMessage
Enable the display of messages on the status bar.
Public methodDisplayPosition
Enable the display of a coordinate pair on the status bar.
Public methodDisplayTime
Enable the digital clock display on the status bar.
Public methodGetItemBoundingBox
Get the bounding box that describes the area of a status bar item.
Public methodRefreshMemoryDisplay
Cause the status bar to bring the display of virtual memory up-to-date.
Public methodSetMessage
Display a string in the main message area of the status bar.
Public methodSetPair
Set a pair representing the coordinates to be shown in the status bar.
Public methodSetText
Set text for a status bar item.
Public methodShow
Display a status bar so it is visible.
(Overrides Show.)
Top
Remarks
A status bar is the shallow bar that appears usually at the bottom of a window to provide status information to the user without taking up much screen "real-estate." Visual Object's status bar class has methods to present the following kinds of information: Status messages (permanent or transient) Time Keyboard state (NumLock, CapsLock, ScrollLock, and Insert keys) Virtual memory available A screen coordinate reading The sequence in which you call the various Display… methods determines the left-to-right order in which the corresponding items appear upon the status bar. Any transient status message overrides the StatusBar:PermanentText status message, but it times out after five seconds.
Tip Tip
You never create a status bar yourself. Instead, you ask the window to do it, by calling AppWindow:EnableStatusBar(). Once you pick up the status bar returned by that method, you can customize the status bar by invoking the various Display… methods of status bar. Note that, except for the time display, the status bar items require you to refresh them. For example, if you turn on the display of available virtual memory, you must call the StatusBar:RefreshMemoryDisplay() method whenever the application is about to embark on a "memory-hungry" task. Because you never create status bars, you also never destroy them—the window does that itself.
See Also