Page 1 of 1

wxWindow scrollbar questions

Posted: Mon May 24, 2010 1:20 am
by Disch
Hey everyone. I have a question about scroll bars. Specifically with wxWindow::SetScrollbar.

How can I find out the size of the scrollbar? For example the width of the vertical scrollbar will cut into the client area. How can I find out how wide it is?

The only thing I can think of would be to call GetClientSize() with scrollbars visible and invisible and find the difference. But ew. There's got to be a better way, right?

Thanks

Posted: Mon May 24, 2010 1:26 am
by catalin
wxSystemSettings::GetMetric(wxSYS_VSCROLL_X [, yourWindow])

Posted: Mon May 24, 2010 3:10 am
by Disch
Sweet.

Thank you.