Skip to content
This repository was archived by the owner on Sep 21, 2025. It is now read-only.

Commit 14f678c

Browse files
DevExpressExampleBotDevExpressExampleBot
authored andcommitted
Source auto update [skip ci]
1 parent 8e57c20 commit 14f678c

File tree

14 files changed

+352
-488
lines changed

14 files changed

+352
-488
lines changed

VB/WindowsApplication1.sln.cache

Lines changed: 0 additions & 115 deletions
This file was deleted.
Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,24 @@
1-
Imports Microsoft.VisualBasic
2-
Imports System
3-
Imports System.Collections.Generic
41
Imports System.ComponentModel
5-
Imports System.Data
62
Imports System.Drawing
7-
Imports System.Text
8-
Imports System.Windows.Forms
9-
Imports DevExpress.XtraEditors
103
Imports DevExpress.XtraTab.Registrator
114
Imports DevExpress.XtraTab.Drawing
125

136
Namespace WindowsApplication1
14-
Public Class MyRegistrator
15-
Inherits SkinViewInfoRegistrator
167

17-
Public Sub New()
8+
Public Class MyRegistrator
9+
Inherits SkinViewInfoRegistrator
1810

19-
End Sub
11+
Public Sub New()
12+
End Sub
2013

21-
Public Overrides ReadOnly Property ViewName() As String
22-
Get
23-
Return "MyStyle"
24-
End Get
25-
End Property
14+
Public Overrides ReadOnly Property ViewName As String
15+
Get
16+
Return "MyStyle"
17+
End Get
18+
End Property
2619

27-
Public Overrides Function CreatePainter(ByVal tabControl As DevExpress.XtraTab.IXtraTab) As DevExpress.XtraTab.Drawing.BaseTabPainter
28-
Return New MySkinTabPainter(tabControl)
29-
End Function
30-
End Class
20+
Public Overrides Function CreatePainter(ByVal tabControl As DevExpress.XtraTab.IXtraTab) As DevExpress.XtraTab.Drawing.BaseTabPainter
21+
Return New MySkinTabPainter(tabControl)
22+
End Function
23+
End Class
3124
End Namespace
Lines changed: 23 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,36 @@
1-
Imports Microsoft.VisualBasic
21
Imports System
3-
Imports System.Collections.Generic
42
Imports System.ComponentModel
5-
Imports System.Data
63
Imports System.Drawing
7-
Imports System.Text
8-
Imports System.Windows.Forms
9-
Imports DevExpress.XtraEditors
10-
Imports DevExpress.XtraTab.Registrator
114
Imports DevExpress.XtraTab.Drawing
125
Imports DevExpress.XtraTab
136
Imports DevExpress.Utils
147
Imports DevExpress.XtraTab.ViewInfo
158

169
Namespace WindowsApplication1
17-
Public Class MySkinTabPainter
18-
Inherits SkinTabPainter
1910

20-
Public Sub New(ByVal tabControl As DevExpress.XtraTab.IXtraTab)
21-
MyBase.New(tabControl)
11+
Public Class MySkinTabPainter
12+
Inherits SkinTabPainter
2213

23-
End Sub
14+
Public Sub New(ByVal tabControl As IXtraTab)
15+
MyBase.New(tabControl)
16+
End Sub
2417

25-
Protected Overrides Sub DrawHeader(ByVal e As TabDrawArgs)
26-
MyBase.DrawHeader(e)
27-
Dim bounds As Rectangle = e.Bounds
28-
Dim headerText As String = "----------------------- Custom draw header -----------------------"
29-
e.Graphics.DrawString(headerText, New Font(AppearanceObject.DefaultFont.FontFamily, 14, FontStyle.Bold), Brushes.Black, bounds)
30-
bounds.Offset(-2, -2)
31-
e.Graphics.DrawString(headerText, New Font(AppearanceObject.DefaultFont.FontFamily, 14, FontStyle.Bold), Brushes.White, bounds)
32-
For Each rowInfo As BaseTabRowViewInfo In e.ViewInfo.HeaderInfo.Rows
33-
For i As Integer = 0 To rowInfo.Pages.Count - 1
34-
Dim pageBounds As Rectangle = rowInfo.Pages(i).Bounds
35-
pageBounds.Offset(0, 20)
36-
e.Graphics.DrawString(Environment.NewLine & "Custom draw", AppearanceObject.DefaultFont, Brushes.Black, pageBounds)
37-
pageBounds.Offset(-1, -1)
38-
e.Graphics.DrawString(Environment.NewLine & "Custom draw", AppearanceObject.DefaultFont, Brushes.Yellow, pageBounds)
39-
Next i
40-
Next rowInfo
41-
42-
End Sub
43-
44-
End Class
18+
Protected Overrides Sub DrawHeader(ByVal e As TabDrawArgs)
19+
MyBase.DrawHeader(e)
20+
Dim bounds As Rectangle = e.Bounds
21+
Dim headerText As String = "----------------------- Custom draw header -----------------------"
22+
e.Graphics.DrawString(headerText, New Font(AppearanceObject.DefaultFont.FontFamily, 14, FontStyle.Bold), Brushes.Black, bounds)
23+
bounds.Offset(-2, -2)
24+
e.Graphics.DrawString(headerText, New Font(AppearanceObject.DefaultFont.FontFamily, 14, FontStyle.Bold), Brushes.White, bounds)
25+
For Each rowInfo As BaseTabRowViewInfo In e.ViewInfo.HeaderInfo.Rows
26+
For i As Integer = 0 To rowInfo.Pages.Count - 1
27+
Dim pageBounds As Rectangle = rowInfo.Pages(i).Bounds
28+
pageBounds.Offset(0, 20)
29+
e.Graphics.DrawString(Environment.NewLine & "Custom draw", AppearanceObject.DefaultFont, Brushes.Black, pageBounds)
30+
pageBounds.Offset(-1, -1)
31+
e.Graphics.DrawString(Environment.NewLine & "Custom draw", AppearanceObject.DefaultFont, Brushes.Yellow, pageBounds)
32+
Next
33+
Next
34+
End Sub
35+
End Class
4536
End Namespace

0 commit comments

Comments
 (0)