spacing and font size for cells in wxGrid
spacing and font size for cells in wxGrid
I have problem building wxSheet on my WinXP + wx 2.8.7, so I had to use wxGrid for my case. What do you think the easiest way to change font size of the cells and set spacing for them?
for the spacing I use setColSize, since the fitting options didnt work for me. And for the font, I think the best one(and maybe the only one) is SetCellFont, the advantage of these functions is that you can set the size or font of every column and cell, it may be more lines of code, but you have a nice way to customize every column and cell.
yeah, changing font is ok. and for the spacing, I added custom renderer and made the rect smaller, so the spacing appeared.
now I'm trying to find a way to make text editor in cell go to the next line by Enter, and not by Ctrl+Enter. And I want to find a combobox which allows to add it's values on the fly, like textctrl+combobox in once device.
any ideas how to solve the matter?
now I'm trying to find a way to make text editor in cell go to the next line by Enter, and not by Ctrl+Enter. And I want to find a combobox which allows to add it's values on the fly, like textctrl+combobox in once device.
any ideas how to solve the matter?
the borders AFAIK cant be changed, I just recently tried to asociate a renderer to a border but it seems it cant be done, I tried reading the docs and asking and it seems like it cant be done, and for the other question about the shift-Enter, I think you have to extend wxCellEditor, but I have never tried that, maybe in the sample app there is some useful info for that.