Anachronox Posted January 17, 2013 Share Posted January 17, 2013 Hi. How can I get pixel width of H/V scrollbar ? In Win32 environment we can use GetSystemMetrics(SM_CXVSCROLL), so how to get these values under Ext JS ? Thx. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted January 17, 2013 Administrators Share Posted January 17, 2013 There is no such functionality under web. Quote Link to comment Share on other sites More sharing options...
Anachronox Posted January 17, 2013 Author Share Posted January 17, 2013 It's required for grid column auto-size function. So the only way is to subtract constant width ? i.e. GridClientWidth := Grid.Width - 20, instead of GridClientWidth := Grid.Width - GetSystemMetrics(SM_CXVSCROLL) ? Quote Link to comment Share on other sites More sharing options...
Anachronox Posted January 24, 2013 Author Share Posted January 24, 2013 There is no such functionality under web. What about gridView.scrollOffset ? Quote Link to comment Share on other sites More sharing options...
eduardoA Posted March 10, 2016 Share Posted March 10, 2016 Hi Friends, I too need to change my controls width a lot, and a automatic solution would be very nice. We understand that sometimes we want to make better looking screens, so the controls must respond better to user commands and to run-time changes we made in the code. I found a way that is working very well to me. After you made any change that requires other controls to rearrange themselves, just put the code above: Self.With := Self.With +1; Self.With := Self.With -1; Refresh; After that you can check the width and it will be shown ok. Example of use: we put 2 panels and a splitter between then. They move fine, but if we have other controls inside those panels, and those controls are aligned with right, left or client, they won't resize unless you use the code I just mention. Farshad Mohajeri did a great job with his framework, but he can't understand that simple issue is real. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.