The main use of Function:
_DMxDrawX::Watermark
Set the control watermark image display, strings separated by commas, divided into: "file name, transparency, x-direction distance, y direction distance, is centered", is centered at 0 for positioning the upper corner, 1 automatically centered by default. center, opacity to 50.
_DMxDrawX::ViewColor
Background color of the control viewport.
js implemented Definitions:
// the watermark // first defined as iShowWatermark to false var = iShowWatermark to false; function ShowWatermark () { // if there is a watermark, the watermark does not display the button click, on the contrary, the anti iShowWatermark = iShowWatermark;! IF (iShowWatermark) { // set controls watermark image display, strings separated by commas, divided into: "from the file name, transparency, x direction, distance // y direction, is centered", is centered positioning the upper corner on behalf of 0, 1 is automatically centered in default to center, transparency 50. the // GetOcxAppPath for the control program in the file path to the disk mxOcx.Watermark = mxOcx.GetOcxAppPath () + "\\ watermark.png" + ", 20,5,5,1"; // background color to white (the user can change the background color as desired) mxOcx.ViewColor = 16777215; } the else { mxOcx.Watermark = ""; // background color to white (the user can change the background color as desired) mxOcx.ViewColor = 0 ; } }