U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Library : Other (not classified elsewhere) » PromptYesNoOpt dialog
PromptYesNoOpt dialog [message #62026] Sat, 27 June 2026 19:26 Go to next message
forlano is currently offline  forlano
Messages: 1244
Registered: March 2006
Location: Italy
Senior Contributor
Hello,

#include <CtrlLib/CtrlLib.h>

using namespace Upp;

GUI_APP_MAIN
{ PromptYesNoOpt("Do you want to see me again?");
}
perhaps I have not understood how the Opt should work.
I would like that when "Do not show it again" is checked it should stop to appear.
Instead it continues to appear irrispective of my choose.

Thanks,
luigi
Re: PromptYesNoOpt dialog [message #62029 is a reply to message #62026] Sun, 28 June 2026 18:23 Go to previous message
forlano is currently offline  forlano
Messages: 1244
Registered: March 2006
Location: Italy
Senior Contributor
This works:

GUI_APP_MAIN
{
   String cfg = AppendFileName(GetHomeDirectory(), ".myapp_prompts.bin");
   
   
   {
       FileIn fi(cfg);
       if(fi) SerializePromptOptHistory(fi);
   }

   PromptYesNoOpt("Do you want to see me again?");

   FileOut fo(cfg);
   if(fo) SerializePromptOptHistory(fo);
}
Previous Topic: Suggestion for SuggestCtrl
Goto Forum:
  


Current Time: Wed Sep 09 03:34:03 GMT+2 2026

Total time taken to generate the page: 0.00569 seconds