//---------------------------------------------------------------------------
-%{
- DECLARE_DEF_STRING(ScrollBarNameStr);
-%}
+MAKE_CONST_WXSTRING(ScrollBarNameStr);
//---------------------------------------------------------------------------
%newgroup
+MustHaveApp(wxScrollBar);
+
class wxScrollBar : public wxControl {
public:
- %addtofunc wxScrollBar "self._setOORInfo(self)"
- %addtofunc wxScrollBar() ""
+ %pythonAppend wxScrollBar "self._setOORInfo(self)"
+ %pythonAppend wxScrollBar() ""
wxScrollBar(wxWindow* parent, wxWindowID id = -1,
const wxPoint& pos = wxDefaultPosition,
long style = wxSB_HORIZONTAL,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxPyScrollBarNameStr);
- %name(PreScrollBar)wxScrollBar();
+ %RenameCtor(PreScrollBar, wxScrollBar());
bool Create(wxWindow* parent, wxWindowID id = -1,
const wxPoint& pos = wxDefaultPosition,
virtual void SetThumbPosition(int viewStart);
virtual void SetScrollbar(int position, int thumbSize,
int range, int pageSize,
- bool refresh = True);
+ bool refresh = true);
+
+ static wxVisualAttributes
+ GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
};
//---------------------------------------------------------------------------