PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Adding a cell into the status bar of the current window
  • How to proceed?
  • Example
  • WLanguage functions associated with the status bars
  • WLanguage properties used to manage the status bars
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Programming a status bar
Overview
WINDEV and WINDEV Mobile allow you to handle a status bar and a cell found in a status bar by programming. To do so, use the variable of the status bar or the variable of the cell in the code.
The variable of a status bar corresponds to the name of the status bar. The variable of a cell found in a status bar corresponds to the name of the cell.
Adding a cell into the status bar of the current window
WINDEVWindows

How to proceed?

To add a cell into a status bar by programming, all you have to do is call MessageAddCell.
Then, this cell can be handled by several properties.
Caution: The name of a cell created by MessageAddCell must be enclosed between indirection operators ({ }) in order to be handled by the WLanguage properties.
WINDEVWindows

Example

The following example adds a cell in the status bar of the current window.
This cell displays the coordinates of the mouse cursor. The background of this cell is red. The font used in this cell is bold.
// -- Initialization code of window
// Adds "MyCell" into the status bar of the current window
MessageAddCell("MyCell", 100, LightRed)
// Modifies the weight of the information displayed in "MyCell"
// The indirection operators are required for a cell created
// by MessageAddCell
{"MyCell"}..FontBold = True
// -- Optional code for mouse rollover
// Displays the coordinates of the mouse cursor in "MyCell"
Message("MyCell", MouseXPos() + " , " + MouseYPos())
WLanguage functions associated with the status bars
The following functions are associated with the status bars:
Progress BarDisplays a progress bar in the status bar of current window.
MessageDisplays (or erases) a message in the status bar of the current window.
MessageAddCellAdds a cell into the status bar of the current window.
MessageDeleteCellDeletes a cell from the status bar of the current window.
Note: The name of a cell created by MessageAddCell must be enclosed between indirection operators in order to be handled by the WLanguage properties.
WLanguage properties used to manage the status bars
The following properties are used to manage the status bars:
StatusBarUsed to find out whether the status bar of window is enabled and to enable it if necessary.
MessageUsed to find out and modify the help message associated with the control or with the window.
Specific properties are also available for each cell found in a status bar. See Properties associated with the cells of the status bars for more details.
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment