Boolean DemoFormHandleEvent(EventPtr eventP)
{
   Boolean handled = false;
   FormPtr frmP;

 switch (eventP->eType)
  {
  case menuEvent:
       handled = DemoFormDoCommand(eventP->data.menu.itemID);
   break;

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

  case ctlSelectEvent: //process control buttons
       switch (eventP->data.ctlSelect.controlID){
            case DemoOKButton:
                 FrmGotoForm(ViewDataForm); //ViewData
                 handled = true;
                 break;

            default:
                 break;
   }
   break;

  case nilEvent:   /* used for polling */
       handled = true;
   break;

  default:
       break;

  }

 return handled;

}//DemoFormHandleEvent


"Vineet Gupta" <[EMAIL PROTECTED]> wrote in message
news:74614@palm-dev-forum...
>
> hi ,
>
> can u send me a sample code for a button event. where in the code we write
> the the button event code.
>
> thanks in advance
>
> vineet
> ----- Original Message -----
> From: "Paul Groschen" <[EMAIL PROTECTED]>
> Newsgroups: palm-dev-forum
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Sent: Friday, January 25, 2002 4:22 AM
> Subject: Redrawing of Tables
>
>
> > I have a simple problem that is frustrating. I have a form with a table
> and
> > scroll bar on it  that works fine. The table is not editable. I added a
> > button to the form and whenever I process the button
> > (case ctlSelectEvent: in my formHandleEvent)  the table disappears.
> >
> > The only way to see the table again is by scrolling the scroll bar.
> > Redrawing the table and setting the columns usable has no effect.
> > How can I display the table again?
> >
> > Thanks
> > Paul
> >
> >
> >
> >
> > --
> > For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/tech/support/forums/
>
>
>



-- 
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