[mapguide-users] How to change the Image of Zoom in, Zoom Out and Pan button

SriRam007 binod_tripathy at yahoo.co.in
Tue Apr 6 08:14:58 EDT 2010


Hi everyone,

Is there any way to change the Icon image of the tool bar 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];
if(condition)
{
  cmd.enabled=false; 
  cmd.iconDisabled = "../stdicons/icon_pan_disabled.gif"; //not working
  cmd.icon = "../stdicons/icon_pan.gif";//not working
}
else
{
  cmd.enabled=true;
  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

any help please

thanks





-- 
View this message in context: http://n2.nabble.com/How-to-change-the-Image-of-Zoom-in-Zoom-Out-and-Pan-button-tp4858654p4858654.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list