Exemplo n.º 1
0
        public LogPannel()
        {
            this.logList = new DSkin.Controls.DSkinListBox();

            ((System.ComponentModel.ISupportInitialize)(this.logList)).BeginInit();

            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TabrisWinform));

            this.Dock      = System.Windows.Forms.DockStyle.Fill;
            this.BackColor = System.Drawing.Color.Transparent;
            this.Controls.Add(this.logList);
            this.Location    = new System.Drawing.Point(4, 440);
            this.RightBottom = ((System.Drawing.Image)(resources.GetObject("dSkinPanel1.RightBottom")));
            this.Size        = new System.Drawing.Size(762, 179);


            //
            // logList
            //
            this.logList.BackColor        = System.Drawing.Color.Transparent;
            this.logList.Borders.TopColor = System.Drawing.SystemColors.ControlDarkDark;
            this.logList.Dock             = System.Windows.Forms.DockStyle.Fill;
            this.logList.Location         = new System.Drawing.Point(0, 0);
            this.logList.ScrollBarWidth   = 12;
            this.logList.Size             = new System.Drawing.Size(762, 179);
            this.logList.Value            = 0D;
        }
Exemplo n.º 2
0
        /// <summary>
        /// 设置滚动条
        /// </summary>
        /// <param name="listBox"></param>
        public static void SetListBoxScrollBar(DSkin.Controls.DSkinListBox listBox)
        {
            listBox.ShowScrollBar     = true;
            listBox.ScrollBarWidth    = 11;
            listBox.AutoHideScrollBar = true;
            listBox.DoSmoothScroll(20);
            //listBox.SmoothScroll = true;
            listBox.InnerScrollBar.ArrowNormalColor     = System.Drawing.Color.FromArgb(26, 84, 164);
            listBox.InnerScrollBar.ArrowHoverColor      = System.Drawing.Color.FromArgb(26, 84, 164);
            listBox.InnerScrollBar.ArrowPressColor      = System.Drawing.Color.FromArgb(26, 84, 164);
            listBox.InnerScrollBar.ScrollBarNormalColor = System.Drawing.Color.FromArgb(100, 26, 84, 164);
            listBox.InnerScrollBar.ScrollBarHoverColor  = System.Drawing.Color.FromArgb(100, 26, 84, 164);
            listBox.InnerScrollBar.ScrollBarPressColor  = System.Drawing.Color.FromArgb(100, 26, 84, 164);
            listBox.InnerScrollBar.BackColor            = System.Drawing.Color.FromArgb(50, 0, 46, 115);

            listBox.InnerScrollBar.Fillet = true;
        }