Truncate cell value on column resize wxGrid

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
mazeem3
Earned a small fee
Earned a small fee
Posts: 17
Joined: Fri Jul 14, 2017 6:12 pm

Truncate cell value on column resize wxGrid

Post by mazeem3 »

I have a wxGrid, I would like my grid cell values to truncate when a user drags and makes cell size smaller.

Normal Cell
|My Cell|
Minimized Cell
|My C..|
User avatar
eranon
Can't get richer than this
Can't get richer than this
Posts: 867
Joined: Sun May 13, 2012 11:42 pm
Location: France
Contact:

Re: Truncate cell value on column resize wxGrid

Post by eranon »

wxGrid::SetCellOverflow and wxGrid::SetDefaultCellOverflow
[Ind. dev. - wxWidgets 3.0/3.1 under "Win 7 64-bit, TDM64-GCC" + "OS X 10.9, LLVM Clang"]
Post Reply