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

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: Tue Apr 28 09:39:19 GMT+2 2026

Total time taken to generate the page: 0.00462 seconds