07-14-2011 04:15 AM
hi all,
In my apps on bb platform i got used to adding my custom objects in a list and implementing the display of these objects myself, using the objects properties as displayed text and images. It was then easy to retrieve these objects on selection, etc.
I dont see this in the list examples i have been looking at for pb, I see an option to set the label of the inserted list element and also set an icon.
How can i add my object to the list and display say the name property of this object?
Thanks in advance.
Solved! Go to Solution.
07-14-2011 04:27 AM
07-14-2011 04:35 AM
Hi PP.
these links are for smartphone, im am developing and posting on tablet sdk.
Regards
07-14-2011 07:52 AM
07-14-2011 12:23 PM
Hi John,
Yes I am using the qnx list. If I wanted to add the object in this list, how would i access this object in draw() for example in the cell renderer?
Another question which is very important to me is can the playbook lists have variable row heights?
Regards
07-14-2011 12:49 PM
07-14-2011 04:51 PM
John, thanks again for your help.
I have implemented my own list using container and scroll pane. This is going to be a chat window, i have done similar on the smartphone platform.
I am concerned when you say qnx is not so good at hanling large amount of items, is there any other approach which will be better for large items?
Otherwise, i am using the following to auto scrol my custom list, however, when i try to manually scroll it gets messed up and goes back to the start.
if(mainContainer.numChildren > 4)
{
if(scroll.scrollY == 0)
{
scroll.scrollY = 250;
}
else
{
scroll.scrollY = scroll.scrollY + 60;
}
}
Am i missing something for auto scroll to keep items in view?
07-15-2011 09:29 AM
07-15-2011 10:58 AM
Thanks John,
I think im getting the hang of lists now, i will do some testing with custom implemented lists containing large amount of items and act accordingly.
Regards