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 » 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: 1401
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: Sun Apr 28 02:33:26 CEST 2024

Total time taken to generate the page: 1.07708 seconds