ICONICO

Discussion Thread

UniToolbox

Message Thread

Developer ComponentFor WindowsUniToolbox

UniToolbox iconThe leading control suite for Unicode development in Visual Basic.

Posted in the UniToolbox Forum.




FAQ: UniToolbox FlexGrid Control Scrollbars

How can I determine whether the scroll bars are visible at run time in a UniFlexGrid control?

To detect whether the scroll bars were visible you can use calls to FindWindowEx to get the handle of a scrollbar in your control. Then using GetWindowLong to check whether you've found the horizontal or vertical one and whether it's visible or not.

The UniFlexGrid always displays a horizontal scrollbar if there is less than a scrollbar's width between the end of the last column and the edge of the control. You can manually calculate the width of all the columns in the grid, then determine whether the vertical scrollbar is visible and if so add it to the width so far, then see if that is greater than the width of the grid - then set the ScrollBars property to flexScrollBarBoth or flexScrollBarVertical to turn the horizontal one on or off.
by Nico Westerdale on May 1 2009 12:07pm Reply

FAQ: UniToolbox FlexGrid Control Scrollbars

How does this work with the UniGrid control as there is no ScrollBars property ?
by Patricia E. on Jun 23 2009 10:32am Reply

FAQ: UniToolbox FlexGrid Control Scrollbars

This refers to UniFlexGrid, and not to UniGrid
by Nico Westerdale on Jun 23 2009 1:12pm Reply

FAQ: UniToolbox FlexGrid Control Scrollbars

Yes I know.
Thats why I asked how it works with the UniGrid control as I'd like to get rid of the scrollbars ?
by Patricia E. on Jun 23 2009 2:05pm Reply

FAQ: UniToolbox FlexGrid Control Scrollbars

I'm glad we're on the same page here. This is one of the reasons we created the FlexGrid control as it allows more control over the properties such as scrolling which is not available on the basic control.
by Nico Westerdale on Jun 23 2009 6:35pm Reply

Our Software Stores

IconicoAccurate Design and Development Software

BitsDuJourDiscount Deal Coupons for Windows and Mac Software Apps

Our Software Services

IcoBlogOur Official Blog

© copyright 2004-2021 Iconico, Inc. Code & Design. All Rights Reserved. Terms & Conditions Privacy Policy Terms of Use Login