Found It! - IDE Save File Dialog

Michael J. Lew michaell at unimelb.edu.au
Tue Apr 27 21:57:11 EDT 2004


OK, I can help too! If you make the lowest layer control a 
traversalOn true field _that_is_locked_ then you should not get the 
save dialog because a locked field can't be "dirty".


At 8:19 PM -0400 27/4/04, use-revolution-request at lists.runrev.com wrote:
>On 4/27/04 3:55 PM, David Burgun wrote:
>
>>  Ok, it's a bit worse than that, it seems that the "openField" message
>>  gets sent just because the field is "Focusable" not because the user
>>  clicked in it, I am guessing that it gets sent to the first "Focusable"
>>  field of a card, although I just cannot figure out why this happens in
>>  one stack and not another! Anyone know?
>
>Yes. The first control (that is, the control with the lowest layer)
>which also has its traversalOn property set to true will automatically
>be focused when a card opens. If this is a button, you won't get the
>message. If it is an editable field, you will.
>
>Since all controls on Windows can be focused, the trick is to make sure
>that the lowest-level, traversalOn control is a button. On a Mac,
>however, buttons cannot receive focus and the first editable field will
>receive focus instead. On Macs, you have to use a hack -- either make
>sure none of your fields are focusable, or else hide an editable field
>offscreen somewhere whose layer is set to 1. Then that hidden field gets
>the focus and your card looks untouched.
>
>For your problem though, the hack won't help because the offscreen field
>will receive focus and trigger messages anyway. So you may just have to
>go with the openField handler you wrote.
>
>--
>Jacqueline Landman Gay         |     jacque at hyperactivesw.com
>HyperActive Software           |     http://www.hyperactivesw.com

-- 
Michael J. Lew

Senior Lecturer
Department of Pharmacology
The University of Melbourne
Parkville 3010
Victoria
Australia

Phone +613 8344 8304

**
New email address: michaell at unimelb.edu.au
**


More information about the use-livecode mailing list