1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-03 11:11:20 +00:00
This commit is contained in:
SteveMcNeill 2015-08-20 11:13:33 -04:00
commit f1ad2e6981

View file

@ -3608,7 +3608,7 @@ int MessageBox(int ignore,char* message, char* header, int type )
CFStringRef header_ref = CFStringCreateWithCString( NULL, header, kCFStringEncodingASCII );
CFStringRef message_ref = CFStringCreateWithCString( NULL, message, kCFStringEncodingASCII );
CFOptionFlags result;
if (type|MB_SYSTEMMODAL) type-=MB_SYSTEMMODAL;
if (type&MB_SYSTEMMODAL) type-=MB_SYSTEMMODAL;
if (type==MB_YESNO){
CFUserNotificationDisplayAlert(
0, // no timeout
@ -3653,7 +3653,7 @@ int MessageBox(int ignore,char* message, char* header, int type )
#else
int MessageBox(int ignore,char* message,char* title,int type){
static qbs *s=NULL; if (!s) s=qbs_new(0,0);
if (type|MB_SYSTEMMODAL) type-=MB_SYSTEMMODAL;
if (type&MB_SYSTEMMODAL) type-=MB_SYSTEMMODAL;
if (type==MB_YESNO){
qbs_set(s,qbs_new_txt("xmessage -center -title "));
qbs_set(s,qbs_add(s,qbs_new_txt("?"))); s->chr[s->len-1]=34;