New methods added

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2005-04-09 20:07:46 +00:00
parent bbdcf8c200
commit 88609ec9a8
2 changed files with 15 additions and 1 deletions

View File

@@ -388,7 +388,10 @@ public:
// returns true if we have wxCHB_TOP or wxCHB_BOTTOM style
bool IsVertical() const { return HasFlag(wxCHB_BOTTOM | wxCHB_TOP); }
bool IsVertical() const;
// returns the choice control
wxChoice* GetChoiceCtrl() const;
virtual bool DeleteAllPages();
};

View File

@@ -197,6 +197,17 @@ public:
// is this line currently visible?
bool IsVisible(size_t line) const;
// this is the same as GetVisibleBegin(), exists to match
// GetLastVisibleLine() and for backwards compatibility only
size_t GetFirstVisibleLine() const;
// get the last currently visible line
//
// this function is unsafe as it returns (size_t)-1 (i.e. a huge positive
// number) if the control is empty, use GetVisibleEnd() instead, this one
// is kept for backwards compatibility
size_t GetLastVisibleLine() const;
};
//---------------------------------------------------------------------------