Dialog to display question to user with pushbutton responses. More...
#include <mgui/dlgquestion.h>

Public Types | |
| enum | TOGGLETYPE { TOGGLETYPE_NeverAsk, TOGGLETYPE_AlwaysAsk } |
Public Member Functions | |
| DLG_QUESTION (const MISTRING &dlgtitle, const MISTRING &text, DLGQ_STYLE style, INT32 dftresponse, HELPID helpid=HELPID__None) | |
| ~DLG_QUESTION () | |
| void | AddButton (const MISTRING &text, INT32 response) |
| bool | CheckNoShow () const |
| INT32 | GetResponse () const |
| bool | SetupToggle (const char *IniGroup, const char *IniName, const MISTRING &ToggleText, TOGGLETYPE ToggleType) |
Dialog to display question to user with pushbutton responses.
Also allows for optional toggle to always show / never show.
| MGUI::DLG_QUESTION::DLG_QUESTION | ( | const MISTRING & | dlgtitle, | |
| const MISTRING & | text, | |||
| DLGQ_STYLE | style, | |||
| INT32 | dftresponse, | |||
| HELPID | helpid = HELPID__None | |||
| ) |
Constructor.
| dlgtitle | Text for title | |
| text | Text for question | |
| style | Dialog style | |
| dftresponse | Default response value | |
| helpid | Help ID |
| MGUI::DLG_QUESTION::~DLG_QUESTION | ( | ) |
Destructor.
Add non-standard button with text and response.
Button will be added to left of any "standard" buttons used.
| bool MGUI::DLG_QUESTION::CheckNoShow | ( | ) | const |
Determine if user doesn't want to see question again.
| INT32 MGUI::DLG_QUESTION::GetResponse | ( | ) | const [inline] |
Get response from dialog.
| bool MGUI::DLG_QUESTION::SetupToggle | ( | const char * | IniGroup, | |
| const char * | IniName, | |||
| const MISTRING & | ToggleText, | |||
| TOGGLETYPE | ToggleType | |||
| ) |
Set up toggle for whether user wants to see question again.
| IniGroup | Ini group | |
| IniName | Ini name to store toggle state | |
| ToggleText | Text to show for toggle | |
| ToggleType | Meaning of toggle |
1.6.1