Page 1 of 1

highlight tips

Posted: Fri Mar 20, 2009 12:13 pm
by bsouthuk
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

Posted: Fri Mar 20, 2009 1:13 pm
by Mark
Dear Daniel,

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

Best,

Mark

Posted: Fri Mar 20, 2009 2:41 pm
by bsouthuk
Thanks Mark - where do i find the docs?

Posted: Fri Mar 20, 2009 2:51 pm
by Mark
docs = documentation, help files, etc.

Posted: Fri Mar 20, 2009 2:59 pm
by gyroscope
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.

:)

Re: highlight tips

Posted: Fri Mar 20, 2009 3:17 pm
by SparkOut
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.

Posted: Fri Mar 20, 2009 3:58 pm
by bsouthuk
Done - thats a gerat help, much appreciated everyone.

Daniel