Page 1 of 1

focusable

Posted: Thu Aug 21, 2014 11:37 pm
by dunbarx
Beginners section, because that is how I feel sometimes.

Is there any property that determines selectability? (Not focusability, that is the "traversalOn").

I want to lock out the ability to select an object when using the pointer tool. So I made a little test stack. Pulled two grc rectangles and a button. In one grc I set the "lockLoc" property to "true" (default is "false"), just to see if this held a clue.

In the button script:

Code: Select all

on mouseUp
   put the properties of grc 1 into f1
   put the properties of grc 2 into f2
   
   combine f1 with  return  and comma
   combine f2 with  return  and comma
   
   repeat with y = 1 to the number of lines of f1
      if line y of f1 <> line y of f2 then put line y of f1 & return after temp
   end repeat
   answer temp
end mouseUp
This comes back:
id,1009
layer,2
lockLoc,true
rect,22,26,142,146
No surprise I get changes in such things as the rect, and the "lockLoc" change is just what I deserved. So is there no property that locks out selectability? This is useful to me, say, when a number of controls may be framed by a graphic rectangle. If I want to select several controls by dragging a selection rectangle with the pointer tool, I invariably get the grc as well. I do not want to have to drop the grc manually all the time.

???

Craig Newman

Re: focusable

Posted: Thu Aug 21, 2014 11:40 pm
by dunbarx
Nerver mind.

"cantSelect"

This works with the pointer tool. I was in the right section after all.

Craig

Re: focusable

Posted: Fri Aug 22, 2014 12:11 am
by Simon
hmmm... 3 minutes to get the answer?
We're not that slow around here :)

Simon

Re: focusable

Posted: Fri Aug 22, 2014 3:50 am
by dunbarx
Simon.

I had checked "select" in the dictionary. Nothing useful, so I wrote my post. But I have been around this stuff for a while, and the keyword fragment "can't" just popped into my head. What do you know?

The moral? Think just a little bit longer... :oops:

Craig