Is there any way to get wxPropertyGrid to allow horizontal scrolling in case of long property values?
Putting the wxPropertyGrid in a sizer in a wxScrolledWindow doesn't help.
Would be nice to have, but I can take "no" for an answer (Microsoft also don't do this in VS2017).
wxPropertyGrid horizontal scrolling?
wxPropertyGrid horizontal scrolling?
wxWidgets 3.1.0
Boost 1.65
VS 2017
Win 7
Boost 1.65
VS 2017
Win 7
Re: wxPropertyGrid horizontal scrolling?
P.S. Vertical scrolling works fine.
wxWidgets 3.1.0
Boost 1.65
VS 2017
Win 7
Boost 1.65
VS 2017
Win 7
Re: wxPropertyGrid horizontal scrolling?
With calling SetVirtualWidth(...) i was able to make a horizontal scrollbar appear, but the scrolled part is not redrawn. I don't know if this just was never tested, or if there is still something missing.
So i do believe it's possible somehow. It may be worth asking on the wx-users mailing list, maybe the original author of wxPropertyGrid, Jaakko Salli, is still around sometimes.
So i do believe it's possible somehow. It may be worth asking on the wx-users mailing list, maybe the original author of wxPropertyGrid, Jaakko Salli, is still around sometimes.
Use the source, Luke!
Re: wxPropertyGrid horizontal scrolling?
Thanks doublemax.
On further reflection I can imagine that this would be difficult to implement efficiently and intuitively - for either the whole grid (which could be large) or at least the displayed portion, the maximum (text) width of the properties would have to be found. In the latter case, the scaling of the scrollbar would vary depending on the longest displayed property - I'm not sure whether this might disturb the user, and it would have to be done upon every resize or scroll.
Maybe Jaakko Salli decided for good reasons not to implement this and I should let it be.
On further reflection I can imagine that this would be difficult to implement efficiently and intuitively - for either the whole grid (which could be large) or at least the displayed portion, the maximum (text) width of the properties would have to be found. In the latter case, the scaling of the scrollbar would vary depending on the longest displayed property - I'm not sure whether this might disturb the user, and it would have to be done upon every resize or scroll.
Maybe Jaakko Salli decided for good reasons not to implement this and I should let it be.
wxWidgets 3.1.0
Boost 1.65
VS 2017
Win 7
Boost 1.65
VS 2017
Win 7
Re: wxPropertyGrid horizontal scrolling?
Hi,
Maybe all you need is to put the wxPropertyGrid inside the wxScrolled<>?
I know it just a workaround, but it is better than nothing.
Thank you.
Maybe all you need is to put the wxPropertyGrid inside the wxScrolled<>?
I know it just a workaround, but it is better than nothing.
Thank you.
Re: wxPropertyGrid horizontal scrolling?
Hi ONEEYEMAN,
not sure what you mean.
As I wrote above, putting the wxPropertyGrid in a sizer in a wxScrolledWindow doesn't help.
not sure what you mean.
As I wrote above, putting the wxPropertyGrid in a sizer in a wxScrolledWindow doesn't help.
wxWidgets 3.1.0
Boost 1.65
VS 2017
Win 7
Boost 1.65
VS 2017
Win 7