At 21:03 2003-1-24 +0100, you wrote:
Hi,

((FormGadgetType*) formObj)->attr.usable (for instance) won't compile when
ALLOW_ACCESS_TO_INTERNALS_OF_FORMS is undefined, and attr is not the only
one (FormLabelType's text field is another example I think).
I know that PalmOSGlue gives some solutions to this problem, but not all
solutions AFAIK.
Is there any accessor for this kind of internal field, or another way to
access this field without directly dereferencing a struct pointer?
Use FrmGadgetTypeInCallback -- it was added in Palm OS SDK 4.0 update 1 and is also in the current SDK 5. This is a new typename that is accessible in gadget callbacks.

--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com

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

Reply via email to