Esempio n. 1
0
        /// <summary>
        /// Detach from events.
        /// </summary>
        /// <param name="control">The control, which should be a CrystalTrackBar object.</param>
        protected override void OnUnsubscribeControlEvents(Control control)
        {
            base.OnUnsubscribeControlEvents(control);
            CrystalTrackBar trackBar = control as CrystalTrackBar;

            trackBar.ValueChanged -= new EventHandler(trackBar_ValueChanged);
        }
Esempio n. 2
0
        /// <summary>
        /// Create the actual control, note this is static so it can be called from the
        /// constructor.
        ///
        /// </summary>
        /// <returns></returns>
        private static Control CreateControlInstance()
        {
            CrystalTrackBar t = new CrystalTrackBar();

            t.AutoSize        = false;
            t.Size            = new Size(_defaultWidth, _defaultHeight);
            t.TickStyle       = TickStyle.None;
            t.TransparentMode = true;
            // Add other initialization code here.
            return(t);
        }
Esempio n. 3
0
 /// <summary>
 /// Create the actual control, note this is static so it can be called from the
 /// constructor.
 /// 
 /// </summary>
 /// <returns></returns>
 private static Control CreateControlInstance()
 {
     CrystalTrackBar t = new CrystalTrackBar();
     t.AutoSize = false;
     t.Size = new Size(_defaultWidth, _defaultHeight);
     t.TickStyle = TickStyle.None;
     t.TransparentMode = true;
     // Add other initialization code here.
     return t;
 }