Fading in and out of menuitem selection 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
gyroscope
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 404
Joined: Tue Jan 08, 2008 3:44 pm
Contact:

Fading in and out of menuitem selection colour

Post by gyroscope » Mon Nov 24, 2008 1:26 pm

Hi, does anyone know please if the following is possible in Rev or not?

By holding down on a particular menuItem, the colour band fades in and when going to another menuitem, it fades out? i.e is there any way to affect the highlight colour of a menuitem script-wise anyhow?

What inspired me to want to use this neat visual effect in my project was this website:

http://www.samsung.com/uk/consumer/index.html

I'm guessing the answer would be no but yes for a listfield possibly or set of buttons...

:)

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Fri Nov 28, 2008 12:52 am

Hi Gyroscope,

It is not completely clear to me what you want, but I might have an idea, which won't work with native menus in Mac OS X but might works in Windows and Linux.

If you create panels for you menus, instead of using the text-based menu items, you might set the blendLevel of the panel stack to 100 and change it gradually to 0 during .5 or 1 second.

I'm not sure what is necessary to make this work. You might end up with a button showing stack, which simulates a menu. So, yes, probably you will have to fake it, one way or another.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

gyroscope
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 404
Joined: Tue Jan 08, 2008 3:44 pm
Contact:

Post by gyroscope » Sat Nov 29, 2008 3:55 pm

So, yes, probably you will have to fake it, one way or another.
Thank you Mark, I thought that might be the case.

:)

Post Reply