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
Super wx Problem Solver
Super wx Problem Solver
Posts: 406
Joined: Thu Jun 01, 2006 4:36 pm
Location: Right here!

Clearing prop grid help string

Post by Widgets » Sun May 16, 2021 6:31 pm

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 64-bit & Mint 10.2
MSVC Express 2017, 2019
wxWidgets 3.1.4
Fight SPAM - report it with wxSR

User avatar
doublemax
Moderator
Moderator
Posts: 16022
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Clearing prop grid help string

Post by doublemax » Sun May 16, 2021 10:55 pm

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
Super wx Problem Solver
Super wx Problem Solver
Posts: 406
Joined: Thu Jun 01, 2006 4:36 pm
Location: Right here!

Re: Clearing prop grid help string

Post by Widgets » Mon May 17, 2021 4:32 pm

I am very pleased to say, that that did the trick :D
Thank you
Environment: Win 10 64-bit & Mint 10.2
MSVC Express 2017, 2019
wxWidgets 3.1.4
Fight SPAM - report it with wxSR

Post Reply