Pan and Zoom Control buttons


https://www.nevron.com/Forum/Topic8720.aspx
Print Topic | Close Window

By Jason Irby - 10 Years Ago

On the pan and zoom control (ver. 10.6.23.12) the +,- zoom button images have a black border.
My boss doesn't like that.  Is there an easy way to turn that off?

Thanks in advance,
Jason

By Nevron Support - 10 Years Ago
Hi,
You can change the images of the zoom in and zoom out buttons of the pan and zoom control using the following code:

NButton zoomOutButton = (NButton)panAndZoom.Controls[1].Controls[0].Controls[1];
zoomOutButton.Image = zoomOutImage;

NButton zoomInButton = (NButton)panAndZoom.Controls[1].Controls[0].Controls[2];
zoomInButton.Image = zoomInImage;