Tapping a button on a form causes a ctlSelectEvent.  The ID of the control
is included in the event parameters.

    case ctlSelectEvent:
        
        {
        // Indicates that a control on the page has been selected.
        // This could be a button press or some other action.
        //
        // The ID of the selected control is specified in
        // pEvent->data.ctlEnter.controlID
                        
        switch (pEvent->data.ctlEnter.controlID)
            {
            case MainAboutButton:
                        
                MainFormOnAbout();
                return true;
            }
        }

Jeff
 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Su Duy
Trinh
Sent: Tuesday, December 31, 2002 6:33 PM
To: Palm Developer Forum
Subject: About Events for some standard buttons on Palm handheld?

Hi All,
    I want to ask you about events for some standard buttons on palm
handheld?
    For examples:When we use :switch (eventP->eType)
        {
            case frmOpenEvent:
            .....
            case ?:
        }

    I want that:when user clicks some standard
buttons(Todo/Address/DateBook/Memo button and up/down button) on palm
handheld(below the screen of palm handheld).What is the event to process for
these buttons?
    Thanks in advance,
Trinh.


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




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

Reply via email to