Example #1
0
 internal void DestroyBand()
 {
     if (Created)
     {
         User32Dll.SendMessage(_bands.Rebar.RebarHwnd, (int)WindowsMessages.RB_DELETEBAND, (uint)BandIndex, 0U);
         _bands   = null;
         _created = false;
     }
 }
Example #2
0
        /*
        public event RebarEventHandler AddBand;
        public event RebarEventHandler RemoveBand;
        */
        public RebarWrapper()
        {
            SetStyle(ControlStyles.StandardClick, true);
            SetStyle(ControlStyles.StandardDoubleClick,true);

            SetStyle(ControlStyles.DoubleBuffer, true);
            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);

            //SetStyle(ControlStyles.ResizeRedraw, true);

            _embossHighlight = SystemColors.ControlLightLight;
            _embossShadow = SystemColors.ControlDarkDark;
            _bands = new BandCollection(this);
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();
        }
Example #3
0
/*
 *              public event RebarEventHandler AddBand;
 *              public event RebarEventHandler RemoveBand;
 */
        public RebarWrapper()
        {
            SetStyle(ControlStyles.StandardClick, true);
            SetStyle(ControlStyles.StandardDoubleClick, true);

            SetStyle(ControlStyles.DoubleBuffer, true);
            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);

            //SetStyle(ControlStyles.ResizeRedraw, true);

            _embossHighlight = SystemColors.ControlLightLight;
            _embossShadow    = SystemColors.ControlDarkDark;
            _bands           = new BandCollection(this);
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();
        }
Example #4
0
 public BandEnumerator(BandCollection Bands)
 {
     Collection = Bands;
     Index = -1;
 }
Example #5
0
 public BandEnumerator(BandCollection Bands)
 {
     Collection = Bands;
     Index      = -1;
 }
Example #6
0
 internal void DestroyBand()
 {
     if(Created)
     {
         User32Dll.SendMessage(_bands.Rebar.RebarHwnd, (int)WindowsMessages.RB_DELETEBAND, (uint)BandIndex, 0U);
         _bands = null;
         _created = false;
     }
 }