At 7:13 PM +0200 07/4/00, Paul Taylor wrote:
>    Why is it that we should avoid the Ctl functions?  Is it a question of
>style, or had palm recommended that for some reason?

It's sort of a class heirarchy thing.  If you go directly to the controls,
you don't give the Form a chance to do any housekeeping it may need.  For
the most part, this doesn't matter at all... at least not in today's OK.

The only place where it actually matters today is using FrmSetFocus instead
of FldGrabFocus or TblGrabFocus.  (If you use the Fld function, then the
form won't get a chance to update it's concept of who has the focus, and
subsequent user input that changes the input focus will do funny things.)

Also, for example, FrmHideObject works on objects that don't have their own
API.  e.g. if you just always use FrmHideObject, you'll never get confused
about which function to use for labels or bitmaps.  :-)

>    I've been using them successfully for many months..  In fact, I don't
>think I remembered there even being a FrmHideObject.. If I knew about it I
>probably would have tried it first.  But, you know how it is.. Find
>something that works, and stop looking for other ways...

Exactly.  I consider it a (minor) toolbox flaw that there are multiple
(documented) ways to do the same thing.  We should probably never have
documented the specific object functions (like CtlHideObject).

                                --Bob

________________________________________________________________________
Bob Ebert, Consulting Engineer, Palm Computing Europe V: +33 4 9952.4354
77 rue Samuel Morse, 34935 Montpellier Cedex 9 France F: +33 4 9952.4397



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to