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

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: 1367
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: Tue Apr 28 03:15:13 GMT+2 2026

Total time taken to generate the page: 0.00817 seconds