コード例 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="e"></param>
        protected override void OnRenderSkinFormControlBox(SkinFormControlBoxRenderEventArgs e)
        {
            SkinForm            form  = e.Form;
            Graphics            g     = e.Graphics;
            Rectangle           rect  = e.ClipRectangle;
            FormControlBoxState state = e.ControlBoxState;
            bool Active = e.Active;

            bool minimizeBox = form.ControlBox && form.MinimizeBox;
            bool maximizeBox = form.ControlBox && form.MaximizeBox;

            switch (e.ControlBoxStyle)
            {
            case FormControlBoxStyle.Close:
                RenderSkinFormCloseBoxInternal(
                    g,
                    rect,
                    state,
                    Active,
                    minimizeBox,
                    maximizeBox);
                break;

            case FormControlBoxStyle.Maximize:
                RenderSkinFormMaximizeBoxInternal(
                    g,
                    rect,
                    state,
                    Active,
                    minimizeBox,
                    form.WindowState == FormWindowState.Maximized);
                break;

            case FormControlBoxStyle.Minimize:
                RenderSkinFormMinimizeBoxInternal(
                    g,
                    rect,
                    state,
                    Active);
                break;
            }
        }
コード例 #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="SForm"></param>
 public override void InitSkinForm(SkinForm SForm)
 {
     SForm.BackColor = ColorTable.BaseColor;
 }
コード例 #3
0
 public abstract Region CreateRegion(SkinForm SForm);
コード例 #4
0
 public abstract void InitSkinForm(SkinForm SForm);
コード例 #5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="Owner"></param>
 public FormControlBoxManager(SkinForm Owner)
 {
     this._Owner = Owner;
 }