how to get cursor in a Dialog

Login to reply to this topic.
Mon, 2007-05-14 15:57
Joined: 2007-02-04
Forum posts: 19
hi :
   I write a dialog as such:
RESOURCE DIALOG r_simpledlg_player_name_dialog
   {
//   flags=EGeneralQueryFlags;
    flags = EEikDialogFlagNoDrag |
            EEikDialogFlagWait |
            EEikDialogFlagFillAppClientRect |
            EEikDialogFlagNoTitleBar |
            EEikDialogFlagButtonsRight |
            EEikDialogFlagCbaButtons |
            EEikDialogFlagNoBorder;

   buttons=R_AVKON_SOFTKEYS_OK_CANCEL;
   items=
      {
      DLG_LINE
         {
         type=EEikCtLabel;
         id=ESimpleDlgCIdPlayerName;
         
         control= LABEL
            {
            };
         },   
      DLG_LINE
         {
         type=EAknCtNumericSecretEditor;   //EEikCtSecretEd ;  //EEikCtEdwin;
         id=ESimpleDlgCIdPlayerNameEditor;
         itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys | EEikEdwinLineCursor;
         control= NUMSECRETED   //SECRETED    //EDWIN
            {
   
            };
         },
         
      DLG_LINE
         {
         type=EEikCtLabel;
         id=ESimpleDlgCIdPlayerName2;
         
         control= LABEL
            {
            };
         },         
       DLG_LINE
         {
         type=EAknCtNumericSecretEditor ; //EEikCtEdwin;
         id=ECustomCtrlDlgEdwin1;
         itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
         control=NUMSECRETED    //EDWIN
            {
            
         };
         },
      DLG_LINE
         {
         type=EEikCtLabel;
         id=ESimpleDlgCIdPlayerName3;
         
         control= LABEL
            {
            };
         },      
         
       DLG_LINE
         {
         type=EAknCtNumericSecretEditor ;  //EEikCtEdwin;
         id=ECustomCtrlDlgEdwin2;
         itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
         control= NUMSECRETED    //EDWIN
            {
   
            };
         },
         DLG_LINE
         {
         type=EEikCtLabel;
         id=ESimpleDlgCIdPlayerName4;
         
         control= LABEL
            {
            };
         },
         DLG_LINE
         {
         type=EEikCtLabel;
         id=ESimpleDlgCIdPlayerName5;
         
         control= LABEL
            {
            };
         },
         DLG_LINE
         {
         type=EEikCtLabel;
         id=ESimpleDlgCIdPlayerName6;
         
         control= LABEL
            {
            };
         },
         DLG_LINE
         {
         type=EEikCtLabel;
         id=ESimpleDlgCIdPlayerName7;
         
         control= LABEL
            {
            };
         }
      };   
   }
I use it as such:
TBool CSimpleDlgPlayerNameDialog::RunDlgLD (TDes& aPlayerName,TDes& aPlayerName2,TDes& aPlayerName3,TDes& asecretvalue)
   {
      CSimpleDlgPlayerNameDialog* playerNameDialog = new (ELeave) CSimpleDlgPlayerNameDialog(aPlayerName,aPlayerName2,aPlayerName3,asecretvalue);
       return playerNameDialog->ExecuteLD(R_SIMPLEDLG_PLAYER_NAME_DIALOG);

   }

everything is just ok ,but the dialog doesn't have cursor,
i don't kown why??
and how to get cursor for it ?
  • Login to reply to this topic.