Page 1 of 1

Scrollbar properties

Posted: Mon Apr 11, 2022 3:33 pm
by glenn9
I think I know the answer to this (= no!) but I just wanted to double check...

Is it possible to alter the property of a scrollbar, ie to make it a different colour to the standard grey?

I`ve checked in the dictionary and I don`t see that there is an option...

and tried:

Code: Select all

...
set the forecolor of scrollbar of fld "x" to blue
...
but above throws an error...

Thanks,

Glenn

Re: Scrollbar properties

Posted: Mon Apr 11, 2022 3:46 pm
by Klaus
Hi Glenn,

I'm not sure, but I think the scrollbars, like some other objects in LC, are provided by the underlying OS
so we cannot change their appearance.


Best

Klaus

Re: Scrollbar properties

Posted: Mon Apr 11, 2022 4:16 pm
by glenn9
Thanks Klaus, understood.

Regards,

Glenn

Re: Scrollbar properties

Posted: Mon Apr 11, 2022 5:27 pm
by stam
As Klaus says, you cannot color the scrollbars of fields, as they are not independently selectable.

However you can at least do something for standalone scrollbars (which includes the scrollbar for data grids - the scrollbar "dgScrollbar" of group "datagrid1" for example). You can add a scrollbar to control a field thereby imitating the effect.

You can tint it by applying a colorOverlay and then apply some transparency so you can actually see the scrollbar.

I can't say i've used this, but have have used the transparency aspect...

HTH,
Stam

Re: Scrollbar properties

Posted: Mon Apr 11, 2022 5:57 pm
by Klaus
Ah, yes, color overlay!
Always forget about the "newer" features of LC. :?

Re: Scrollbar properties

Posted: Tue Apr 12, 2022 5:50 am
by RogGuay
Hi Glenn,

You can roll your own without much difficulty. Check out ScrollbarOmatic on Sample Stacks for some ideas.

Roger

Re: Scrollbar properties

Posted: Fri Apr 15, 2022 12:47 pm
by glenn9
Thanks Roger, apologies, have just spotted your post. This looks very interesting and useful and have now started to work my through it...

Regards,

Glenn