ENH: fl_ask replaced by fl_choice in FLTKCallback.

This commit is contained in:
Luis Ibanez 2001-10-29 21:20:30 -05:00
parent b0e3a2def0
commit 37502d85d8
1 changed files with 4 additions and 4 deletions

View File

@ -14,9 +14,10 @@
void FLTKMessageCallback(const char* message, const char* title, bool& nomore) void FLTKMessageCallback(const char* message, const char* title, bool& nomore)
{ {
int ok = std::string msg = message;
fl_ask(message, "Press cancel to suppress any further messages."); msg += "\nPress cancel to suppress any further messages.";
if(!ok) int choice = fl_choice( msg.c_str(), "Cancel","Ok","");
if(choice==0)
{ {
nomore = true; nomore = true;
} }
@ -586,7 +587,6 @@ CMakeSetupGUIImplementation
m_CacheEntriesList.SetDirty(); m_CacheEntriesList.SetDirty();
} }
} }
} }