コード例 #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();
        }
コード例 #2
0
ファイル: LBKnob.cs プロジェクト: jpcurrie/Motronic
        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();
        }