Exemplo n.º 1
0
		public LBKnob()
		{
			InitializeComponent();
			
			// Set the styles for drawing
			SetStyle(ControlStyles.AllPaintingInWmPaint |
				ControlStyles.ResizeRedraw |
				ControlStyles.DoubleBuffer |
				ControlStyles.SupportsTransparentBackColor,
				true);

			// Transparent background
			this.BackColor = Color.Transparent;
			
			this.defaultRenderer = new LBKnobRenderer();
			this.defaultRenderer.Knob = this;
			
			this.CalculateDimensions();
		}
Exemplo n.º 2
0
        public LBKnob()
        {
            InitializeComponent();

            // Set the styles for drawing
            SetStyle(ControlStyles.AllPaintingInWmPaint |
                     ControlStyles.ResizeRedraw |
                     ControlStyles.DoubleBuffer |
                     ControlStyles.SupportsTransparentBackColor,
                     true);

            // Transparent background
            this.BackColor = Color.Transparent;

            this.defaultRenderer      = new LBKnobRenderer();
            this.defaultRenderer.Knob = this;

            this.CalculateDimensions();
        }