Re: Button is behavior

2014-11-29 Thread FlexibleLearning.com
'Resolve image' is useful to know. However, the indexing solution to identify buttons used as behaviors is fine as far as it goes, but it will inevitable omit any behaviour buttons if any 'calling' objects are not currently loaded. As you say, behaviors can be set and changed dynamically, but

Re: Button is behavior

2014-11-28 Thread FlexibleLearning.com
It's a supplementary idea for the upcoming Control Manager utility to show not only the style but the function of a button. More generally, behaviours are a bit like icons, although locating a behaviour source is easier than locating an image source! Hugh Senior FLCo Mike Bonner wrote Mind

Re: Button is behavior

2014-11-28 Thread Richard Gaskin
Hugh Senior wrote: It's a supplementary idea for the upcoming Control Manager utility to show not only the style but the function of a button. More generally, behaviours are a bit like icons, although locating a behaviour source is easier than locating an image source! That got much easier a

Re: Button is behavior

2014-11-28 Thread Peter Haworth
Check out the new resolve command to find the location of an image. On Nov 28, 2014 5:09 AM, FlexibleLearning.com ad...@flexiblelearning.com wrote: It's a supplementary idea for the upcoming Control Manager utility to show not only the style but the function of a button. More generally,

Button is behavior

2014-11-27 Thread FlexibleLearning.com
Is there a way to identify whether a button is used as a behavior? e.g. the isBehavior of btn 1 Just asking. Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your

Re: Button is behavior

2014-11-27 Thread dunbarx
Hugh. You could surely write a short function, asking if the behavior of your button of interest is empty. Craig -Original Message- From: FlexibleLearning.com ad...@flexiblelearning.com To: use-livecode use-livecode@lists.runrev.com Sent: Thu, Nov 27, 2014 5:53 am Subject: Button

Re: Button is behavior

2014-11-27 Thread Mike Bonner
that it supplies behavior to. On Thu, Nov 27, 2014 at 8:49 AM, dunb...@aol.com wrote: Hugh. You could surely write a short function, asking if the behavior of your button of interest is empty. Craig -Original Message- From: FlexibleLearning.com ad...@flexiblelearning.com

Re: Button is behavior

2014-11-27 Thread Mark Wieder
Mike- Thursday, November 27, 2014, 8:16:18 AM, you wrote: Have perused the dictionary, don't think there is currently a way to do what you want. Feature request? I'm not even sure a feature request would help here. Being used as a behavior isn't a property of an object, it's just a reference

Re: Button is behavior

2014-11-27 Thread Mike Bonner
Was curious and tried it. 4000 controls, took 107 milliseconds to index, on my system. It picked up datagrid behaviors too. local sObehaveListA on mouseUp put the milliseconds into tStart put empty into sObehaveListA repeat with i = 1 to (the number of controls of this stack) if

Re: Button is behavior

2014-11-27 Thread Mark Wieder
Mike- Nice. That gives you a concordance. And then isBehavior becomes function isBehavior pButtonName return pButtonName is among the lines of the keys of sObehaveListA end isBehavior -- -Mark Wieder ahsoftw...@gmail.com This communication may be unlawfully collected and stored by the

Re: Button is behavior

2014-11-27 Thread Peter Haworth
list. Might be interesting to do though, build an array keyed by button id, that contains a list of objects that it supplies behavior to. On Thu, Nov 27, 2014 at 8:49 AM, dunb...@aol.com wrote: Hugh. You could surely write a short function, asking if the behavior of your button

Re: Button is behavior

2014-11-27 Thread FlexibleLearning.com
Thought as much, Mike. Only wondered if I had missed some new keyword among all the enhancements recently made by the mothereship. As the years advance I find I miss more than I used to, and what don't miss I forget! Hugh Senior FLCo Mike Bonner bonnm...@gmail.com wrote: Was curious and

Re: Button is behavior

2014-11-27 Thread Mike Bonner
Mind if I ask why you need this? Always interested in the hows and whys of others, which often gives me new ideas I may not have otherwise had. On Thu, Nov 27, 2014 at 1:19 PM, FlexibleLearning.com ad...@flexiblelearning.com wrote: Thought as much, Mike. Only wondered if I had missed some new