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

Post Reply
glenn9
Posts: 223
Joined: Wed Jan 15, 2020 10:45 pm
Location: Europe

Scrollbar properties

Post by glenn9 » Mon Apr 11, 2022 3:33 pm

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: 13823
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Scrollbar properties

Post by Klaus » Mon Apr 11, 2022 3:46 pm

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: 223
Joined: Wed Jan 15, 2020 10:45 pm
Location: Europe

Re: Scrollbar properties

Post by glenn9 » Mon Apr 11, 2022 4:16 pm

Thanks Klaus, understood.

Regards,

Glenn

stam
Posts: 2680
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Re: Scrollbar properties

Post by stam » Mon Apr 11, 2022 5:27 pm

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: 13823
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Scrollbar properties

Post by Klaus » Mon Apr 11, 2022 5:57 pm

Ah, yes, color overlay!
Always forget about the "newer" features of LC. :?

RogGuay
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 114
Joined: Fri Apr 28, 2006 12:10 am
Location: Seattle

Re: Scrollbar properties

Post by RogGuay » Tue Apr 12, 2022 5:50 am

Hi Glenn,

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

Roger

glenn9
Posts: 223
Joined: Wed Jan 15, 2020 10:45 pm
Location: Europe

Re: Scrollbar properties

Post by glenn9 » Fri Apr 15, 2022 12:47 pm

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

Return to “Getting Started with LiveCode - Complete Beginners”