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/

Reply via email to