开发学院手机开发Symbian 开发 Symbian 控件架构之对话框 阅读

Symbian 控件架构之对话框

 2010-04-20 15:44:00 来源:WEB开发网   
核心提示:RESOURCE DIALOG r_waitnote_load_image_note{flags=EAknWaitNoteFlags;items ={DLG_LINE{type = EAknCtNote;id = ENoteDlgCIdOpenImageNote;control = AVKON_NOTE{layout

RESOURCE DIALOG r_waitnote_load_image_note

{

flags=EAknWaitNoteFlags;

items =

{

DLG_LINE

{

type = EAknCtNote;

id = ENoteDlgCIdOpenImageNote;

control = AVKON_NOTE

{

layout = EWaitLayout;

singular_label = "load image ,please wait";

imagefile = "z:\systemdataavkon.mbm";

imageid = EMbmAvkonQgn_note_progress;

imagemask = EMbmAvkonQgn_note_progress_mask;

animation = R_QGN_GRAF_WAIT_BAR_ANIM;

};

}

};

}

在你的代码中加入:

CAknWaitNoteWrapper* waitNoteWrapper = CAknWaitNoteWrapper::NewL();

// Required reinterpret_cast as CAknWaitNoteWrapper inherits privately from CActive

CleanupStack::PushL(reinterpret_cast(waitNoteWrapper));

TInt Result=0;

Result=waitNoteWrapper->ExecuteL(R_WAITNOTE_LOAD_IMAGE_NOTE, *this);

if (!Result ) // this is a blocking call, remember the wrapper isn't a dialog, so it

doesn't need the EEikDialogFlagWait flag to make it blocking

{

// Cancel

}

CleanupStack::PopAndDestroy();

}

上一页  6 7 8 9 10 11 

Tags:Symbian 控件 架构

编辑录入:coldstar [复制链接] [打 印]
[]
  • 好
  • 好的评价 如果觉得好,就请您
      0%(0)
  • 差
  • 差的评价 如果觉得差,就请您
      0%(0)
赞助商链接