Well, by now we all know that we really shouldn't directly access a
UI's data structure, but for the following few cases I don't really
know how I should go about checking some UI's status without looking
into the data structure.  Any help is appreciated.

1.  Checking if a menu (or a command bar) is visible.  Even the OS4's
API reference manual still talk about checking the visible state by
examining the MenuBarAttrType's structure member directly.  Although
the manual did suggest another method of doing things (by capturing a
winExitWindow and winEnterWindow events), but it doesn't work for me.
I need to check a menu's visible state during a penDownEvent.  Besides
that method doesn't work for a command bar.

2.  A second question is related to a field's attribute.  In OS4's API
reference manual, it warns us about not accessing FieldAttrType's
structure member directly and yet, there are 2 functions that allow us
to get and set the attributes (FldGetAttributes and FldSetAttributes).
So, I guess the question is what is true.  If we shouldn't use those 2
functions, then how should we change a field's editable state
programatically and how should we check if a field is usable, etc?




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