Wait Dialog
| Tue, 2003-11-04 11:41 | |
|
Does someone know HOW to create a wait dialog ![]() I have done this. First, I put this in my rss file.. RESOURCE DIALOG r_aknexnote_wait_note_softkey_cancel { flags = EAknWaitNoteFlags; buttons = R_AVKON_SOFTKEYS_CANCEL; items = { DLG_LINE { type = EAknCtNote; id = EAknExNoteCtrlIdWaitNote; control= AVKON_NOTE { layout = EWaitLayout; singular_label = "wait"; imagefile = AVKON_BMPFILE_NAME; imageid = EMbmAvkonQgn_note_voice; animation = R_QGN_GRAF_WAIT_BAR_ANIM; }; } I copied it from note example coming with Nokia SDK, so I don't know if it is correct or not... Then, I put this code in my application (cpp file): #include <aknwaitdialog.h> CAknWaitDialog* waitDialog = new (ELeave) CAknWaitDialog(NULL, ETrue); waitDialog->ExecuteLD(R_AVKON_SOFTKEYS_CANCEL); When I compile.. Everything is ok, when I run it on the emulator it crash telling me "BAFL 15". Let me know something please... Screener_it |
|







Forum posts: 93
waitDialog->PrepareLC (r_aknexnote_wait_note_softkey_cancel)
waitDialog->RunLD();
Good Luck
Forum posts: 73
Now it's:
\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|
CAknWaitDialog* waitDialog;
waitDialog = new(ELeave)CAknWaitDialog( (REINTERPRET_CAST(CEikDialog**,&waitDialog)));
waitDialog->PrepareLC (r_aknexnote_wait_note_softkey_cancel);
waitDialog->RunLD();
\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|
When I compile It told me:
error C2065: 'r_aknexnote_wait_note_softkey_cancel' : undeclared identifier
\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|
If I replace
r_aknexnote_wait_note_softkey_cancel
with
R_AVKON_SOFTKEYS_CANCEL
the building went ok, but when I try to run it... Crash with same error !!!! BAFL 15.
So.. If anyone has another solution.. You're welcome !!!
Screener_it
---cheers---
Forum posts: 104
waitDialog = new(ELeave)CAknWaitDialog( (REINTERPRET_CAST(CEikDialog**,&waitDialog)));
waitDialog->PrepareLC (r_aknexnote_wait_note_softkey_cancel);
waitDialog->RunLD();
maybe the reason why the compiler does recognise R_AXNEXNOTE_WAIT_NOTE_SOFTKEY_CANCEL is that your resource file is not included in your code..
i think u just need to include the .RSS file in your code..
i.e.
#include<yourRSSfile.RSG> in your .cpp file...
and the resource it must be in ALL CAPS...
waitDialog->PrepareLC(R_AXNEXNOTE_WAIT_NOTE_SOFTKEY_CANCEL)--correct
waitDialog->PrepareLC (r_aknexnote_wait_note_softkey_cancel) --- this is wrong
"its all right, the gun isn't loaded."
May i ask how if the wait dialog is the dialog used when one is waiting for a service discovery to complete? If not, which dialog is usually used?
I'm have successfully implemented RHostResolver, but i'm not sure how to inform the dialog that the Rhostresolver process has ended, and tell the dialog to disappear. Can someone help me out?
The note example only shows how to create one, and cancel it manually using the cancel button.
Thanks
- aDvo -
Forum posts: 1
i used the same wait dialog code from the Note example,
put it in a function ShowNote():
CAknWaitDialog* waitDialog =
new (ELeave) CAknWaitDialog(NULL, ETrue);
waitDialog->ExecuteLD(R_MY_NOTE_RESOURCE);
RESOURCE DIALOG r_my_note_resource
{
flags = EAknWaitNoteFlags;
buttons = R_AVKON_SOFTKEYS_EMPTY;
items =
{
DLG_LINE
{
type = EAknCtNote;
id = EAknExNoteCtrlIdWaitNote;
control= AVKON_NOTE
{
layout = EWaitLayout;
singular_label = qtn_aknexnote_wait_prompt;
//plural_label = "";
//didn't include any images
};
}
};
}
I've declared everything in the resource code. When i call the Shownote() function i get the error. I've already included my rsg file. Any idea?
Forum posts: 58
ASY
www.fxuiq.com
ASY
Thanks! This helped.