How can I find-out if a form element (control, list and so on) is visible or not?
If I write something like
ControlType* pControl; ... if (pControl->attr.visible) { ... }
The compiler complains of a "dereferencing pointer to incomplete type" error on the line with the if statement.
Have you read through the Palm OS Glue library? You need FrmGlueGetObjectUsable.
BTW, the reason the compiler complains is because, starting with the Palm OS 5 SDK, everything defaults to strict mode where you can't directly access the contents of Palm OS system structures. This is because the layout of these structures is different in the ARM-based versions of Palm OS than it was in the 68K versions.
-- Ben Combee, DTS technical lead, PalmSource, Inc. "Combee on Palm OS" weblog: http://palmos.combee.net/ Palm OS Dev Fourm Archives: http://news.palmos.com/read/all_forums/
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
