[wx-dev] Forcing wxScrolledWindow scroll bars always visible

Vadim Zeitlin vadim at wxwidgets.org
Sat Nov 3 15:14:25 PDT 2007


On Thu, 25 Oct 2007 21:04:17 +1000 Julian Scheid <julians37 at googlemail.com> wrote:

JS> OK, here is a second incarnation of this patch.
JS> 
JS> It works as described above by moving the scrollbar visibility 
JS> calculation into a separate helper.
JS> 
JS> wxWindowBase::DoUpdateScrollbarVisibility could also be declared virtual 
JS> instead of pure virtual; this would probably be not as clean but 
JS> wouldn't require updating all other platforms when this patch is attached.
JS> 
JS> Let me know what you think,

 Well, I couldn't commit this patch with pure virtual
DoUpdateScrollbarVisibility() because this would instantly break the build
on non-Mac platforms which is not acceptable. But making it non-pure
virtual didn't make much sense so I've just moved the entire code in wxMac
for now and wxWindow::AlwaysShowScrollbars() now does nothing.

 I've also made a couple of other minor changes, reformatted the code to
use wx indentation/line lengths but didn't change the patch in any
important way, at least not intentionally -- but as I don't have the test
code for this I didn't actually test so it's possible that I did
change/break something unintentionally with my blind changes. Please let me
know if this is the case.

 Thanks,
VZ





More information about the wx-dev mailing list