You may try the function LstSetHeight for number of visible item set..
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Scott
Johnson
Sent: Monday, February 04, 2002 2:14 PM
To: Palm Developer Forum
Subject: RE: How to dynamically change the number of visible items in a
li st resource
From: scott [mailto:[EMAIL PROTECTED]]
> LstSetHeight(list, 5<num_items?5:num_items);
> where list is a pointer to a list control, 5 is the maximum
> number of items I want to see, and num_items is the number
> of items in the list, which I set with LstSetListChoices
Is this for a popup list? This code would limit the list to 5 visible
items
even if it contained more. In general a popup list should display as
many
items as possible without scrolling, up to the height of the screen. So
if
you just pass the exact number of items to LstSetHeight, this happens
automatically.
-slj-
--
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/