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

Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » GridCtrl samples with all functions and methods
Re: GridCtrl samples with all functions and methods [message #26820 is a reply to message #26819] Mon, 31 May 2010 10:06 Go to previous messageGo to previous message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

cbpporter wrote on Mon, 31 May 2010 02:59

bernz wrote on Sun, 30 May 2010 19:06

How do set the header "theme"?

You can use normal Chameleon themeing methods, but the header style is shared between HeaderCtrl, ArrayCtrl and GridCtrl, so you need to create or edit a HeaderCtrl::Style.

HeaderCtrl::Style& s = HeaderCtrl::StyleDefault().Write();
// use s


The easiest way to do that is to use SetTheme method:
grid.GetDisplay()->SetTheme(1);

There are 7 themes available now (see GridCtrl.img). If you want to modify theme as cbporter suggested you have to call grid.Chameleon() first.
 
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem - GridCtrl::Get(int,int) with DropTree
Next Topic: Copy GridCtrl cell when read only
Goto Forum:
  


Current Time: Wed Jul 15 21:02:56 GMT+2 2026

Total time taken to generate the page: 0.00486 seconds