WINDEV Concepts

Part 1: Main concepts 31 13 The status bar The status bar of a window can display: • an information message linked to the current control . This message can be entered in the "Help" tab of the control description window. The message will be displayed in the status bar when the user selects the control. • a specific information message . This message is displayed programmatically with Message . • a progress bar . This progress bar is displayed programmatically with ProgressBar . To display different types of information simultaneously, you can divide the status bar into several cells ("Insert a cell" in the context menu of the status bar). 13.1 Status bar description window The description window of a status bar allows you to: • add and/or delete cells. • change the order of the cells. • specify the information that will be displayed for each cell. For more details, see the online help. 13.2 Type of cell in the status bar The type of allows you to display: • The progress bar. This progress bar will be run when using ProgressBar . • The help message associated with the control that has focus. This help message is defined in the "Help" tab of the control or in the code using the Message property. • The date of the current computer. • The time of the current computer. • The cursor position in the current Edit control ("Column and row of the caret" option). • The status of the Caps Lock key that indicates whether it is enabled or not. • The status of the Insert key, which indicates if it is enabled. • The name of the current user in an application that uses the User Groupware. Two specific options are also available: • Programmatically: The information displayed in the status bar is specified programmatically (using Message for example). • The update event: The "Whenever updating" event is automatically associated with the cell of the status bar. This event is run on a regular basis. This event can contain the elements that will be displayed in the cell, for example. 13.3 Characteristics of the cells in the sta- tus bar The status bar description window also allows you to define the display characteristics of the cells. • The position of the cell in the status bar. • The background image of the cell. • The background color of the cell. • The width of the cell. • Whether the cell is editable. • The anchors of the cell (its behavior when the window is resized). All these characteristics can be handled programmatically via the properties available for the cells in the status bars.

RkJQdWJsaXNoZXIy NDQ0OA==