Gridview scrollbars

Post your Gambas programming questions here.
Post Reply
User avatar
cogier
Site Admin
Posts: 1118
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

Gridview scrollbars

Post by cogier »

I want to know if the scrollbars of a GridView are being displayed. Unfortunately the GridView.Scrollbar only reports the setting and not if it is being displayed.

The idea is that if the vertical schrollbar bar is showing I could increase the height of the form until the Scrollbar disappears.
monteiro
Posts: 10
Joined: Monday 26th September 2016 11:40am

Re: Gridview scrollbars

Post by monteiro »

Is it related with the gridview rows count? If so, I think it is possible to resize the form and gridview height by using this.
User avatar
cogier
Site Admin
Posts: 1118
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

Re: Gridview scrollbars

Post by cogier »

Thanks for this. You have pointed me in the right direction. By using the amount of Rows and multiplying by the height of the Row the Form height required can be calculated.

A sample program is attached.
take1.tar
(500.5 KiB) Downloaded 594 times
Post Reply