Have you tried explicitly checking the OS version in your set_table_usable
function? That is if you have the OS that has fixed the problem, then do
nothing, otherwise, set the attribute. I don't know how long this
technique will last because if people start to change the table's data
structure in any future OS, then you're screwed. I personally don't know
if you'll ever see a FrmGlueHideObject. This problem has been around for
a LONG time and I'm guessing that no one really seems to care to make a
glue function for it.
On 8 Apr 2002 at 10:59, Thomas Ward wrote:
> Hi,
>
> I have an app that requires Palm OS 2.0 or later. On one of its forms is a
> table that needs to be shown or hidden based on certain criteria. Since
> FrmHideObject does work correctly on tables until 4.0, I could not use it.
> Until recently, I simply set the table's attr.usable bit to true or false.
>
> Then lately, I created a separate .c file, that contained:
>
> ==========================================================
> #define ALLOW_ACCESS_TO_INTERNALS_OF_TABLES
>
> #include <PalmOS.h>
>
> void set_table_usable (TablePtr table, Boolean showit) {
> table->attr.usable = showit;
> }
> ==========================================================
>
> This compiles OK, but now when I run it in the Simulator, I get an error. I
> can click on "Ignore", but of course the table does not get shown/hidden
> like it needs to. I downloaded the latest SDK, Simulator, Documentation,
> etc. and hoped to find a FrmGlueHideObject function that would handle this
> correctly, but there isn't one. (The same problem also exists for Lists.)
>
> Increasing my app's minimum required OS from 2.0 all the way to 4.0 is just
> not an option. Does anyone have a workaround I could use? Does anyone at
> Palm know if they are going to be releasing a FrmGlueHideObject function?
>
> Thanks.
>
> Tom
>
> P.S. Palm folks: Are there plans for a Simulator update that will let you
> set the HotSync Name like the Emulator does?
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/support/forums/
>
>
John Leung
[EMAIL PROTECTED]
http://persweb.direct.ca/jleung
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/