Exemplo n.º 1
0
        public Form()
        {
            this.m_bNoScalingOnSetRect = true;
            Name = "Form";

            m_frame        = new Frame();
            m_frame.Parent = this;
            m_frame.Ink    = RasterOps.ROPs.D3DTest2;
            //MemberSpriteBitmap mb = (MemberSpriteBitmap)m_endogine.CastLib.GetOrCreate("Button2Up");
            //m_frame.Member = mb;
            m_frame.MemberName  = "Button2Up";
            m_frame.LocZ        = 0;
            m_frame.MouseActive = true;             //as to not let mouse clicks fall through to sprites behind

            m_dragbar        = new Dragbar();
            m_dragbar.LocZ   = 1;
            m_dragbar.Parent = this;

            m_resizeCorner            = new Sprite();
            m_resizeCorner.Parent     = this;
            m_resizeCorner.LocZ       = 1;
            m_resizeCorner.Name       = "ResizeCorner";
            m_resizeCorner.MemberName = "Button2Up";
            //m_resizeCorner.Member = mb;
            m_resizeCorner.Ink         = RasterOps.ROPs.BgTransparent;
            m_resizeCorner.SourceRect  = new ERectangle(0, 0, 15, 15);
            m_resizeCorner.MouseActive = true;
            m_resizeCorner.MouseEvent += new MouseEventDelegate(m_resizeCorner_MouseEvent);
        }
Exemplo n.º 2
0
        public Form()
        {
            this.m_bNoScalingOnSetRect = true;
            Name = "Form";

            m_frame = new Frame();
            m_frame.Parent = this;
            m_frame.Ink = RasterOps.ROPs.D3DTest2;
            //MemberSpriteBitmap mb = (MemberSpriteBitmap)m_endogine.CastLib.GetOrCreate("Button2Up");
            //m_frame.Member = mb;
            m_frame.MemberName = "Button2Up";
            m_frame.LocZ = 0;
            m_frame.MouseActive = true; //as to not let mouse clicks fall through to sprites behind

            m_dragbar = new Dragbar();
            m_dragbar.LocZ = 1;
            m_dragbar.Parent = this;

            m_resizeCorner = new Sprite();
            m_resizeCorner.Parent = this;
            m_resizeCorner.LocZ = 1;
            m_resizeCorner.Name = "ResizeCorner";
            m_resizeCorner.MemberName = "Button2Up";
            //m_resizeCorner.Member = mb;
            m_resizeCorner.Ink = RasterOps.ROPs.BgTransparent;
            m_resizeCorner.SourceRect = new ERectangle(0,0,15,15);
            m_resizeCorner.MouseActive = true;
            m_resizeCorner.MouseEvent+=new MouseEventDelegate(m_resizeCorner_MouseEvent);
        }