Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » U++ community news and announcements » "Do not show again" variants of U++ message boxes
"Do not show again" variants of U++ message boxes [message #57129] Fri, 28 May 2021 11:46 Go to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
All prompts now got "Opt" and "Opt1" variants, e.g.

PromptYesNoOpt1(const char *qtf, const char *opt_id = NULL);


These variant present "Do not show again" checkbox.

If checked and the Opt dialog is invoked again with the same opt_id, then the same value as the last time is returned withou showing the dialog.

Opt1 does this only if user selects button that returns 1 (e.g. Yes) - this is because sometimes it would be pretty confusing that some operation with "do you want to continue" prompt would be blocked forever...

If opt_id is not specified (NULL), it is created by hashing the message text.

Functions

void ClearPromptOptHistory();
void ClearPromptOptHistory(Gate<String> filter);


make prompts "forget" the checkbox while

void SerializePromptOptHistory(Stream& s);


serializes the settings.
Re: "Do not show again" variants of U++ message boxes [message #57137 is a reply to message #57129] Sun, 30 May 2021 07:38 Go to previous message
zsolt is currently offline  zsolt
Messages: 697
Registered: December 2005
Location: Budapest, Hungary
Contributor
Thanks a lot! It was needed by a lot of users.
Previous Topic: 2021.1 released
Next Topic: ide: Compare with.. got a LRU list of previously compared with files..
Goto Forum:
  


Current Time: Tue Apr 23 09:34:22 CEST 2024

Total time taken to generate the page: 0.01387 seconds