Have wxPropertyGrid inherit from wxControl and wxScrollHelper instead of wxScrolledWindow. This is the approach other scrolled controls use.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2010-09-24 14:47:20 +00:00
parent ff94c563ed
commit 2e2e62def1
4 changed files with 95 additions and 74 deletions

View File

@@ -439,7 +439,9 @@ typedef int (*wxPGSortCallback)(wxPropertyGrid* propGrid,
@category{propgrid}
@appearance{propertygrid.png}
*/
class wxPropertyGrid : public wxScrolledWindow, public wxPropertyGridInterface
class wxPropertyGrid : public wxControl,
public wxScrollHelper,
public wxPropertyGridInterface
{
public:
/**
@@ -450,7 +452,7 @@ public:
/**
Constructor.
The styles to be used are styles valid for the wxWindow and wxScrolledWindow.
The styles to be used are styles valid for the wxWindow.
@see @ref propgrid_window_styles.
*/
@@ -810,7 +812,7 @@ public:
@param pt
Coordinates in the virtual grid space. You may need to use
wxScrolledWindow::CalcScrolledPosition() for translating
wxScrolled<T>::CalcScrolledPosition() for translating
wxPropertyGrid client coordinates into something this member
function can use.
*/