Hi.

I'm an undergrad CS major and have very recently become interested in
developing Palm apps using CodeWarrior

Here is my question:

I want to start incorporating list controls into my apps. For starters I
want to incorporate a list without programmatic customization. According
to some of the docs I've read, this can be done by inserting a list
control into a form from the "controls" catalog, and then creating a
contingency for a "lstSelectEvent" in an event handler function. I've
done all of this. My question is: how do I specify the list items? In
the Layout Properties in Constructor, there is something which says
"listitems", but you cannot type anything next to that for some reason.
I then created a stinglist containing the items I wanted on the list,
and then indicated that this is the list I wanted in the following line:
                        list = (ListType*)FrmGetObjectPtr(frmP,
FrmGetObjectIndex(frmP,MainMyList));

                                 where, MainMyList is the name of the string
list.


None of this has worked i.e. I get what looks like a blank list on by app,
which
doesn't have the items I want and doesn't even show a scroller.

I'd really appreciate if someone could help me work around this problem.
mailto: [EMAIL PROTECTED]

Thanks,

Axe.

p.s. In case it would be usefull, here is my code for dealing with a
lstSelectEvent

                        case lstSelectEvent:
                        frmP = FrmGetActiveForm();
                        list = (ListType*)FrmGetObjectPtr(frmP,
                        FrmGetObjectIndex(frmP,Two_MyList1List));
                        LstSetSelection(list, 2);
                        LstMakeItemVisible(list,2);
                        handled = true;
                        break;



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to