Simply call ShowScrollbars(wxSHOW_SB_ALWAYS) if this style is specified.
Closes #13616.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72621
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- Add wxStyledTextCtrl::AnnotationClearLine() (sentieshar).
- Add support for background-color style to span element in wxHTML (gevorg).
- Add "inherit" to <font> XRC tag (Steffen Olszewski, Gero Meßsysteme GmbH).
- Add wxStyledTextCtrl::AnnotationClearLine() (sentieshar).
- Add support for background-color style to span element in wxHTML (gevorg).
- Add "inherit" to <font> XRC tag (Steffen Olszewski, Gero Meßsysteme GmbH).
+- Add support for wxALWAYS_SHOW_SB style to wxScrolled<> (Catalin Raceanu).
if ( !(style & (wxHSCROLL | wxVSCROLL)) )
style |= wxHSCROLL | wxVSCROLL;
if ( !(style & (wxHSCROLL | wxVSCROLL)) )
style |= wxHSCROLL | wxVSCROLL;
+ if ( style & wxALWAYS_SHOW_SB )
+ ShowScrollbars(wxSHOW_SB_ALWAYS, wxSHOW_SB_ALWAYS);
+
return T::Create(parent, winid, pos, size, style, name);
}
return T::Create(parent, winid, pos, size, style, name);
}
scrollable only in vertical direction (by default, i.e. if neither
this style nor ::wxHSCROLL is specified, it scrolls in both
directions).
scrollable only in vertical direction (by default, i.e. if neither
this style nor ::wxHSCROLL is specified, it scrolls in both
directions).
+ @style{wxALWAYS_SHOW_SB}
+ Since wxWidgets 2.9.5, specifying this style makes the window always
+ show its scrollbars, even if they are not used. See ShowScrollbars().
@style{wxRETAINED}
Uses a backing pixmap to speed refreshes. Motif only.
@endStyleTable
@style{wxRETAINED}
Uses a backing pixmap to speed refreshes. Motif only.
@endStyleTable