>This used to be allowed by the OS, but in OS/4.0 this causes warnings when
>you use CtlSetLabel on a label (which seems ironic). So...presumably we
>can't do this anymore to stay within Palm guidelines.


A label object isn't a control, it is a label, and is to be used with APIs
like FrmCopyLabel().  Most controls have a "label" property, which is what
CtlSetLabel affects.

Compounding the confusion of the double-use of the word is the fact that
using CtlSetLabel on a label object used to work, due to luck in how the
object internals were laid out.

That 4.0 warning is just letting you know you're one of the many who've
been confused by the poor choice of names made back in Palm OS 1.0
development...

(And before you ask a followup question on this, check the forum archives,
since we've done this topic a few times now.  E.g. "shouldn't the OS have a
FrmSetLabel as well as its FrmCopyLabel?" to which the answer is probably
yes, but to date it doesn't.)

-David Fedor
Palm Developer Support

-- 
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