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

@@ -654,8 +654,7 @@ enum wxPG_INTERNAL_FLAGS
// Use Freeze() and Thaw() respectively to disable and enable drawing. This
// will also delay sorting etc. miscellaneous calculations to the last
// possible moment.
class WXDLLIMPEXP_PROPGRID wxPropertyGrid : public wxControl,
public wxScrollHelper,
class WXDLLIMPEXP_PROPGRID wxPropertyGrid : public wxScrolled<wxControl>,
public wxPropertyGridInterface
{
friend class wxPropertyGridEvent;