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 next 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

Re: Problem with Refreshing GUI... [message #36363 is a reply to message #36361] Tue, 22 May 2012 16:06 Go to previous messageGo to next message
dolik.rce is currently offline  dolik.rce
Messages: 1796
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Quick tip: Have a look at Ctrl::GuiSleep() and also Ctrl::Sync() Wink Both are in the CtrlLib documentation

Best regards,
Honza
Re: Problem with Refreshing GUI... [message #36375 is a reply to message #36363] Wed, 23 May 2012 12:36 Go to previous message
Wolfgang is currently offline  Wolfgang
Messages: 146
Registered: November 2011
Location: Germany
Experienced Member
perfect, thank you.... if you know where and what to look it's simple... Very Happy
Previous Topic: What's wrong in this regexp ? [SOLVED,FIXED]
Next Topic: GLUT
Goto Forum:
  


Current Time: Mon Apr 27 17:17:04 GMT+2 2026

Total time taken to generate the page: 0.00994 seconds