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 » ArrayCtrl, HeaderCtrl & GridCtrl » ArrayCtrl cell color
Re: ArrayCtrl cell color [message #3824 is a reply to message #3820] Wed, 28 June 2006 16:26 Go to previous messageGo to previous message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
luzr wrote on Wed, 28 June 2006 14:13

BTW, ignoring some subtle MT issues for a moment,

Single<Foo>()

is equivalent to

Foo& SingleFoo()
{
static Foo foo;
return foo;
}

Two things to consider:

- it is one shared instance (object) for all uses

- placing static inside function ensures lazy initialization, in other words, Foo constructor gets called during the first call to SingleFoo.

Mirek

Thank you for all your explanations.
I do not doubt it is a great feature, but I need some time to digest it.
BTW, can it be used to set the font of, say, two columns of the ArrayCtrl?

Luigi
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: how to set/get data in a composite embedded ctrl in an arrayctrl
Next Topic: Combine Cells?
Goto Forum:
  


Current Time: Tue May 14 08:31:12 CEST 2024

Total time taken to generate the page: 0.03128 seconds