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 » U++ Library support » U++ Library : Other (not classified elsewhere) » "DoEvents" or "wxSafeYield" equivalent in Upp++
Re: "DoEvents" or "wxSafeYield" equivalent in Upp++ [message #17860 is a reply to message #17845] Sun, 31 August 2008 19:53 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3443
Registered: August 2008
Senior Veteran
Hello luzr

I have tried this, but it blocks all until the loop ends.
for (int i = 0; i < 100; ++i) {
	Sleep(500);
	Vector<Ctrl *> topCtrls = Ctrl::GetTopCtrls();
	Vector< Ptr<Ctrl> > ctrls = DisableCtrls(topCtrls);
	Ctrl::ProcessEvents();
	EnableCtrls(ctrls);
}


But this simply works perfect. (taking care of avoiding the user to run this code while it is still running).
for (int i = 0; i < 100; ++i) {
	Sleep(500);
	Ctrl::ProcessEvents();
}


Thank you!
Koldo


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: selected text in other application
Next Topic: U++ suggestions
Goto Forum:
  


Current Time: Mon Aug 25 04:37:55 CEST 2025

Total time taken to generate the page: 0.12131 seconds