Menu button Behavior

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
phaworth
Posts: 592
Joined: Thu Jun 11, 2009 9:51 pm

Menu button Behavior

Post by phaworth »

The property inspector for any type of menu button (option, popup, combobox, etc) does not include a place to specify a behavior. I have been able to set a behavior by issuing a set behavior command from the message box and all seems to work OK. I guess I'm mildly concerned that the fact that there's isn't anywhere to do it in the property inspector means I shouldn't be doing it at all and it might cause problems to surface later.

Any thoughts?

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

Re: Menu button Behavior

Post by Mark »

Pete,

I can't think of a reason to worry and can't find any reasons in the documentaton either.

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
Simon Knight
Posts: 936
Joined: Wed Nov 04, 2009 11:41 am

Re: Menu button Behavior

Post by Simon Knight »

Hi,
This "feature" has just tripped me up (it doesn't take much :wink: ). Should/has the display of an associated behavior (behaviour) button on the inspector be entered as a feature request?
best wishes
Skids
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Menu button Behavior

Post by Klaus »

Hi Simon,
Simon Knight wrote:Hi,
This "feature" has just tripped me up (it doesn't take much :wink: ). Should/has the display of an associated behavior (behaviour) button on the inspector be entered as a feature request?
you can do this, but don't exspect to see this very soon!
Get accustomed to the message box instead, which IS your friend 8)

Best

Klaus
phaworth
Posts: 592
Joined: Thu Jun 11, 2009 9:51 pm

Re: Menu button Behavior

Post by phaworth »

Just entered it at the QA center, thanks for reminding me. It's report# 9014.
Pete
Simon Knight
Posts: 936
Joined: Wed Nov 04, 2009 11:41 am

Re: Menu button Behavior

Post by Simon Knight »

Klaus,

I keep putting off learning about the message box. Can you suggest where I should start?

Simon
best wishes
Skids
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Menu button Behavior

Post by Klaus »

Hi Simon,

basically you can do everything with it, like getting/setting properties, or things that are not possible in the inspector!
The mesage box is the command line of Rev, so you can enter everything here and let it execute like:
put the behavior of btn "el buttone" ## ENTER

And you will see the result in the field below, wehre you can copy it or do whatever you want to.

A very good trick is to use "the mouseXYZ"!
1. Enter this into the msg:
put the name of the mousestack ## or any other property
2. Positon the mouse over any stack
3. NOW hit ENTER to execute the command in the msg

Or use "the mousecontrol"
1. Enter this into the msg:
put the height of the mousecontrol ## or any other prop
2. Positon the mouse over any control (button/field etc.)
3. NOW hit ENTER to execute the command in the msg

This does come handy very often!

I'm sure you will soon see the value of this little thingie :-)


Best

Klaus
Simon Knight
Posts: 936
Joined: Wed Nov 04, 2009 11:41 am

Re: Menu button Behavior

Post by Simon Knight »

Klaus,

I shall start experimenting with the thingie today - thanks

(I shall also watch some of the RunRev2009 videos again which show how some of the presenters use it)

Simon
best wishes
Skids
Post Reply