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 » Problem with Refreshing GUI...
Problem with Refreshing GUI... [message #36361] Tue, 22 May 2012 15:03 Go to previous message
Wolfgang is currently offline  Wolfgang
Messages: 146
Registered: November 2011
Location: Germany
Experienced Member
Hi, a simple testcase:

void hcan::justAclick()
{
	tStatic.SetText("just a few seconds.. please be patient!");
	hcan::LayoutcanGridDiscover.Add(tStatic.HSizePos(0,0).VSizePosZ(0.0));
	hcan::LayoutcanGridDiscover.Refresh();
	sleep(2);
	tStatic.Remove();
}


If I call this by a THISBACK(justAclick) it didn't show the text... because it freezes for 2 seconds and then removes it immediatly - but it should repaint the interface before the sleep takes effekt. Whats my fault?

Tried upp::Refresh() and Reskin() but nothing works..

[Updated on: Tue, 22 May 2012 15:04]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: What's wrong in this regexp ? [SOLVED,FIXED]
Next Topic: GLUT
Goto Forum:
  


Current Time: Sun May 12 22:29:28 CEST 2024

Total time taken to generate the page: 0.02685 seconds