Handling dialog
| Thu, 2006-04-27 08:11 | |
|
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". |
|






Forum posts: 49
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
Forum posts: 155
Regards.
Isha.
"To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution".
Forum posts: 155
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".
Forum posts: 49
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
Forum posts: 155
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".
Forum posts: 49
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
Forum posts: 155
Thanx.
Isha
"To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution".
Forum posts: 49
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
Forum posts: 155
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".
Forum posts: 1379
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
Forum posts: 155
Regards
Isha
"To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution".
Forum posts: 49
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
Forum posts: 155
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".