At 11:12 AM 8/30/2002 -0700, you wrote:
>I'm trying to bring my software up to the point that it compiles cleanly
>using the OS5 SDK. I've been a bad boy and have been accessing 'protected'
>structures like video memory and the ListType structure.
>
>I have one screen that has a bunch of controls that I show or hide depending
>on what the user wants to see. I probably should have done differently but
>this is the way it is... In any case, one of the controls is a list.  I used
>to disable the list with:
>
>list->attr.usable = false;
>
>And then draw over it.
>
>Then I would enable it with:
>
>list->attr.usable = true;
>and use WinDrawList()
>
>But now that accessing the "usable" parameter is not really allowed, I need
>to find an alternitve. It seems that if I use LstDrawList() and
>ListEraseList(), the list never shows up.

Use FrmShowObject and FrmHideObject to change the visibility of the list, 
at least if your code is running on Palm OS 3.5 or later.  If its running 
on an older OS, just directly tweak things as you've done.  You might need 
to write your own glue routines which you compile using different settings 
(like non-strict headers) to do this.


-- 
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to