You could always use a frontScript to add that functionality yourself..
getProp controlType
return word 1 of the name of the target
end controlType
if (the controlType of me = "button") then
# do button stuff
else
# do non-button stuff
end if
___
On 6/25/11 7:06 PM, Slava Paperno wrote:
Is that the way to do it? Seems a bit childish:) There's got to be a
"controlType" property, no?
Slava
Sorry, I don't think so...
using Claudi suggestion: by making a command/function
put this in your object's script
on mousewithin
switchContr
On 6/25/11 10:49 PM, Claudi Cornaz wrote:
Hi Slava,
You can use: word 1 of the abbrev name of me
The abbrev name will return 'the type of control and the short name' like: button
"myButton" or graphic "this grc"
Claudi
Slava... there is no "controlType" using Claudi suggestion: by makin
Hi Slava,
You can use: word 1 of the abbrev name of me
The abbrev name will return 'the type of control and the short name' like:
button "myButton" or graphic "this grc"
Claudi
On 26 jun 2011, at 07:00, Slava Paperno wrote:
> I'm looking for the name of the property that states the object'
Hi Slava,
I believe you're looking for the short name of me or the short name of the
target is "button"
HTH,
Joe Lewis Wilkins
Architect
On Jun 25, 2011, at 10:00 PM, Slava Paperno wrote:
> I'm looking for the name of the property that states the object's control
> type, e.g.
>
> if t
I've discovered that I can use this:
if word 1 of the long name of target is "button" then...
Is that the way to do it? Seems a bit childish :) There's got to be a
"controlType" property, no?
Slava
___
use-livecode mailing list
use-livecode@lists.ru
I'm looking for the name of the property that states the object's control
type, e.g.
if the controlType of me is "button" then set cursor to "hand"
The term "controlType" exists only in my imagination... what is that
property called, please?
Slava
_