actually wat i want is that i want to display the list of name no my home page means the 1 page of my application i use the string list. is it the string list is use only with  the menu bar then how do display the name bcz i m new programmer in palmos application actually i try SysStringByIndex by i dont know how it works so will please write the  code 4 me that make my work easy i m sending u my code in which i use LstdrawList.

static

Boolean MainFormHandleEvent(EventPtr eventP)

{

Boolean handled =

false;

FormType *frmP;

//ListType *list=GetObjectPtr(ListViews);

//int numChoices = 0;

switch (eventP->eType)

{

case ctlSelectEvent:

switch (eventP->data.ctlSelect.controlID)

{

case MainTestButton:

handled=true;

break;

default:

break;

}

break;

case menuEvent:

return MainFormDoCommand(eventP->data.menu.itemID);

case frmOpenEvent:

frmP = FrmGetActiveForm();

MainFormInit( frmP);

//LstMakeItemVisible(list,2);

//LstEraseList(list);

//LstDrawList(list);

//LstSetDrawFunction(list,);

//numChoices=sizeof(ListElements)/sizeof(ListElements[0]);

//LstSetListChoices(list,NULL,numChoices);

FrmDrawForm ( frmP);

handled =

true;

break;

case frmUpdateEvent:

break;

default:

break;

}

return handled;

}


thanks
 
On 7/30/06, Luc Le Blanc <[EMAIL PROTECTED]> wrote:
durgeshtrivedi wrote:

> How do i make visible my string list on the frm is their any
> who can write the code for me.bcz i m a new user i give the
> prefix name of string list as listview on thee but i dont
> know how do i make it visible on the form.


It is not clear what you want to do exactly. Display a string list as a series of strings?  Use the SysStringByIndex API. You want to fill a list with these strings? Use the LstSetListChoices API with a list draw callback function. Lost? Get a good PalmOS programming book, like the PalmOS Programming Bible by Lennon Foster; it's worth every penny.


--
Luc Le Blanc
--
For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

-- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to