I have just create a Toolbar by using CAknToolbar. The Toolbar Items is button, now I want to change the button to Images. How can I do it?
this is my code:
Code:RESOURCE AVKON_TOOLBAR r_test_toolbar { flags = KAknToolbarFixed; items = { TBAR_CTRL { type = EAknCtButton; id = ECommand2; // We are using same set of commands as of used in AppUi:HandleCommandL control = AVKON_BUTTON { flags = KAknButtonTextInsideFrame; states = { AVKON_BUTTON_STATE { txt = "button3"; helptxt = "help text3"; } }; }; }, TBAR_CTRL { type = EAknCtButton; id = ECommand2; control = AVKON_BUTTON { flags = KAknButtonTextInsideFrame; states = { AVKON_BUTTON_STATE { txt = "button2"; helptxt = "help text2"; }/*, AVKON_BUTTON_STATE { txt = "button2"; helptxt = "help text2"; flags = KAknButtonStateHasLatchedFrame; }*/ }; }; }, TBAR_CTRL { type = EAknCtToolbarExtension; control = AVKON_TOOLBAR_EXTENSION { flags = KAknTbExtensionTransparent; items = { TBAR_CTRL { type = EAknCtButton; id = ECommand2; control = AVKON_BUTTON { flags = KAknButtonTextInsideFrame; states = { AVKON_BUTTON_STATE { txt = "b2"; helptxt = "help text2"; } }; }; }, TBAR_CTRL { type = EAknCtButton; id = ECommand2; control = AVKON_BUTTON { flags = KAknButtonTextInsideFrame; states = { AVKON_BUTTON_STATE { txt = "b5"; helptxt = "help text2"; } }; }; }, TBAR_CTRL { type = EAknCtButton; id = ECommand2; control = AVKON_BUTTON { flags = KAknButtonTextInsideFrame; states = { AVKON_BUTTON_STATE { txt = "b2"; helptxt = "help text2"; } }; }; }, TBAR_CTRL { type = EAknCtButton; id = ECommand2; control = AVKON_BUTTON { flags = KAknButtonTextInsideFrame; states = { AVKON_BUTTON_STATE { txt = "b2"; helptxt = "help text2"; } }; }; } }; }; } }; }



