Is it possible to change the height of the caption area?
If so, can this be done without affecting the height of either the Column Headers or Rows?
CheersJason
Hm, I see. It would be hard to match the color exactly because the grid caption draws Themed by default. The ToolbarsManager only uses themes for drawing buttons in ComboBoxes and such.
You could turn off themes in the grid (UseOsThemes = false) and then you will have more control over the colors.
I am creating that toolbar for the caption area of the grid as I mentioned in another posting. I was going to use the toolbar manager to do this, or at least a panel containing the controls I needed, but unfotunately I cannot get either the toolbar or Panel's Bg to be transparent and the color is just slightly different to the native color of the caption area which looks strange at runtime.
I then started playing around with using buttons placed directly in the caption area with a transparent Bg and no borders, however as the buttons need to be fractionally smaller in height than the caption area itself so as not to cut off the borders around the grid, the button's padding cuts off the lower parts of the button text (like the bottom of a 'p'), even when reducing the text to the smallest size possible, and of course, the padding cannot be smaller than 0. The height of the caption area is just slightly too small.
I will try adjusting the font size for the caption itself and see if thet helps. Otherwise I will just hide the built in caption area and build my own to place over the top.
Thanks for getting back to me.
Have a good weekend.
Hi Jason,
The caption area automatically adjust it's height based on the Font. There's no way to explicitly set it to a specific height.
Out of curiosity, why would you want to? You might be able to make it bigger by setting the text to a mulitline string. But I'm not sure if it supports multiline text.