Nevron Forum

Pan and Zoom Control buttons

https://www.nevron.com/Forum/Topic8720.aspx

By Jason Irby - Monday, August 25, 2014


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 - Tuesday, August 26, 2014

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;