Note that PalmSource has hidden all internal attributes of UI objects, but for gadgets, they realized that programmers would need to access their own gadgets data through the gadget pointer handed to callback code. To allow for this, they created a mirror of the gadget type that is not subject to the ALLOW_ACCESS_TO_INTERNALS_xxx macro.
That type is FormGadgetTypeInCallback - look it up. Kevin -----Original Message----- From: Philip Streck [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 8:32 AM To: Palm Developer Forum Subject: Re: Gadget question On Monday, June 30, 2003, at 04:06 PM, Dave Lippincott wrote: > Accessing UI internal structures became taboo with the last couple of > OS > releases. There should be some routines that you can retrieve/set > internal > properties without directly modify the structure. If I remember > correctly, > you're looking for FldGetAttributes and FldSetAttributes. > >> My first question is is there a functional necessity of setting this > attribute? > Sure. Hide a gadget. > Well, more what I was thinking here is it necessary to call FrmShowObject on each formGadgetDrawCmd? Thanks for the info. Phil >> And secondly should we notify Palm of there contradicting documents? > I'd assume so. To whom, I don't have a clue. Posting the conflict > here is > a good start. > > ----- Original Message ----- > From: "Philip Streck" <[EMAIL PROTECTED]> > To: "Palm Developer Forum" <[EMAIL PROTECTED]> > Sent: Monday, June 30, 2003 3:50 PM > Subject: Gadget question > > >> On page 145 of the Palm OS Programmers Companion V1 there is an >> example >> of a FormGadgetHandlerType in which they set the gadgets visible >> attribute to true as shown below: >> >> case formGadgetDrawCmd: >> //Sent to active gadgets any time form is >> //drawn or redrawn. >> DrawGadget(); >> gadgetP->attr.visible = true; >> handled = true; >> break; >> >> Then on page 250 of Palm OS Programmers Reference there is the >> following statement: >> >> WARNING! PalmSource, Inc. does not support or provide >> backward compatibility for the FormGadgetAttrType structure. >> Never access its structure members directly, or your code may >> break in future versions. Use the information below for debugging >> purposes only. >> >> My first question is is there a functional necessity of setting this >> attribute? >> And secondly should we notify Palm of there contradicting documents? >> >> Thanks, >> >> Phil >> >> >> -- >> For information on using the Palm Developer Forums, or to unsubscribe, > please see http://www.palmos.com/dev/support/forums/ >> > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, > please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ ------------------------------------------ The information in this transmittal and any attachments are confidential and intended only for the recipient(s) listed above. You are hereby notified that any unauthorized distribution or copying of this transmittal or its attachments is prohibited. If you have received this transmittal in error, please notify invivodata immediately at (831) 438-9550. ------------------------------------------ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
