Handling dialog

Login to reply to this topic.
Thu, 2006-04-27 08:11
Joined: 2006-04-19
Forum posts: 155
Greetings for the day

  I m trying to develop a demo abt dialogs.I did study Sdk and also refer book .But after that I have an idea abt .rss file .From nowhere I get an idea abt how to handle those.Example in books are not friendly for the beginners.

Can anybody give me an idea or any related link that I can refer and can understand the concept also.


Thanx
Regards.
Isha

"To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution".


Thu, 2006-04-27 10:55
Joined: 2005-02-16
Forum posts: 49
Re: Handling dialog
Hi,

You can create the dialog from your resource and also by deriving your dialog class from the CAknDialog class. Use OkToExitL(TInt aButtonId) method to handle the key press events.

u can see the EMCC examples available from "http://www.newlc.com/Developing-Series-60-Applications.html" link

-- Thanks & Regards
Gurpreet Singh

Thanks n Regards
-- Gurpreet Singh

Thu, 2006-04-27 11:24
Joined: 2006-04-19
Forum posts: 155
Re: Handling dialog
thanx 4 ur response.Im trying to get info abt the same.

Regards.
Isha.

"To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution".

Fri, 2006-04-28 07:42
Joined: 2006-04-19
Forum posts: 155
Re: Handling dialog
Greetings for the day.

  Can anybody tell me abt EEikDlgItemNonFocusing as if I use this in EDWIN then it doesn't accept the text.What is the use of this ? Also I m not clear abt the EDWIN also.

If any one has any info regarding this pls let me know.

Regards.
Isha

"To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution".

Fri, 2006-04-28 07:57
Joined: 2005-02-16
Forum posts: 49
Re: Handling dialog
Hi,

RESOURCE DIALOG r_sms_tel_number_dialog
    {
    title = "Enter Phone Number:";
    buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
    flags = EEikDialogFlagNoDrag |
            EEikDialogFlagFillAppClientRect |
            EEikDialogFlagCbaButtons |
            EEikDialogFlagWait;
    items =
        {
        DLG_LINE
            {
            type = EEikCtEdwin;
            id = ESMSTelNumEditor;
            control = EDWIN
                {
                width = 10;
                maxlength = EMaxTelephoneNumberLength;
                default_input_mode = EAknEditorNumericInputMode;
                };
            }
        };
    }

See the above resource example for using EDWIN in resources.

Refer to uikon.hrh for various dialog flags. Names are self descriptive mostly.

Thanks & Regards
-- Gurpreet Singh

Thanks n Regards
-- Gurpreet Singh

Fri, 2006-04-28 08:07
Joined: 2006-04-19
Forum posts: 155
Re: Handling dialog
Hi

  Thanx 4 ur responses.This is my .rss


RESOURCE DIALOG r_dialogex_dialog
    {

    flags=EEikDialogFlagNoDrag | 
          EEikDialogFlagCbaButtons | EEikDialogFlagModeless;
        buttons=R_AVKON_SOFTKEYS_OK_CANCEL;
        pages = my_pages;
        }

RESOURCE ARRAY my_pages
  {
    items =
      {
          PAGE
          {
           text = "Name";
           lines = my_names_lines;
             },
          PAGE
          {
           text = " Address";
           lines = my_add_lines;
          }
      };
   }
RESOURCE ARRAY my_name_lines
  {
  items =
        {
      DLG_LINE
            {
             id= EConfirmationNoteName;
         type=EEikCtLabel;
            control= LABEL
                {
                 txt = "Enter your name";
                 };
             } ,             
            
       DLG_LINE
            {
             id=EConfirmationNoteNameEditor;
          type=EEikCtEdwin;
             //prompt="My Name";
            control= EDWIN
                {
                  avkon_flags = EAknEditorFlagNoEditIndicators;
            width=10;
                maxlength=20;
               };
         
            }
     
        };

        }
RESOURCE ARRAY my_add_lines
  {
  items =
        {
      DLG_LINE
            {
             id= EConfirmationNoteName1;
         type=EEikCtLabel;
            control= LABEL
                {
                 txt = "Enter your add";
                 };
             } ,             
            
       DLG_LINE
            {
             id=EConfirmationNoteNameEditor1;
          type=EEikCtEdwin;
             //prompt="My Name";
            control= EDWIN
                {
                  avkon_flags = EAknEditiorFlagNoEditIndicators;
            width=10;
                maxlength=20;
               };
         
            }
     
        };

        }


Now it is showing the system error on emulator.Also I did ask this

Can anybody tell me abt EEikDlgItemNonFocusing as if I use this in EDWIN then it doesn't accept the text.What is the use of this ?

Pls tell me abt this also? Also is there any error in the above code ?

Isha

"To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution".

Fri, 2006-04-28 08:34
Joined: 2005-02-16
Forum posts: 49
Re: Handling dialog
Hi,

What System Error is coming. Have u noted down the number. If the emulator is not showing the number then Create a file named ErrRd in Under the path ".......Epoc32\wins\c\system\bootdata". Use wins or winscw whatever SDK u r using.

Check out the error number and find the reason for that from SDK. U will come to know the error.

About EEikDlgItemNonFocusing
I couldn't find the documentation. But from the name i suggest, if u use this flag in Dialog resource then ur dialog will be like read only. It will not get the focus and ultimately no key events. So as u sais no input.

Thanks & Regards
-- Gurpreet Singh


Thanks n Regards
-- Gurpreet Singh

Fri, 2006-04-28 08:45
Joined: 2006-04-19
Forum posts: 155
Re: Handling dialog
can u tell me something more  abt the file ErrRd ?

Thanx.

Isha

"To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution".

Fri, 2006-04-28 08:53
Joined: 2005-02-16
Forum posts: 49
Re: Handling dialog
Hi,

Chech out the link http://www.newlc.com/Display-the-extended-panic-code-in.html for more details

Thanks & Regards
-- Gurpreet Singh

Thanks n Regards
-- Gurpreet Singh

Fri, 2006-04-28 09:03
Joined: 2006-04-19
Forum posts: 155
Re: Handling dialog
Hi

  can u tell me how can I create that file ? As when I download that file from the above link then it becomes corrupted.

Pls help me Also can u tell me the reason why did it hppen and when?

Thanx.
Isha

"To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution".

Fri, 2006-04-28 09:31
Joined: 2004-07-28
Forum posts: 1379
Re: Handling dialog
You don't need to download it from anywhere.  ErrRd is just an empty file.

In Windows, right click in the folder in explorer and do new -> text document.  Then rename the file "New Text Document.txt" to ErrRd and bobs your uncle.

didster

Fri, 2006-04-28 09:51
Joined: 2006-04-19
Forum posts: 155
Re: Handling dialog
This file is already in that specific path still it is giving error.

Regards
Isha

"To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution".

Fri, 2006-04-28 10:04
Joined: 2005-02-16
Forum posts: 49
Re: Handling dialog
Hi,

The file is not for error removal but to know the error code. You will get the message like

System Error - Number

From the number u can get the error details. Why it is coming. What is the reason.

U can find all the error codes on the following link.
http://www.newlc.com/Symbian-OS-Error-Codes.html

Thanks & Regards
-- Gurpreet Singh


Thanks n Regards
-- Gurpreet Singh

Fri, 2006-04-28 11:12
Joined: 2006-04-19
Forum posts: 155
Re: Handling dialog
Hi

  thanx my problem has solved now.

Now I want to ask when we use multipage dialog then how can I switch to another page?Should I have to handle that in HandlecommandL function?

Thanx
Regards
Isha

"To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution".

  • Login to reply to this topic.