The example would be more complete if it defined also the resource structure (R_TEST_WAITNOTE or the resource with id "1"). In this form compiling and running the code results in a guaranteed panic, BAFL or similar. --Mrtj 11:14, 25 August 2008 (EEST)
Actually the resource could look like this:
RESOURCE DIALOG r_test_waitnote
{
flags = EAknWaitNoteFlags;
buttons = R_AVKON_SOFTKEYS_CANCEL;
items =
{
DLG_LINE
{
type = EAknCtNote;
id = EMyWaitNoteId;
control = AVKON_NOTE
{
layout = EWaitLayout;
singular_label = "Wait...";
plural_label = "";
animation = R_QGN_GRAF_WAIT_BAR_ANIM;
};
}
};
}
You should define EMyWaitNoteId in your hrh. --Mrtj 17:01, 25 August 2008 (EEST)