[futurebasic] Re: [FB] control updating

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : August 2002 : Group Archive : Group : All Groups

From: Robert Purves <robert.purves@...>
Date: Thu, 1 Aug 2002 18:34:28 +1200
On Thursday, August 1, 2002, at 10:27  AM, Peter Dempsey wrote:
> I am confused on how to make [appearance] static edit fields editable.  
> The manual says that one must merely change the type of an edit field 
> to an editable type to switch it from static to editable (or that's my 
> interpretation).  The demo below fails to do that, and also must use 
> cls to remove the undesirable proof of downscaling.  With Standard 
> BASIC, both problems vanish.
>
> window 1,"Testing",(0,0)-(600,600)
>
> edit field 1,"Edit Me!",(0,0)-(500,500),_statFramed
> edit field 1,,(0,0)-(200,200),_Framed
> cls
>
> do
> handleevents
> until 0


Repeated from a posting earlier this year:

There are some limitations on converting between static and editable 
fields in the Appearance runtime.
(1) The window must have the _noAutoFocus FB attribute.
(2) If a field is ever going to become editable, it must first be 
created editable (this sets up additional information internally).
(3) After changing a field to static, you must 'divert' the focus either 
to another field or to nowhere (with edit field 0).



Robert P.