prasadb :
  below is the form handle content. please check it for me,thanks.
 frmP=FrmGetActiveForm();

   switch(eventP->eType)
   {
     case frmOpenEvent:

        InitCheckInfoForm();
        FrmDrawForm(frmP);
        handled=true;
        break;

      case ctlSelectEvent:
         if(eventP->data.ctlSelect.controlID==CheckInfoNewCheckButton)
           {
             AddNewCheckInfo();
             FrmEraseForm(frmP);
             FrmGotoForm(DataForm);
              handled=true;
             break;
           }


      case lstSelectEvent:
               theSelection = eventP->data.lstSelect.selection;
               SelectedItem=theSelection;//get current selected item

               CurrentCheckId=CheckArray[SelectedItem].CheckId;

               theText = LstGetSelectionText(eventP->data.lstSelect.pList,
                      theSelection);//get the item text
              //must add code to get the currentindex
           FrmEraseForm(frmP);
           FrmGotoForm(DataForm);
           handled=true;
           break;
     default:
        break;


   }
  return handled;



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

Reply via email to