wxCollapsiblePane with wxCP_NO_TLW_RESIZE cuts part of label

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
S.K.
Earned a small fee
Earned a small fee
Posts: 11
Joined: Tue Sep 26, 2017 2:50 pm

wxCollapsiblePane with wxCP_NO_TLW_RESIZE cuts part of label

Post by S.K. »

Hello everyone,

in the collpane sampel, when adjusting this line

Code: Select all

m_collPane = new wxCollapsiblePane(this, -1, "This is a wxCollapsiblePane")
to

Code: Select all

m_collPane = new wxCollapsiblePane(this, -1, "This is a wxCollapsiblePane", wxDefaultPosition, wxDefaultSize, wxCP_NO_TLW_RESIZE);
the label isn't shown completely:
collPane.jpg
collPane.jpg (31.25 KiB) Viewed 10359 times
Has someone an idea how to get the label completely shown with the option wxCP_NO_TLW_RESIZE?
I tested it with win7, vc15 (vs2017), 32-bit, master branch and tag v3.1.2

Edit: you have to uncollapse it first, before the issue is visible. In the first created window the label is displayed correctly.
Post Reply