wxWindow scrollbar questions Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
User avatar
Disch
Experienced Solver
Experienced Solver
Posts: 99
Joined: Wed Oct 17, 2007 2:01 am

wxWindow scrollbar questions

Post 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
catalin
Moderator
Moderator
Posts: 1618
Joined: Wed Nov 12, 2008 7:23 am
Location: Romania

Post by catalin »

wxSystemSettings::GetMetric(wxSYS_VSCROLL_X [, yourWindow])
User avatar
Disch
Experienced Solver
Experienced Solver
Posts: 99
Joined: Wed Oct 17, 2007 2:01 am

Post by Disch »

Sweet.

Thank you.
Post Reply