rectangle of 0,0,0,0 ok?

Scott Rossi scott at tactilemedia.com
Sun Jan 18 11:05:14 EST 2004


On 1/18/04 2:08 AM, "Doug Lerner" <doug at webcrossing.com> wrote:
 
>>> If I want to completely hide a field I have been setting it's rectangle
>>> temporarily to 0,0,0,0. This seems to work ok. Anybody see any
>>> problems with
>>> doing that - or can recommend a better way?

>> Is there a reason why you don't want to:
>>  hide fld 1
>>  show fld 1
>> 
>> or alternately:
>>  set the visible of fld 1 to false
>>  set the visible of fld 1 to true
>> 
>> Seems to me that's what the 'visible' property of objects is all about.

> Those don't truly *hide* the field, in the sense that if you check to see if
> the mouse is in the region of the field it still turns out to be true, even
> if the field is not visible.

How are you testing the mouse?  When I use the following script and the
field is hidden, the result is consistently false:

  put within(fld myField,the mouseLoc)

Regards,

Scott Rossi
Creative Director
Tactile Media, Development & Design
-----
E: scott at tactilemedia.com
W: http://www.tactilemedia.com



More information about the use-livecode mailing list