virtual void Lower();
virtual bool Show( bool show = true );
- virtual void DoEnable( bool enable );
- virtual void OnEnabled( bool enabled );
virtual void SetFocus();
virtual void Freeze();
virtual void Thaw();
virtual bool IsFrozen() const;
-
+
virtual void Update() ;
virtual void ClearBackground();
const wxFont *theFont = NULL )
const;
protected:
+ virtual void DoEnable( bool enable );
+ virtual void OnEnabled( bool enabled );
virtual bool DoPopupMenu( wxMenu *menu, int x, int y );
+
public:
virtual void SetScrollbar( int orient, int pos, int thumbVisible,
int range, bool refresh = true );
virtual int GetScrollRange( int orient ) const;
virtual void ScrollWindow( int dx, int dy,
const wxRect* rect = (wxRect *) NULL );
+ virtual void AlwaysShowScrollbars(bool horz = true, bool vert = true);
+ virtual bool IsScrollbarAlwaysShown(int orient) const
+ {
+ return orient == wxHORIZONTAL ? m_hScrollBarAlwaysShown
+ : m_vScrollBarAlwaysShown;
+ }
+
virtual bool Reparent( wxWindowBase *newParent );
#if wxUSE_DRAG_AND_DROP
virtual bool SetTransparent(wxByte alpha);
virtual bool CanSetTransparent();
virtual wxByte GetTransparent() const ;
-
+
// event handlers
// --------------
void OnSetFocus( wxFocusEvent& event );
void MacOnScroll( wxScrollEvent&event );
- bool AcceptsFocus() const;
+ virtual bool AcceptsFocus() const;
virtual bool IsDoubleBuffered() const { return true; }
// because it is called from its destructor via DeleteChildren
virtual void RemoveChild( wxWindowBase *child );
virtual void MacPaintBorders( int left , int top ) ;
+ void MacPaintGrowBox();
// invalidates the borders and focus area around the control;
// must not be virtual as it will be called during destruction
wxScrollBar* m_hScrollBar ;
wxScrollBar* m_vScrollBar ;
+ bool m_hScrollBarAlwaysShown;
+ bool m_vScrollBarAlwaysShown;
wxString m_label ;
// set to true if we do a sharp clip at the content area of this window
virtual bool MacIsChildOfClientArea( const wxWindow* child ) const ;
+ bool MacHasScrollBarCorner() const;
void MacCreateScrollBars( long style ) ;
void MacRepositionScrollBars() ;
void MacUpdateControlFont() ;
void MacPropagateVisibilityChanged() ;
+ void MacPropagateEnabledStateChanged() ;
void MacPropagateHiliteChanged() ;
// implement the base class pure virtuals
// common part of all ctors
void Init();
+ // show/hide scrollbars as needed, common part of SetScrollbar() and
+ // AlwaysShowScrollbars()
+ void DoUpdateScrollbarVisibility();
+
+
WXEVENTHANDLERREF m_macControlEventHandler ;
DECLARE_NO_COPY_CLASS(wxWindowMac)