highlight tips

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
bsouthuk
Posts: 261
Joined: Fri Dec 05, 2008 7:25 pm

highlight tips

Post by bsouthuk » Fri Mar 20, 2009 12:13 pm

Wonder if someone can help with the following 2 functions for my software

1 - I want to be able to activate a button by pressing the return key on my keyboard. can somebody tell me the scrypt or button setting i need to make this happen if at all possible.

2 - I want customers that use my software to be able to hover their mouse icon over certain fields which i then want to display a 'tool tip' or 'description' of what the field means. Is this possible to do in Rev.

Your help is much appreciated...

Daniel

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

Post by Mark » Fri Mar 20, 2009 1:13 pm

Dear Daniel,

Please check out "tooltip" and "defaultButton" in the docs.

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

bsouthuk
Posts: 261
Joined: Fri Dec 05, 2008 7:25 pm

Post by bsouthuk » Fri Mar 20, 2009 2:41 pm

Thanks Mark - where do i find the docs?

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

Post by Mark » Fri Mar 20, 2009 2:51 pm

docs = documentation, help files, etc.
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 » Fri Mar 20, 2009 2:59 pm

Hi Daniel

I'll answer that one for you: just below the Rev main menu bar should be showing a toolBar; the Documentation icon shows at the end. (If it's not showing, go to View>Toolbar Icons to switch them on).

You can also get to the Documentation by going to Help>Documentation.

:)

SparkOut
Posts: 2947
Joined: Sun Sep 23, 2007 4:58 pm

Re: highlight tips

Post by SparkOut » Fri Mar 20, 2009 3:17 pm

bsouthuk wrote:1 - I want to be able to activate a button by pressing the return key on my keyboard. can somebody tell me the scrypt or button setting i need to make this happen if at all possible.
Hi Daniel,
For this, as well as examining the "defaultButton" entry in the dictionary, also look in the Property Inspector of the button for the checkbox "Focus with keyboard" to make sure that keyboard navigation is enabled for that button. (You can also set the property by script, using 'set the traversalOn of button "MyButton" to true'). When tabbing around the controls by keyboard (the order of the focussable controls is set by the layer order of the objects on the card) then the button should change appearance to highlight that it is the currently selected control. If you hit "return" when it is selected, then it will trigger the button's on mouseUp handler.

bsouthuk
Posts: 261
Joined: Fri Dec 05, 2008 7:25 pm

Post by bsouthuk » Fri Mar 20, 2009 3:58 pm

Done - thats a gerat help, much appreciated everyone.

Daniel

Post Reply