I believe FrmShowObject and FrmHideObject won't work on a ListType
object under OS 3.3 and lower devices.  You can give it a try on the
emulator.


On Sun, 6 Jan 2002 19:29:53 -0000, "Laurence Mee"
<[EMAIL PROTECTED]> wrote:

>
>I would not necessarily advise using the member variables of the ListType
>structure as it may well not be supported in future Palm applications.
>Have you tried using FrmShowObject and FrmHideObject?
>What part of the list box remains behind?
>Also, rather than using LstDrawList shouldn't you be using LstEraseList?
>
>Laurence.
>
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of Andy
>Yeong
>Sent: 06 January 2002 19:04
>To: Palm Developer Forum
>Subject: How to remove a listbox ?
>
>
>Hi,
>
>I have a trigger button which will display
>a list box when depressed.
>
>After displaying the list box, the 2nd time
>the user click on it again, the list box suppose
>to dissapear from the form.
>
>So far, I'm able to display the list box when the
>user click on the button, however I couldn't quite
>clear up the list box. Although the list box did
>clear up abit from the form, a bit of it still left
>behind.
>
>Anybody got any example to this ?
>
>My code in summary
>------------------
>
>ListPtr list;
>
>*** To show ListBox ***
>
>list = GetObjectPtr(ListResourceIndex);
>list->attr.usable = 1;
>// And follow by the normal string init code
>LstDrawList(list)
>
>*** To Clear up the ListBox ***
>list = GetObjectPtr(ListResourceIndex);
>list->attr.usable = 0;
>LstDrawList(list)
>
>I even try using FrmDrawForm(FrmGetActiveForm())
>but it still left a part of the listbox behind.
>
>Thanks !


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