[mapguide-users] Change the Icon image of the tool bar command buttons

SriRam007 binod_tripathy at yahoo.co.in
Thu Apr 15 07:47:12 EDT 2010

Hi everyone,

Is there any way to change the Icon image of the tool bar command buttons

Using GetCommands methods i got all the command list 
and i m doing enable and disable using javascript like below 

var cmd = commands[0];//This is for getting Pan Command
  cmd.enabled=false; //working
  cmd.iconDisabled = "../stdicons/icon_pan_disabled.gif"; //not working
  cmd.icon = "../stdicons/icon_pan.gif";//not working
  cmd.iconDisabled = "../stdicons/icon_pan_disabled.gif";//not working
  cmd.icon = "../stdicons/icon_pan.gif";//not working

But there are two property iconDisabled and icon which i set but still that
image is not changing

Actually here i m setting one image when the command buttons is disable
state and another when i m making it enable.

any help please


View this message in context: http://n2.nabble.com/Change-the-Icon-image-of-the-tool-bar-command-buttons-tp4906988p4906988.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

More information about the mapguide-users mailing list