Data Grid - scroll width

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
cbarnhart
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 48
Joined: Mon May 07, 2012 2:10 pm

Data Grid - scroll width

Post by cbarnhart » Thu Aug 23, 2012 2:31 am

I have a simple data grid with a Vertical scroll bar. When deployed to a mobile device the scroll bar is too small. Is there a setting to set the width of a vertical scroll bar in the data grid ?

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Data Grid - scroll width

Post by Klaus » Thu Aug 23, 2012 12:31 pm

Hi cbarnhart,

try to "set the scrollbarWidth of grp X to Y"!
Where Y is the desired width in pixels.


Best

Klaus

cbarnhart
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 48
Joined: Mon May 07, 2012 2:10 pm

Re: Data Grid - scroll width

Post by cbarnhart » Thu Aug 23, 2012 9:53 pm

Does not seem to have any effect on my DataGrid vertical scroll bar.....any ideas

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Data Grid - scroll width

Post by Klaus » Thu Aug 23, 2012 11:03 pm

Hm, are you using a native mobile scroller object for your datagrid and maybe that cannot be modified?

cbarnhart
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 48
Joined: Mon May 07, 2012 2:10 pm

Re: Data Grid - scroll width

Post by cbarnhart » Fri Aug 24, 2012 12:54 am

Not sure. I am using the DataGrid object dragged straight off the side objects bar in LiveCode. I did not modify in anyway

Maybe I added the code you suggested in the wrong spot....? I attached it to the "on openCard" script

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Data Grid - scroll width

Post by Klaus » Sat Aug 25, 2012 2:47 pm

cbarnhart wrote:Not sure. I am using the DataGrid object dragged straight off the side objects bar in LiveCode. I did not modify in anyway
Maybe I added the code you suggested in the wrong spot....? I attached it to the "on openCard" script
Seems to be a good place :D

Maybe this does not work on iOS although the docs state so?
Can you test it with a button, to see if this does work at all?

cbarnhart
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 48
Joined: Mon May 07, 2012 2:10 pm

Re: Data Grid - scroll width

Post by cbarnhart » Tue Sep 04, 2012 1:39 pm

Ok, I figured it out. I was addressing the wrong "item". Rather than the whole data grid group I had to address the scroll bar element of the the data grid group
set the width of scrollbar "dgScrollbar" to 40

Thank you for pointing me in the right direction

Post Reply