On Mon, Feb 04, 2002 at 10:49:02AM +0530, NWADHWANI wrote:
> Hello,
> 
> I have a list (tSTL) resource which can be updated at run-time...e.g.
> when the application boots, the list has no items; the application
> allows the user to enter some information which needs to be reflected in
> the list...so now the list will have some items...My requirement is to
> change the number of 'visible' items in the list (i.e. the size of the
> drop-down)...i have set this property thru the constructor but i want to
> change it programmatically...Any pointers ?? TIA
> 
> Regards,
> Naren
> 

I use 

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(list, NULL, num_items);

scott

-- 
------------------------------------------------------------------------
scott                                            [EMAIL PROTECTED]
------------------------------------------------------------------------

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