Groups > Palm OS > Palm developers forum > Re: LstSetListChoices limit?




LstSetListChoices limit?

LstSetListChoices limit?
Fri, 16 May 2008 02:46:01 -070
Hello,

am trying to get a simple database listing.

Is there a limit to the number items that can be passed to LstSetListChoices.

Many thanks
regards Darren
Post Reply
Re: LstSetListChoices limit?
Fri, 16 May 2008 10:43:34 -050
My two cents.

You can work around this, like using an array or list of selected items, 
this list should contain the index of the element that has selection on, 
so you only work the list with the displayed items, and update the 
display checking against the list of select items. So you can add or 
delete items on this list when you select or unselect them.

Eduardo Orea.

Darren escribió:
> Hello,
> 
> am trying to get a simple database listing.
> 
> Is there a limit to the number items that can be passed to
LstSetListChoices.
> 
> Many thanks
> regards Darren
> 
Post Reply
Re: LstSetListChoices limit?
Fri, 16 May 2008 13:37:45 +020
32767, because all functions which work with list wotk with Int16
+i noticed that on some devices if you have many items and you scroll to 
position more then 2800 or something near it list will start to behave bad - it

will draw items and then delete them all so items will be visible on screen only

during scrolling

Darren wrote:
> Hello,
> 
> am trying to get a simple database listing.
> 
> Is there a limit to the number items that can be passed to
LstSetListChoices.
> 
> Many thanks
> regards Darren
> 
Post Reply
Re: LstSetListChoices limit?
Fri, 16 May 2008 18:36:37 -050
Michal Seliga.

Ok, I respect that the path seems to be complicated, but it is not right 
to make the assumption that it's complicated for everyone. Darren could 
find it simple or complicated and may or may not use it, it's up to him 
to decide that on behalf of what he wants to do.

My opinion it's just for Darren to know about other options, the "simple 
database listing" it's just an appreciation.

You already gave him IMHO the most direct answer to his question, I just 
tried to give him another perspective.

Regards.

Eduardo Orea.


Michal Seliga escribió:
> with your approach there would be problem with scrolling, search based 
> on typed character and such things. all this could be solved, but it 
> wouldn't be simple
> 
> for such cases it may be better to use table+scrollbar, or custom 
> control based on gadget.
> 
> Eduardo Orea wrote:
>> My two cents.
>>
>> You can work around this, like using an array or list of selected 
>> items, this list should contain the index of the element that has 
>> selection on, so you only work the list with the displayed items, and 
>> update the display checking against the list of select items. So you 
>> can add or delete items on this list when you select or unselect them.
>>
>> Eduardo Orea.
>>
>> Darren escribió:
>>> Hello,
>>>
>>> am trying to get a simple database listing.
>>>
>>> Is there a limit to the number items that can be passed to 
>>> LstSetListChoices.
>>>
>>> Many thanks
>>> regards Darren
>>>
>>
> 
Post Reply
Re: LstSetListChoices limit?
Fri, 16 May 2008 23:50:40 +020
with your approach there would be problem with scrolling, search based on typed

character and such things. all this could be solved, but it wouldn't be simple

for such cases it may be better to use table+scrollbar, or custom control based

on gadget.

Eduardo Orea wrote:
> My two cents.
> 
> You can work around this, like using an array or list of selected items, 
> this list should contain the index of the element that has selection on, 
> so you only work the list with the displayed items, and update the 
> display checking against the list of select items. So you can add or 
> delete items on this list when you select or unselect them.
> 
> Eduardo Orea.
> 
> Darren escribió:
>> Hello,
>>
>> am trying to get a simple database listing.
>>
>> Is there a limit to the number items that can be passed to 
>> LstSetListChoices.
>>
>> Many thanks
>> regards Darren
>>
> 
Post Reply
about | contact