Exemplo n.º 1
0
        public GroupPanel()
        {
            m_NCPainter = new NonClientPaintHandler(this, eScrollBarSkin.Optimized);
            m_NCPainter.BeforeBorderPaint += new CustomNCPaintEventHandler(NCBeforeBorderPaint);
            m_NCPainter.AfterBorderPaint += new CustomNCPaintEventHandler(NCAfterBorderPaint);

            this.SetStyle(ControlStyles.StandardDoubleClick, true);
        }
Exemplo n.º 2
0
 public ListViewEx()
     : base()
 {
     m_BorderStyle = new ElementStyle();
     m_BorderStyle.Class = ElementStyleClassKeys.ListViewBorderKey;
     m_BorderStyle.StyleChanged += new EventHandler(BorderStyle_StyleChanged);
     m_NCPainter = new NonClientPaintHandler(this, eScrollBarSkin.Optimized);
     this.OwnerDraw = true;
     this.DoubleBuffered = true;
     this.BorderStyle = BorderStyle.None;
     StyleManager.Register(this);
 }
Exemplo n.º 3
0
        public TextBoxX()
        {
#if FRAMEWORK20
            _ButtonCustom = new InputButtonSettings(this);
            _ButtonCustom2 = new InputButtonSettings(this);
            CreateButtonGroup();
#endif

            m_BorderStyle = new ElementStyle();
            m_BorderStyle.StyleChanged += new EventHandler(BorderStyle_StyleChanged);
            m_NCPainter = new NonClientPaintHandler(this, eScrollBarSkin.Optimized);
            base.BorderStyle = BorderStyle.None;
            this.AutoSize = false;
            StyleManager.Register(this);
        }
Exemplo n.º 4
0
        /// <summary>
		///     Default constructor.
		/// </summary>
		public PanelEx()
		{
			if(!ColorFunctions.ColorsLoaded)
			{
				NativeFunctions.RefreshSettings();
				NativeFunctions.OnDisplayChange();
				ColorFunctions.LoadColors();
			}

			this.SetStyle(ControlStyles.UserPaint,true);
			this.SetStyle(ControlStyles.AllPaintingInWmPaint,true);
			this.SetStyle(ControlStyles.Opaque,true);
			this.SetStyle(ControlStyles.ResizeRedraw,true);
			this.SetStyle(DisplayHelp.DoubleBufferFlag,true);
			this.SetStyle(ControlStyles.SupportsTransparentBackColor,true);
			this.SetStyle(ControlStyles.ContainerControl,true);

			this.SetStyle(ControlStyles.Selectable,true);
			//this.SetStyle(ControlStyles.StandardDoubleClick,false);

			m_ColorScheme=new ColorScheme(m_ColorSchemeStyle);

			ResetStyle();
			ResetStyleMouseOver();
			ResetStyleMouseDown();

            m_NCPainter = new Controls.NonClientPaintHandler(this, eScrollBarSkin.Optimized);

            this.BackColor=Color.Transparent;

            StyleManager.Register(this);
		}