wxgrid avoid text overlap next cell Topic is solved

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
maxbld
Earned some good credits
Earned some good credits
Posts: 111
Joined: Wed Jan 30, 2013 10:49 pm

wxgrid avoid text overlap next cell

Post by maxbld » Thu Mar 10, 2016 4:42 pm

Dear all,

I'm using a wxGrid. At runtime, when inserting texts in a cell, if it's larger than the column, it will overlap the next cell on the right (if it's empty). I find this behavior annoying, I'd prefer the text was simply truncated / scrolled on the left. I've been searching in the documentation and on google for a way to configure wxGrid accordingly, but without luck.

Does anybody know a way out?

Thanks a lot, BR,
Max.

User avatar
doublemax
Moderator
Moderator
Posts: 15065
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxgrid avoid text overlap next cell

Post by doublemax » Thu Mar 10, 2016 4:55 pm

Use the source, Luke!

maxbld
Earned some good credits
Earned some good credits
Posts: 111
Joined: Wed Jan 30, 2013 10:49 pm

Re: wxgrid avoid text overlap next cell

Post by maxbld » Thu Mar 10, 2016 5:10 pm

Ahhh!! So I should have searched for overflow instead than overlap... Uhm, wouldn't wxGrid::SetDefaultCellOverlap(bool) be a better name?? You know "overflow" sounds like some number that was too big... :wink:

Anyway, Cool & fast, as always.

Thanks a lot doublemax!

Post Reply