Call LstSetHeight after LstSetListChoices.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 20, 2001 3:41 PM
To: Palm Developer Forum
Subject: Popup Lists
I have a list which I populate at runtime from data received through the
network. Since I don't know the number of items, I set the visible items of
the
list resource to 0, like the Address and Memo apps do.
At runtime, I create the list, and call LstSetListChoices, and everything
seems
happy. I added some lines to check to make sure the list choices are corrent
and
they are.
When I click on the popup trigger, the list appears, but only 1 or 2 pixels
high, basicly displaying nothing. If I set the resource to show 3 or 5
items,
the list appears. But if there are 3 items, and I have 5 in the resource,
there
are two blank spaces. I would like the list to be only as big as it needs to
be.
When I first made the change to have the dynamic sizing list, it was working
fine. Anyone have any idea what I changed to break this?
Steve
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/