public virtual void setSize(int w, int h) { int nw = mControl.Size.Width; int nh = mControl.Size.Height; if (nw == w && nh == h) { return; } if (mIsCustomRenderControl) { xCanvas c = (xCanvas)getControl(); c.recalcDoubleBuffer(); } if (w != -1) { nw = w; } if (h != -1) { nh = h; } mControl.Size = new Size(nw, nh); }
public void makeCustomRenderAndTransparent() { mIsCustomRenderControl = true; xCanvas c = new xCanvas(false, true); c.setxBaseControl(this); setControl(c); }
public void makeCustomRender(bool doubleBuffer) { mIsCustomRenderControl = true; xCanvas c = new xCanvas(doubleBuffer); c.setxBaseControl(this); setControl(c); mDoubleBuffer = doubleBuffer; }