Hi,

First of all, I would like to thank all the people that help me
in one way or another. Thanks

Okay, I have tried out several method mentioned in the post and the
following is my finding,

John Leung
------------

lis - GetObjectPtr(ObjectIndex)
list->attr.usable = 0;
LstEraseList(list)

Ya, this works beautifully. All of them is been erased
from the form without any being left behind afer FrmDrawForm.
However, the penalty of using FrmDrawForm, kinda of left a
flickering effect.

Joe Programmer
-----------------

FrmHideObject and FrmShowObject does not work as expected.
As mentioned in the PalmOS API Reference (v3.5), page 286, it
did mentioned that it does not affect list and tables.

Max Bian
-----------

Thanks for introducing LstPopupList() which prove to be very
handy and neat solution. At least, it perform what I desired.
And it also do not have that flickering effect due to FrmDrawForm().

Gavin Maxwell
----------------

As you can see in PalmOS API Reference from Page 319 to 321,
they do not have that "expected" sentence of "Your code should
treat xxxType structure as opaque. Use functions specified in the
descriptions below to retrieve and set each value. Do not attempt
to change structure members value directly,"

That's why I find pretty strange that none of the API allow me to
change the usable bit whereby it control the display on and off of
the list box. Perhaps, I have missed it somewhere in the API.

Thus, it left me with no choice but to handle it myself.

Conclusion :

I have finally managed to get the list box working as expected by
utilizing LstPopupList(). Last but not least, once again, I would
like to thanks everyone for their patience, enlightment as well as
time.

Have a nice day.

Best Regards
Andy




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