Home » Community » Newbie corner » How does TheIDE instant update Settings dialog work?
How does TheIDE instant update Settings dialog work? [message #46052] |
Wed, 24 February 2016 09:57  |
cbpporter
Messages: 1427 Registered: September 2007
|
Ultimate Contributor |
|
|
So I noticed that when using the Setting dialog in TheIDE, changes instantly reflect in the current editor, without having to click Apply or anything.
So I thought that is a great idea and tried to implement that to my dialogs.
I looked over the code in TheIDE and the dialog is opened by Ide::SetupFormat(). Bu this does nothing special. It has a loop like this:
for(;;) {
int c = dlg.Run();
UpdateFormat();
if(c == IDEXIT)
break;
}
The thing I'm not figuring out how this updates the editor asynchronously. I tried similar code with my dialog and the updates happen only when closing the dialog...
|
|
|
Goto Forum:
Current Time: Sat May 03 18:26:46 CEST 2025
Total time taken to generate the page: 0.03179 seconds
|