Since everyone is talking about my syntax
and not about what I want to know

I'll change my question a little bit...

How would you do this...

I want to insert into a string the caption of the button that has been
pressed
now insert code in this...

static Boolean MainFormHandleEvent(EventPtr eventP)
{

    Boolean handled = false;
    FormPtr frmP;

 switch (eventP->eType)
 {
  case ctlSelectEvent:
  {
   switch(eventP->data.ctlEnter.controlID)
   {
    case MainBtnStarButton:
    break;

    case MainBtnToeButton:
     break;

    case MainBtn0Button:
     break;

    case MainBtn1Button:
     break;

    case MainBtn2Button:
     break;

    case MainBtn3Button:
     break;
   }

   handled = true;
   break;
  }

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

  case frmOpenEvent:
   frmP = FrmGetActiveForm();
   MainFormInit( frmP);
   FrmDrawForm ( frmP);
   handled = true;
   break;

  default:
   break;

  }
 return handled;
}

Where MainBtn""Button are numpad like button
Star is *
and Toe is for the # button


--
Patrick Ouellet, Programmeur/Analyste
Département: Recherche & Développement
Les Entreprises Microtec Inc.
4780 rue St-Félix, St-Augustin, Qc, G3A-2J9
(418) 864-7644 poste 130
[EMAIL PROTECTED]
http://www.microtecsecurite.com/



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

Reply via email to