Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Series60中如何动态改变按钮或关闭它们

From Wiki
Jump to: navigation, search
Article Metadata

文章
User:Jiangbaolan 在 02 Apr 2009 创建
最后由 hamishwillee 在 15 Dec 2011 编辑

你可以通过如下方式来改变按钮: 定义一个资源

Code: RESOURCE CBA r_my_cba

  {   buttons =
     {
     CBA_BUTTON { id = EMyButton1; txt = "Button1"; },
     CBA_BUTTON { id = EMyButton2; txt = "Button2"; }
     };  
}在代码中调用SetCommandSetL()方法:

iAvkonAppUi->Cba()->SetCommandSetL(R_MY_CBA); iAvkonAppUi->Cba()->DrawNow(); 如果需要关闭按钮,可以使用系统预定义的R_AVKON_SOFTKEYS_EMPTY资源

This page was last modified on 15 December 2011, at 06:35.
178 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×