Beispiel #1
0
        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);
        }
Beispiel #2
0
        public void makeCustomRenderAndTransparent()
        {
            mIsCustomRenderControl = true;
            xCanvas c = new xCanvas(false, true);

            c.setxBaseControl(this);

            setControl(c);
        }
Beispiel #3
0
        public void makeCustomRender(bool doubleBuffer)
        {
            mIsCustomRenderControl = true;
            xCanvas c = new xCanvas(doubleBuffer);

            c.setxBaseControl(this);

            setControl(c);

            mDoubleBuffer = doubleBuffer;
        }