Wait Dialog

Login to reply to this topic.
Tue, 2003-11-04 11:41
Joined: 2003-10-02
Forum posts: 73
Does someone know HOW to create a wait dialog Huh

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


Tue, 2003-11-04 12:49
Joined: 2003-08-11
Forum posts: 93
Wait Dialog
Well I am not sure if this would help you or if it is a mistake from your side but I will try my best first. In the Function line ExecuteLD(....) you are passing the wrong name of the resource and therefore the it may cause and error. Second try this and see if it works
Code:
waitDialog= new(ELeave)CAknWaitDialog( (REINTERPRET_CAST(CEikDialog**,&waitDialog)));
waitDialog->PrepareLC (r_aknexnote_wait_note_softkey_cancel)
waitDialog->RunLD();
Good Luck
Tue, 2003-11-04 14:09
Joined: 2003-10-02
Forum posts: 73
Nothing Work...
I changed my cpp's code as you told me to do..
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

Tue, 2003-11-04 16:26
Anonymous (not verified)
Forum posts: 2043
Wait Dialog
Try recompile all, check that resource file is compiled too... You must use the same resource name in your PrepareLC method as you defined in the rss file, just as BlackAngel mentioned...
---cheers---
Wed, 2003-11-05 07:22
Joined: 2003-06-12
Forum posts: 104
Wait Dialog
BlackAngel's code is the correct to make the wait dialog appear...

Code:
CAknWaitDialog* waitDialog;
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."

Sun, 2003-11-30 19:58
Anonymous (not verified)
Forum posts: 2043
Wait Dialog
Hi ppl,

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 -
Sun, 2003-11-30 20:43
Joined: 2003-11-30
Forum posts: 1
Wait Dialog
Anyone know what EIKON-DIALOG 3 error is?
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?
Mon, 2005-01-10 02:31
Joined: 2004-08-18
Forum posts: 58
Wait Dialog
EIKON-DIALOG 3 Panic seems to be related to the control ID being 0.  I know this is like a year older response but if someone might run into the same problem this might help.  Check your dialog control ID value.

ASY

Wed, 2005-01-26 10:22
Drew (not verified)
Forum posts: 2043
Wait Dialog
Quote from: asy
EIKON-DIALOG 3 Panic seems to be related to the control ID being 0.  I know this is like a year older response but if someone might run into the same problem this might help.  Check your dialog control ID value.

ASY

Thanks! This helped.
  • Login to reply to this topic.