Dear All,
I am using a dynamic LIST which prepares a list of SHORTCUT macros in the
Graffiti ShortCuts database. The list is prepared, and in the
MainFormInit() function, I am calling the functions to get the shortcut
macros displayed .
But I am getting an empty list BOX, without any list items init. If I click
into to the box, each items appear in the list, one for each pendownevent().
Where and What am I doing wrong? Help please.
My Source Code:
=============
static void MainFormInit(FormPtr frmP)
{
Err err,err2;
UInt16 indx;
UInt16 len,i=0;
ListPtr lst;
Char *check4=NULL;
// Prepare to setup the contents of the list for the main form.
// Get a pointer to the list object.
frmP = FrmGetActiveForm();
lst = FrmGetObjectPtr(frmP, FrmGetObjectIndex(frmP,
MainShortCutList));
||
||
||
||
LstDrawList(lst);
LstSetListChoices(lst, items2, totitems);
// LstDrawList(lst);
// FrmDrawForm (frmP);
Can anyone please help me on this. Thanking you all in advance. Regards.
Yuva
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/