打印本文 打印本文 关闭窗口 关闭窗口
自定义控件--xp风格按钮(可设置文字颜色)
作者:武汉SEO闵涛  文章来源:敏韬网  点击数8780  更新时间:2009/4/25 0:44:49  文章录入:mintao  责任编辑:mintao
            Dim p As Pen = New Pen(Color.Yellow, 2)

            g.DrawLine(p, 1, 1, 1, Height - 2)

            g.DrawLine(p, 1, 1, Width - 2, 1)

            g.DrawLine(p, Width - 1, 2, Width - 1, Height - 2)

            g.DrawLine(p, 2, Height - 1, Width - 2, Height - 1)

 

 

        ElseIf (state = 3) Then ''''绘制按下的显示边框

            ''''与一般边框用高光区别的是显示暗褐色

            Dim p As Pen = New Pen(SystemColors.ControlDark, 2)

            g.DrawLine(p, 1, 1, 1, Height - 2)

            g.DrawLine(p, 1, 1, Width - 2, 1)

            g.DrawLine(p, Width - 1, 2, Width - 1, Height - 2)

            g.DrawLine(p, 2, Height - 1, Width - 2, Height - 1)

 

 

        ElseIf (state = 4) Then ''''绘制不可用状态边框

            ''''与一般边框用高光区别的是显示亮色

            Dim p As Pen = New Pen(SystemColors.ControlLight, 2)

上一页  [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]  ...  下一页 >> 

打印本文 打印本文 关闭窗口 关闭窗口