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 » 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: 1366
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: Sun May 05 23:45:46 CEST 2024

Total time taken to generate the page: 0.02440 seconds