Ejemplo n.º 1
0
 //------------------------------------
 public override void Draw(sc2i.drawing.CContextDessinObjetGraphique ctx)
 {
     if (Control != null && Control.Parent != this)
     {
         Control.Parent = this;
         RepositionneChilds();
     }
     base.Draw(ctx);
 }
Ejemplo n.º 2
0
        //-----------------------------------
        protected override void MyDraw(sc2i.drawing.CContextDessinObjetGraphique ctx)
        {
            Graphics  g    = ctx.Graphic;
            Brush     b    = new SolidBrush(BackColor);
            Rectangle rect = new Rectangle(Position, Size);

            g.FillRectangle(b, rect);
            b.Dispose();
            base.MyDraw(ctx);
        }
Ejemplo n.º 3
0
        public override void DrawInterieur(sc2i.drawing.CContextDessinObjetGraphique ctx)
        {
            Brush        br = new SolidBrush(ForeColor);
            StringFormat sf = new StringFormat();

            sf.Alignment     = StringAlignment.Center;
            sf.LineAlignment = StringAlignment.Center;
            ctx.Graphic.DrawString(Text, Font, br, ClientRect, sf);
            br.Dispose();
        }
Ejemplo n.º 4
0
        //-----------------------------------
        protected override void MyDraw(sc2i.drawing.CContextDessinObjetGraphique ctx)
        {
            Graphics  g    = ctx.Graphic;
            Brush     b    = new SolidBrush(BackColor);
            Rectangle rect = new Rectangle(Position, Size);

            g.DrawImage(Resource.Liste_Documents, rect);

            b.Dispose();

            base.MyDraw(ctx);
        }
Ejemplo n.º 5
0
        //-----------------------------------
        protected override void MyDraw(sc2i.drawing.CContextDessinObjetGraphique ctx)
        {
            Graphics  g    = ctx.Graphic;
            Brush     b    = new SolidBrush(BackColor);
            Rectangle rect = new Rectangle(Position, Size);

            g.DrawImage(global::timos.data.Resource.WAN_diagram_web_2, rect);

            b.Dispose();

            base.MyDraw(ctx);
        }
Ejemplo n.º 6
0
        //------------------------------------
        public override void DrawInterieur(sc2i.drawing.CContextDessinObjetGraphique ctx)
        {
            Rectangle rct = new Rectangle(0, 0, Size.Width, Size.Height);
            Brush     br  = new SolidBrush(BackColor);

            ctx.Graphic.FillRectangle(br, rct);
            br.Dispose();
            br  = new SolidBrush(ForeColor);
            rct = new Rectangle(0, 0, Size.Width / 3, Size.Height);
            ctx.Graphic.DrawString(m_strLabel, Font, br, rct);
            br.Dispose();
        }
Ejemplo n.º 7
0
        //-----------------------------------
        protected override void MyDraw(sc2i.drawing.CContextDessinObjetGraphique ctx)
        {
            Graphics  g    = ctx.Graphic;
            Brush     b    = new SolidBrush(BackColor);
            Rectangle rect = new Rectangle(Position, Size);

            //g.DrawImage(global::timos.data.Resource.fond_saisie_operations_V2, rect);
            g.FillRectangle(b, rect);

            b.Dispose();

            base.MyDraw(ctx);
        }
        //-----------------------------------
        protected override void MyDraw(sc2i.drawing.CContextDessinObjetGraphique ctx)
        {
            Graphics  g    = ctx.Graphic;
            Brush     b    = new SolidBrush(BackColor);
            Rectangle rect = new Rectangle(Position, Size);

            if (m_bPanelEnteteVisible)
            {
                g.DrawImage(global::timos.data.Resource.Fond_saisie_des_activites_acteur_v1, rect);
            }
            else
            {
                g.DrawImage(global::timos.data.Resource.Fond_saisie_des_activites_acteur_v2, rect);
            }

            b.Dispose();

            base.MyDraw(ctx);
        }
Ejemplo n.º 9
0
        protected override void MyDraw(sc2i.drawing.CContextDessinObjetGraphique ctx)
        {
            Graphics g          = ctx.Graphic;
            Brush    b          = new SolidBrush(BackColor);
            int      nHeightBtn = Size.Height;

            if (Size.Height > 4 && AutoClickInSeconds > 0)
            {
                nHeightBtn = Size.Height - 4;
            }
            Rectangle rect = new Rectangle(Position, new Size(Size.Width, nHeightBtn));

            g.FillRectangle(b, rect);
            b.Dispose();
            Pen pen = new Pen(ForeColor);

            g.DrawRectangle(pen, rect);
            pen.Dispose();
            pen = new Pen(Color.FromArgb(205, 210, 224), 2);
            rect.Offset(2, 2);
            rect.Width  -= 3;
            rect.Height -= 3;
            g.DrawRectangle(pen, rect);
            pen.Dispose();
            if (Size.Height > 4 && AutoClickInSeconds > 0)
            {
                rect = new Rectangle(rect.Left, rect.Top + Size.Height - 4, Size.Width, 4);
                b    = new SolidBrush(Color.Red);
                g.FillRectangle(b, rect);
                b.Dispose();
                rect       = new Rectangle(rect.Left, rect.Top, Math.Max(Size.Width / 3, 1), 4);
                rect.Width = Size.Width / 3;
                b          = new SolidBrush(Color.Green);
                g.FillRectangle(b, rect);
                b.Dispose();
            }
            base.MyDraw(ctx);
        }
Ejemplo n.º 10
0
 //-----------------------------------
 public override void DrawInterieur(sc2i.drawing.CContextDessinObjetGraphique ctx)
 {
 }
Ejemplo n.º 11
0
 //-----------------------------------
 public override void DrawInterieur(sc2i.drawing.CContextDessinObjetGraphique ctx)
 {
     m_wndLibelle.Draw(ctx);
     m_wndChampCustom.Draw(ctx);
     m_wndValeurAutre.Draw(ctx);
 }