Add GetTopLevelParent convenience function
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44618 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -973,8 +973,16 @@ do not change.", "");
|
||||
wxWindow *, GetGrandParent() const,
|
||||
"Returns the parent of the parent of this window, or None if there
|
||||
isn't one.", "");
|
||||
|
||||
|
||||
|
||||
%extend {
|
||||
DocDeclStr(wxWindow *, GetTopLevelParent(),
|
||||
"Returns the first frame or dialog in this window's parental hierarchy.", "")
|
||||
{
|
||||
return wxGetTopLevelParent(self);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
DocDeclStr(
|
||||
virtual bool , IsTopLevel() const,
|
||||
@@ -2114,6 +2122,7 @@ opaque.", "");
|
||||
%property(Font, GetFont, SetFont, doc="See `GetFont` and `SetFont`");
|
||||
%property(ForegroundColour, GetForegroundColour, SetForegroundColour, doc="See `GetForegroundColour` and `SetForegroundColour`");
|
||||
%property(GrandParent, GetGrandParent, doc="See `GetGrandParent`");
|
||||
%property(TopLevelParent, GetTopLevelParent, doc="See `GetTopLevelParent`");
|
||||
%property(Handle, GetHandle, doc="See `GetHandle`");
|
||||
%property(HelpText, GetHelpText, SetHelpText, doc="See `GetHelpText` and `SetHelpText`");
|
||||
%property(Id, GetId, SetId, doc="See `GetId` and `SetId`");
|
||||
|
Reference in New Issue
Block a user