Datagrid: How to change the width of the scrollbar

zryip theSlug zryip.theslug at
Sat Aug 20 16:39:59 EDT 2011

On Fri, Aug 19, 2011 at 10:36 PM, zryip theSlug <zryip.theslug at> wrote:
> On Fri, Aug 19, 2011 at 12:49 AM, Matthias Rebbe
> <matthias_livecode_150811 at> wrote:
>> Hi,
>> i thought i could adjust the scrollbar width of a datagrid (table) with for example
>> set the dgProp[ "scrollbar width" ] of group "Datagrid 1" to 10
>> But regardless what value i use, the scrollbar dissapears.
>> If i set it back to "auto" the size of the scrollbar is set back to its initial size.
>> I also tried Datagrid Helper.  Same result.
> Internally DGH sets the property the same way you done it, so this is
> probably something relative to the datagrid library.
> Will investigate and try to find a possible workaround for the next
> DGH's release.

It seems after having set the scroll width to a value, the scrollbars
in the datagrid group are not properly resized.
The dgHScrollbar have a height of 1 pixel and the dgScrollbar have a
width of 1 pixel whatever the value passed to the property "scrollbar
I forced it to the right in DGH.

If you are not using DGH you can solve this by editing the group and
changing the width or height value by hand. Be sure to refresh the
corner offset to have it in the foreground.
Once the right value set, the scroll bar width will not change until
you will try to change it by the "scrollbar width" property.

Best regards,
-Zryip TheSlug- wish you the best! 8)

More information about the Use-livecode mailing list