Clearing prop grid help string 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
Widgets
Ultimate wxWidgets Guru
Ultimate wxWidgets Guru
Posts: 534
Joined: Thu Jun 01, 2006 4:36 pm
Location: Right here!

Clearing prop grid help string

Post by Widgets »

Win 10, wxWidgets 3.1.4, MSVC 2019 Community edition.
In one of my apps, I use a wxPropertyGrid and all works as expected, except when I reload the data, any help string displayed in the manager's description box is not cleared, but remains as set for the previous data.
At the start of an update I call the grid's Clear() function; this clears the grid data, but not the help string
If I display the help information in the status bar, it does get cleared when I reload new data.
Environment: Win 10/11 64-bit & Mint 21.1
MSVC Express 2019/2022
wxWidgets 3.2.2
User avatar
doublemax
Moderator
Moderator
Posts: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Clearing prop grid help string

Post by doublemax »

I've never used wxPropGrid, but looking through the methods, how about wxPropertyGridManager::SetDescription()?
https://docs.wxwidgets.org/trunk/classw ... f90e5b673c
Use the source, Luke!
Widgets
Ultimate wxWidgets Guru
Ultimate wxWidgets Guru
Posts: 534
Joined: Thu Jun 01, 2006 4:36 pm
Location: Right here!

Re: Clearing prop grid help string

Post by Widgets »

I am very pleased to say, that that did the trick :D
Thank you
Environment: Win 10/11 64-bit & Mint 21.1
MSVC Express 2019/2022
wxWidgets 3.2.2
Post Reply