×
Namespaces

Variants
Actions

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

From Nokia Developer 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 09:35.
100 page views in the last 30 days.
×