Update of /cvsroot/mahogany/M/include/gui
In directory usw-pr-cvs1:/tmp/cvs-serv23873/include/gui
Modified Files:
wxMDialogs.h
Log Message:
added a possibility to have Ok/Cancel dialogs
Index: wxMDialogs.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/gui/wxMDialogs.h,v
retrieving revision 1.99
retrieving revision 1.100
diff -b -u -2 -r1.99 -r1.100
--- wxMDialogs.h 18 May 2002 17:11:17 -0000 1.99
+++ wxMDialogs.h 15 Jun 2002 11:42:54 -0000 1.100
@@ -39,4 +39,7 @@
/**
Flags for MDialog_YesNoDialog()
+
+ NB: M_DLG_DISABLE and M_DLG_NOT_ON_NO must be equal to the corresponding
+ wxPMSBOX_XXX flags
*/
enum
@@ -45,5 +48,6 @@
M_DLG_NO_DEFAULT = 0x1000,
M_DLG_DISABLE = 0x2000, // pre-check the "Don't ask again" checkbox
- M_DLG_NOT_ON_NO = 0x4000 // don't allow disabling on "No"
+ M_DLG_NOT_ON_NO = 0x4000, // don't allow disabling on "No"
+ M_DLG_ALLOW_CANCEL= 0x8000 // add "Cancel" button to MDialog_Message
};
@@ -163,6 +167,8 @@
@param title title for message box window
@param configPath the profile path to use (doesn't use profile if NULL)
+
+ @return TRUE if Ok was pressed, FALSE if Cancel
*/
-void MDialog_Message(char const *message,
+bool MDialog_Message(char const *message,
const wxWindow *parent = NULL,
char const *title = MDIALOG_MSGTITLE,
@@ -250,6 +256,8 @@
@param persMsg the profile path to use (doesn't use profile if NULL)
@param title title for message box window
+
+ @return TRUE if Ok was pressed, FALSE if Cancel
*/
-void MDialog_Message(char const *message,
+bool MDialog_Message(char const *message,
const wxWindow *parent,
const MPersMsgBox *persMsg,
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates