1. made ScrollLines/Pages return bool indicating if we scrolled till the
end or not 2. implemented them for wxGTK text ctrl git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11215 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -148,6 +148,10 @@ public:
|
||||
virtual void Freeze();
|
||||
virtual void Thaw();
|
||||
|
||||
// textctrl specific scrolling
|
||||
virtual bool ScrollLines(int lines);
|
||||
virtual bool ScrollPages(int pages);
|
||||
|
||||
// wxGTK-specific: called recursively by Enable,
|
||||
// to give widgets an oppprtunity to correct their colours after they
|
||||
// have been changed by Enable
|
||||
@@ -159,6 +163,13 @@ protected:
|
||||
// common part of all ctors
|
||||
void Init();
|
||||
|
||||
// get the vertical adjustment, if any, NULL otherwise
|
||||
GtkAdjustment *GetVAdj() const;
|
||||
|
||||
// scroll the control by the given number of pixels, return true if the
|
||||
// scroll position changed
|
||||
bool DoScroll(GtkAdjustment *adj, int diff);
|
||||
|
||||
private:
|
||||
// change the font for everything in this control
|
||||
void ChangeFontGlobally();
|
||||
|
Reference in New Issue
Block a user