Exemple #1
0
 internal void DestroyBand()
 {
     if (Created)
     {
         User32Dll.SendMessage(_bands.Rebar.RebarHwnd, (int)WindowsMessages.RB_DELETEBAND, (uint)BandIndex, 0U);
         _bands   = null;
         _created = false;
     }
 }
Exemple #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();
        }
Exemple #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();
        }
 public BandEnumerator(BandCollection Bands)
 {
     Collection = Bands;
     Index = -1;
 }
Exemple #5
0
 public BandEnumerator(BandCollection Bands)
 {
     Collection = Bands;
     Index      = -1;
 }
Exemple #6
0
 internal void DestroyBand()
 {
     if(Created)
     {
         User32Dll.SendMessage(_bands.Rebar.RebarHwnd, (int)WindowsMessages.RB_DELETEBAND, (uint)BandIndex, 0U);
         _bands = null;
         _created = false;
     }
 }