Page 1 of 1

Data Grid - scroll width

Posted: Thu Aug 23, 2012 2:31 am
by cbarnhart
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 ?

Re: Data Grid - scroll width

Posted: Thu Aug 23, 2012 12:31 pm
by Klaus
Hi cbarnhart,

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


Best

Klaus

Re: Data Grid - scroll width

Posted: Thu Aug 23, 2012 9:53 pm
by cbarnhart
Does not seem to have any effect on my DataGrid vertical scroll bar.....any ideas

Re: Data Grid - scroll width

Posted: Thu Aug 23, 2012 11:03 pm
by Klaus
Hm, are you using a native mobile scroller object for your datagrid and maybe that cannot be modified?

Re: Data Grid - scroll width

Posted: Fri Aug 24, 2012 12:54 am
by cbarnhart
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

Re: Data Grid - scroll width

Posted: Sat Aug 25, 2012 2:47 pm
by Klaus
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?

Re: Data Grid - scroll width

Posted: Tue Sep 04, 2012 1:39 pm
by cbarnhart
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