Scrollbar properties

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: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
glenn9
Posts: 234
Joined: Wed Jan 15, 2020 10:45 pm

Scrollbar properties

Post 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
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Scrollbar properties

Post 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
glenn9
Posts: 234
Joined: Wed Jan 15, 2020 10:45 pm

Re: Scrollbar properties

Post by glenn9 »

Thanks Klaus, understood.

Regards,

Glenn
stam
Posts: 3214
Joined: Sun Jun 04, 2006 9:39 pm

Re: Scrollbar properties

Post 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
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Scrollbar properties

Post by Klaus »

Ah, yes, color overlay!
Always forget about the "newer" features of LC. :?
RogGuay
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 125
Joined: Fri Apr 28, 2006 12:10 am

Re: Scrollbar properties

Post by RogGuay »

Hi Glenn,

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

Roger
glenn9
Posts: 234
Joined: Wed Jan 15, 2020 10:45 pm

Re: Scrollbar properties

Post 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
Post Reply