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 Is
: 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 seems to return 0
, this 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
Objet : Re
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 value? Bob
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 the