you should better use the icon-config-property of ExtJS to set the icon
for a button in a toolbar:

|{
     xtype:  'button',
     cls:  'x-btn-text-icon',
     icon:  'resources/images/main/home-button.png',
     scale:  'large',
     text:  'Home'
}|


so the toggle-mechanism should work.
Maybe you take a closer look here:

docs.sencha.com/ext-js/4-1/#!/api/Ext.button.Button

......

I found that adding allowDepress : true to the action gives a nice effect.

Jim



--
James B. White
Cary, NC
H: 919-380-9615
M: 919-698-1765
White Coding and Maps <http://whitecodingandmaps.com/>
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users

Reply via email to