StatusBar control. More...
#include <mgui/statusbar.h>

StatusBar control.
This control is not dynamically positioned the same as other MGUI::CTRLs because the underlying implementation may do its own positioning in some environments. When adding a status bar to an MGUI::DLGSHELL you must use MGUI::DLGSHELL::SetStatusBar() in the dialog subclass's implementation of v_CreateContent() to allow for the status bar in dynamic layout. Logging is turned off by default, use SetLogEnabled() to enable if desired.
Status bar style.
| MGUI::CTRL_STATUSBAR::CTRL_STATUSBAR | ( | ) |
Constructor.
| virtual MGUI::CTRL_STATUSBAR::~CTRL_STATUSBAR | ( | ) | [virtual] |
Destructor.
Add "indicator pane" to status bar.
If more than one pane has PANESTYLE_Stretch, their relative sizes will be based on the relative values of cxWidth. For example, if pane 0 has a cxWidth of 100 and pane 1 has 50, then pane 0 will be allocated twice as much of the available space as pane 1.
| usage | Pane usage, only one pane may have USAGE_Main, ProgressBar or ElapsedTime specified | |
| style | Pane style | |
| cxWidth | Pane width in pixels | |
| id | Optional pane ID |
| void MGUI::CTRL_STATUSBAR::AttachCancelButton | ( | CTRL_TOOLBAR & | toolbar, | |
| ID | id | |||
| ) |
Attach toolbar button to use for cancelling operation.
Delegate for toolbar button will be set. Toolbar must have been created.
| toolbar | Toolbar | |
| id | Id of toolbar button |
| void MGUI::CTRL_STATUSBAR::AttachCancelButton | ( | CTRL_PUSHBUTTON & | button | ) |
Attach button to use for cancelling operation.
Delegate for button will be set. Button must have been created.
| DEPRECATED void MGUI::CTRL_STATUSBAR::AttachCancelButtonWidget | ( | Widget | widget | ) |
| void MGUI::CTRL_STATUSBAR::ClearBar | ( | ) |
Clear progress bar.
| void MGUI::CTRL_STATUSBAR::ClearPane | ( | int | PaneIndex | ) |
Clear text or icon in specified pane.
| void MGUI::CTRL_STATUSBAR::ClearPaneElapsedTime | ( | ) |
Clear "elapsed time" pane (does not reset timer itself).
| void MGUI::CTRL_STATUSBAR::ClearText | ( | ) |
Clear text in main pane.
| void MGUI::CTRL_STATUSBAR::Create | ( | MGUI::LAYOUT_PANE_BASE & | ParentPane, | |
| STYLE | style = STYLE_Default | |||
| ) |
Create control.
If specified style requests predefined panes that have not already been added via AddPane, they will be added to the right of any existing panes automatically.
| ParentPane | Parent pane |
| void MGUI::CTRL_STATUSBAR::SetPaneDelegateOnToolTipRequest | ( | int | PaneIndex, | |
| DELEGATE_ONTOOLTIPREQUEST | delegate | |||
| ) |
Set delegate for tooltip request on pane.
| PaneIndex | Pane index, 0 indicates main text pane |
| void MGUI::CTRL_STATUSBAR::SetPaneEnabled | ( | int | PaneIndex, | |
| bool | enabled | |||
| ) |
Set whether pane shows as "enabled".
| PaneIndex | Pane index, 0 indicates main text pane | |
| enabled | True if "enabled", false if not |
| void MGUI::CTRL_STATUSBAR::SetPaneIcon | ( | int | PaneIndex, | |
| ICONID | iconid | |||
| ) |
Set icon for specified pane.
| PaneIndex | Pane index, 0 indicates main text pane | |
| iconid | Icon ID |
| void MGUI::CTRL_STATUSBAR::SetPaneText | ( | int | PaneIndex, | |
| const MISTRING & | string | |||
| ) |
Set text for specified pane.
| PaneIndex | Pane index, 0 indicates main text pane | |
| string | Text to set |
| void MGUI::CTRL_STATUSBAR::SetPaneToolTipString | ( | int | PaneIndex, | |
| const MISTRING & | string | |||
| ) |
Set string for tooltip on pane.
| PaneIndex | Pane index, 0 indicates main text pane | |
| string | String for tooltip |
| void MGUI::CTRL_STATUSBAR::SetPaneVisible | ( | int | PaneIndex, | |
| bool | visible | |||
| ) |
Set whether pane is visible.
| PaneIndex | Pane index, 0 indicates main text pane | |
| visible | True to show, false to not |
| void MGUI::CTRL_STATUSBAR::SetText | ( | const MISTRING & | string | ) |
Set text for "main" pane.
Done automatically when create MISTATUSCONTEXT instance.
| string | Text to set |
| void MGUI::CTRL_STATUSBAR::SetTextError | ( | ERRVALUE | err | ) |
Set text for first pane to error message.
1.6.1