#include <LgiClasses.h>
Inheritance diagram for GAlert:
Public Member Functions | |
GAlert (GView *parent, char *Title, char *Text, char *Btn1, char *Btn2=0, char *Btn3=0) | |
Constructor. | |
int | OnNotify (GView *Ctrl, int Flags) |
Called when a child view or view with it's SetNotify() set to this window changes. |
The best thing about this class is you can name the buttons very specifically. It's always non-intuitive to word a question to the user in such a way so thats it's obvious to answer with "Ok" or "Cancel". But if the user gets a question with customised "actions" as buttons they'll love you.
The button pressed is returned as a index from the DoModal() function. Starting at '1'. i.e. Btn2 -> returns 2.
|
Constructor.
|
|
Called when a child view or view with it's SetNotify() set to this window changes. The event by default will bubble up to the GWindow at the top of the window heirarchy visiting each GView on the way. If it reaches a GView that processes it then the event stops propergating up the heirarchy. Reimplemented from GView. |