-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.vb
29 lines (24 loc) · 1.04 KB
/
Main.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Imports System.ComponentModel
Imports System.Drawing
Imports System.Windows.Forms
Imports DevExpress.XtraEditors
Imports System.Drawing.Drawing2D
Namespace WindowsApplication3
Public Partial Class Main
Inherits XtraForm
Public Sub New()
InitializeComponent()
End Sub
Private Sub OnCustomDrawItem(ByVal sender As Object, ByVal e As CustomDrawEventArgs)
If e.ItemInfo.CheckState = CheckState.Checked Then
e.ItemInfo.Appearance.Font = New Font(e.ItemInfo.Appearance.Font, FontStyle.Bold Or FontStyle.Underline)
End If
If e.ItemInfo.State = DevExpress.Utils.Drawing.ObjectState.Hot Then
Dim brush As LinearGradientBrush = New LinearGradientBrush(e.ItemInfo.Bounds, Color.LightBlue, Color.Indigo, LinearGradientMode.ForwardDiagonal)
e.Cache.FillRectangle(brush, e.ItemInfo.Bounds)
e.CheckPainter.DrawObject(e.ItemInfo)
e.Handled = True
End If
End Sub
End Class
End Namespace