Ellipsize a wxGrid column

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

Ellipsize a wxGrid column

Post by mazeem3 »

Is there any way i can combine the EnableEllipsize() in wxDataViewRenderer with wxGrid on wxGridCellAutoWrapStringRenderer?

I want to create a ellipsis effect when my grid columns are resized
User avatar
doublemax
Moderator
Moderator
Posts: 19159
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Ellipsize a wxGrid column

Post by doublemax »

Like i already wrote in the other thread, you'll need a custom cell renderer for it. For the ellipsizing itself (in the renderer code), you can use wxControl::Ellipsize
http://docs.wxwidgets.org/trunk/classwx ... 9f84ef4ed1
Use the source, Luke!
Post Reply