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

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 Go to previous message
cbpporter is currently offline  cbpporter
Messages: 1428
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...
 
Read Message
Read Message
Previous Topic: How to view that U++ generated from *.lay and *.sch files
Next Topic: DrawText and carriage return
Goto Forum:
  


Current Time: Sat Apr 25 16:50:20 GMT+2 2026

Total time taken to generate the page: 0.00545 seconds