Re: LstGetVisibleItems ?

2005-01-19 Thread Vladimir Lozhnikov
Int16 wVisibleItems = LstGetNumberOfItems( ... ) < LstGetVisibleItems( ...) ? LstGetNumberOfItems( ... ) : LstGetVisibleItems( ...); CA> I use LstGetVisibleItems to know how many visible items was defined with a CA> given list, CA> but this function seems to return 0 if the list is empty. CA>

RE: LstGetVisibleItems ?

2005-01-19 Thread Chris Apers
Objet : Re: LstGetVisibleItems ? Int16 wVisibleItems = LstGetNumberOfItems( ... ) < LstGetVisibleItems( ..) ? LstGetNumberOfItems( ... ) : LstGetVisibleItems( ..); CA> I use LstGetVisibleItems to know how many visible items was defined with a CA> given list, CA> but this function

Re: LstGetVisibleItems ?

2005-01-19 Thread Robert Moynihan
will give me 0 again What i need is the NumberOfItems defined at form creation Even if the list is empty. -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Vladimir Lozhnikov Envoyé : mercredi 19 janvier 2005 13:14 À : Palm Developer Forum

RE: LstGetVisibleItems ?

2005-01-19 Thread Chris Apers
Palm Developer Forum Objet : Re: LstGetVisibleItems ? Chris, off the top of my head, I thought that LstGetVisibleItems returned the size of the list object on the screen, regardless of how many items are actually in the list. Are you sure you haven't done a LstSetHeight to overwrite the original v

Re: LstGetVisibleItems returns wrong value???

2003-06-08 Thread Philip Sheard
> What might cause LstGetVisibleItems to return a value of 1 less than the > correct value? My PiLRC source for the list item says VISIBLEITEMS 5; when > I call the function during initialization of the form, the value returned is > 4. Another list on the same form, with 6 visible items, returns