mycube 에서의 Button Event
 (Cellvic version 2.0 - mycube v100)


/* Event Handler */
bool frmHandleEvent( EventStruct* e )
{
   bool handled = FALSE;

   switch( e->EventType )
   {

     ...

     case BUTTONDOWNEVENT:
       break;

     case BUTTONUPEVENT:
     case BUTTONREPEATEVENT:
       /* cellvic 1.x 버전 */
       /* switch( e->ObjectID ) */
       /* 변경된 아이디 */
       switch( e->EventData.ID )
       {
         case ENTER_BTN:
           break;
         case UP_BTN:
           break;
         case DOWN_BTN:
           break;
         case LEFT_BTN:
           break;
         case RIGHT_BTN:
           break;
         /* 추가된 KEY */
         case JOGUP_BTN:
           break;
         case JOGDOWN_BTN:
           break;
         case JOGENTER_BTN:
           break;
         case HOME_BTN:
           break;
         case BACK_BTN:
           break;
         case MM_BTN:
           break;
         case KEYPAD_1:
           break;
         case KEYPAD_2:
           break;
         case KEYPAD_3:
           break;
         case KEYPAD_4:
           break;
         case KEYPAD_5:
           break;
         case KEYPAD_6:
           break;
         case KEYPAD_7:
           break;
         case KEYPAD_8:
           break;
         case KEYPAD_9:
           break;
         case KEYPAD_0:
           break;
         case KEYPAD_STAR:
           break;
         case KEYPAD_SHARP:
           break;
         case KEYPAD_CALL:
           break;
         case KEYPAD_END:
           break;
         case KEYPAD_CANCEL:
           break;
         case KEYPAD_MENU:
           break;
         case KEYPAD_ALL:
           break;
       }
       break;

     ...

   }
   return handled;
}



Copyright © 1998-2006 PDAProgramming.com All rights reserved.