Slider Colour

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

Slider Colour

Post by bidgeeman » Fri Oct 02, 2009 9:53 am

Hi all.

Can someone tell me if there is a way to change the default colour of the slider bars in Runrev?

Thanks again
Bidge

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Post by bn » Fri Oct 02, 2009 12:13 pm

Hi Bidge,

I dont know of a way to color slider bars,

but if you use Rev 4.0 then you could fake it with an innerShadow.
this works on a mac, you would have to adjust for Windows.

Code: Select all

on mouseUp
   set the innerShadow["angle"] of field 1 to 180
   set the innerShadow["blendmode"] of field 1 to "multiply"
   set the innerShadow["color"] of field 1 to "0,34,239"
   set the innerShadow["distance"] of field 1 to 27
   set the innerShadow["filter"] of field 1 to "gaussian"
   set the innerShadow["opacity"] of field 1 to 62
   set the innerShadow["size"] of field 1 to 10
   set the innerShadow["spread"] of field 1 to 255
end mouseUp
you could tweak it in the inspector and adjust the code.
regards
Bernd

bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

Post by bidgeeman » Fri Oct 02, 2009 12:34 pm

Hi Berd.

Thanks again for the help. I'll give it a shot!!!

Cheers
Bidge

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Post by FourthWorld » Fri Oct 02, 2009 4:22 pm

If you need to make a completely custom-looking slider, Chipp Walters at Altuit has a nifty tool called "Interface Designer" that makes short work of building custom sliders and more, for the low cost of US$15:

http://www.altuit.com/webs/revCentral/I ... torial.htm
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply