Implement wxPropertyGrid as wxScrolled

Scrolling operations and related calculations are simpler when wxPG is implemented as wxScrolled instead of wxScrollHelper.
This commit is contained in:
Artur Wieczorek
2019-05-19 22:35:33 +02:00
parent f3e1f72f6d
commit 549acf6e80
4 changed files with 64 additions and 112 deletions

View File

@@ -534,8 +534,7 @@ typedef int (*wxPGSortCallback)(wxPropertyGrid* propGrid,
@category{propgrid}
@appearance{propertygrid}
*/
class wxPropertyGrid : public wxControl,
public wxScrollHelper,
class wxPropertyGrid : public wxScrolled<wxControl>,
public wxPropertyGridInterface
{
public: