wxPropertyGrid help text not resizing correctly (Issue #25795)

44 views
Skip to first unread message

rcf57

unread,
Sep 13, 2025, 8:19:00 AMSep 13
to wx-...@googlegroups.com, Subscribed
rcf57 created an issue (wxWidgets/wxWidgets#25795)

Hello,

I noticed a problem in wxPropertyGrid (wxWidgets 3.3.1 on Windows 11, Visual C/C++) that can be reproduced with the propgrid example.

The problem occurs when selecting a property with a relatively long help text:

If the window is resized smaller, the help text is correctly wrapped and adapted to the new size. However, when the window is resized larger again, the help text does not re-expand to fit the increased width.

Thanks,
Claudio


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/25795@github.com>

VZ

unread,
Sep 13, 2025, 8:49:14 AMSep 13
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#25795)

I can indeed reproduce this with "ArrayDoubleProperty". I'm not sure how exactly is help text wrapped in wxPG and don't have time to look at this now, but it should probably be rather simple to fix by just rewrapping it when the size increases too.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/25795/3288311400@github.com>

tmodes-dev

unread,
Sep 15, 2025, 11:23:13 AMSep 15
to wx-...@googlegroups.com, Subscribed
tmodes-dev left a comment (wxWidgets/wxWidgets#25795)

wxPG is calling Wrap. (see src/propgrid/manager.cpp#L1487
The cause of this issue is that wxStaticText::Wrap does modify the label (see https://github.com/wxWidgets/wxWidgets/blob/0e8fcfe8e32eab0cf203f99c090fb38206606099/include/wx/stattext.h#L38C1-L41C26 )
So when calling with a small width there gets linebreaks added to the label and when calling Wrap with a higher width these linebreaks remain and the higher wrap width has no effect.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/25795/3292742615@github.com>

VZ

unread,
Sep 15, 2025, 4:45:55 PMSep 15
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#25795)

Thanks for the analysis.

FWIW this looks related to/could be fixed by #25753.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/25795/3293900798@github.com>

tmodes-dev

unread,
Oct 27, 2025, 3:53:22 PM (11 days ago) Oct 27
to wx-...@googlegroups.com, Subscribed
tmodes-dev left a comment (wxWidgets/wxWidgets#25795)

The merged branch fixes the wrapping issue. But it shows some bug in the new code.

  1. In the propgriddemo select ArrayDoubleProperty
  2. Resize the frame -> Wraping is ok
  3. Select Information (under More Example)
  4. Resize the frame -> The bold text is showing the correct "Information", but the extended text switches to the old text of ArrayDoubleProperty instead of the Information text "This property is read-only".


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/25795/3453054879@github.com>

VZ

unread,
Oct 31, 2025, 10:36:17 AM (7 days ago) Oct 31
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#25795)

The merged branch fixes the wrapping issue. But it shows some bug in the new code.

Thanks, I see this, looking...


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/25795/3473368132@github.com>

VZ

unread,
Oct 31, 2025, 11:12:22 AM (7 days ago) Oct 31
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#25795)

I've fixed the bug in Wrap() which you noticed in the PR linked above and then also stopped using Wrap() in wxPG code as it's not necessary any more. Please let me know if you still see any problems, otherwise I'll merge that PR soon.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/25795/3473522486@github.com>

tmodes-dev

unread,
Nov 1, 2025, 4:27:14 AM (6 days ago) Nov 1
to wx-...@googlegroups.com, Subscribed
tmodes-dev left a comment (wxWidgets/wxWidgets#25795)

I tested the PR and it looks good now. Thanks.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/25795/3475950725@github.com>

VZ

unread,
Nov 1, 2025, 12:42:20 PM (6 days ago) Nov 1
to wx-...@googlegroups.com, Subscribed

Closed #25795 as completed via 66c5482.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issue/25795/issue_event/20653095622@github.com>

Reply all
Reply to author
Forward
0 new messages