From: Jerome St-Louis Date: Fri, 15 Jul 2016 02:53:30 +0000 (-0400) Subject: ide: Changing reload message boxes activation settings to 'flash' X-Git-Tag: 0.44.15~119 X-Git-Url: https://ecere.com/cgi-bin/gitweb.cgi?p=sdk;a=commitdiff_plain;h=28e8e58e6938a754ed04b904bcf6f91a911ae14b;ds=sidebyside ide: Changing reload message boxes activation settings to 'flash' --- diff --git a/ide/src/IDESettings.ec b/ide/src/IDESettings.ec index 83954ea..c7dbf1b 100644 --- a/ide/src/IDESettings.ec +++ b/ide/src/IDESettings.ec @@ -319,6 +319,7 @@ private: CloseAndMonitor(); MessageBox { master = w, type = ok, isModal = true, + creationActivation = flash, text = "Global Settings Modified Externally", contents = "The global settings were modified by another process and a drastic shrinking of the settings file was detected.\n" "The new settings will not be loaded to prevent loss of your ide settings.\n" diff --git a/ide/src/designer/CodeEditor.ec b/ide/src/designer/CodeEditor.ec index 55c9537..289d9ac 100644 --- a/ide/src/designer/CodeEditor.ec +++ b/ide/src/designer/CodeEditor.ec @@ -2332,7 +2332,7 @@ class CodeEditor : Window sprintf(message, $"The document %s was modified by another application.\n" "Would you like to reload it and lose your changes?", fileName); - if(MessageBox { type = yesNo, master = /*parent = */parent, text = $"Document has been modified", + if(MessageBox { creationActivation = flash, type = yesNo, master = /*parent = */parent, text = $"Document has been modified", contents = message }.Modal() == yes) reload = true; } diff --git a/ide/src/ide.ec b/ide/src/ide.ec index 2c06b0a..6238aaa 100644 --- a/ide/src/ide.ec +++ b/ide/src/ide.ec @@ -1829,7 +1829,7 @@ class IDEWorkSpace : Window char temp[4096]; sprintf(temp, $"The document %s was modified by another application.\n" "Would you like to reload it and lose your changes?", this.fileName); - if(MessageBox { type = yesNo, master = this/*.parent*/, + if(MessageBox { creationActivation = flash, type = yesNo, master = this/*.parent*/, text = $"Document has been modified", contents = temp }.Modal() == yes) { bool noParsing = (this._class == class(CodeEditor) && ((CodeEditor)this).noParsing) ? true : false;