Jump to content

_GUIScrollBars_GetScrollBarRect - inconsistent numbers if no scrollbar shown


VAN0
 Share

Recommended Posts

Hello.

I'm trying determine the size (width/height) of scrollbars in a control (listview)

Using _GUIScrollBars_GetScrollBarRect works great when scrollbars are shown, but if they are not shown, then the numbers are all over the place, and I can't figure out what they depend on.

For example on one computer it could return [-1, 191700576, -1888, 0] on another computer with font scale in the system set to 125% it's [-1792, 670, 0, 1]

On the computer with 125% font scale when only vertical scrollbar shown, the numbers for horizontal scrollbar return the same as for vertical...wtf!

Maybe there is a better way get dimensions of scrollbars?

Thank you

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...