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 » How to set fontsize in GridCtrl
How to set fontsize in GridCtrl [message #20787] Tue, 07 April 2009 13:56 Go to next message
michael is currently offline  michael
Messages: 153
Registered: May 2007
Location: Germany
Experienced Member
Is there a way to set the fontsize in a GridCtrl?
Re: How to set fontsize in GridCtrl [message #20791 is a reply to message #20787] Tue, 07 April 2009 21:45 Go to previous message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

michael wrote on Tue, 07 April 2009 07:56

Is there a way to set the fontsize in a GridCtrl?

Not for the whole grid. But you can change it for particular row or cell:
grid.GetRow(0).SetFont(Arial(5));
grid(0, 1) = AttrText("text").Font(Arial(3));

or you can create your own display based on GridDisplay and assign it to the grid.
PS: I'll add it on to do list.
Previous Topic: How to change color background of a cell?
Next Topic: Image In Cell In ArrayCtrl ? !!
Goto Forum:
  


Current Time: Mon Apr 29 09:22:32 CEST 2024

Total time taken to generate the page: 0.02802 seconds