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++ Widgets - General questions or Mixed problems » static Ctrl causes running failure
Re: static Ctrl causes running failure [message #24152 is a reply to message #24145] Tue, 29 December 2009 14:19 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
It is known feature:

http://www.ultimatepp.org/srcdoc$Core$Caveats$en-us.html

Implementation difficulities in CtrlCore (widget gets created before GUI is initialised).

There is trivial workaround for majority of cases:

MyGlobalWidgetType& MyGlobalWidget() {
static MyGlobalWidgetType x;
return x;
}

(then of course, call this after gui is running, but that is OK for most uses).

Mirek
 
Read Message icon9.gif
Read Message
Read Message
Read Message
Read Message
Previous Topic: Show() in .usc
Next Topic: BUG? DropList shows first of entries with same key
Goto Forum:
  


Current Time: Sun Apr 28 15:57:56 CEST 2024

Total time taken to generate the page: 1.47175 seconds