Main Index : Reference :
class GeModalDialog : GeUserDialog
{
public:
GeModalDialog();
[bool] Open([int] xpos, [int] ypos);
[bool] GetResult();
}
This class is especially designed for modal dialogs. This means that as long as the dialog is open, the rest of the program has to wait until the user closes the dialog. So this dialog type fits 90% of all plugins. Additionally it handles the OK and Cancel buttons for you.
[bool] Open([int] xpos, [int] ypos);
Opens the dialog at the specified position. If xpos=-1 and ypos=-1 the dialog will be opened at the current mouse position. Returns TRUE if successful.
[bool] GetResult();
After the dialog has been closed by the user you can use this function to determine if the user has quit the dialog with the OK button (TRUE), or the Cancel button (FALSE).
Note: If the user hits the OK button, AskClose() is called automatically before the dialog is closed. So if one wants to make additional error checks before closing the dialog one gets the time to do so there.