Data Grid - scroll width
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Data Grid - scroll width
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
Hi cbarnhart,
try to "set the scrollbarWidth of grp X to Y"!
Where Y is the desired width in pixels.
Best
Klaus
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
Does not seem to have any effect on my DataGrid vertical scroll bar.....any ideas
Re: Data Grid - scroll width
Hm, are you using a native mobile scroller object for your datagrid and maybe that cannot be modified?
Re: Data Grid - scroll width
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
Maybe I added the code you suggested in the wrong spot....? I attached it to the "on openCard" script
Re: Data Grid - scroll width
Seems to be a good placecbarnhart 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

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
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
set the width of scrollbar "dgScrollbar" to 40
Thank you for pointing me in the right direction