A bit of Bover with Hover

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
user#606
Posts: 217
Joined: Sun Jan 27, 2008 12:25 pm
Contact:

A bit of Bover with Hover

Post by user#606 » Fri Apr 17, 2009 9:12 pm

I had a situation where I wanted to cause a text file to load into a field alongside a button which was contextural to the button. The user could then click the button in the normal way to exit to a different card. I thought the Hover might work or Hilite or other "suspects" but it would not work.
Is it possible to cause a script in the button to run when hovering on it, but run a different script using the on mouseup in the normal way.
The point of all this was to display help in a field that changed depending on which button was hovered over, but do something else when clicked.
Any ideas?

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: A bit of Bover with Hover

Post by sturgis » Fri Apr 17, 2009 10:02 pm

Look up mouseEnter in the dictionary. Should be what you're looking for.

user#606 wrote:I had a situation where I wanted to cause a text file to load into a field alongside a button which was contextural to the button. The user could then click the button in the normal way to exit to a different card. I thought the Hover might work or Hilite or other "suspects" but it would not work.
Is it possible to cause a script in the button to run when hovering on it, but run a different script using the on mouseup in the normal way.
The point of all this was to display help in a field that changed depending on which button was hovered over, but do something else when clicked.
Any ideas?

822163
Posts: 3
Joined: Thu Feb 26, 2009 4:08 pm

Post by 822163 » Fri Apr 17, 2009 10:42 pm

Thank you sturgis, that did the trick. I missed that one and I did read through the dictionary.

It is a neat effect!

Post Reply