-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathButtonBase.cs
More file actions
63 lines (55 loc) · 1.63 KB
/
ButtonBase.cs
File metadata and controls
63 lines (55 loc) · 1.63 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
namespace osf
{
public class ButtonBase : Control
{
private osf.Bitmap image;
private System.Windows.Forms.ButtonBase m_ButtonBase;
public ButtonBase()
{
}
public int FlatStyle
{
get { return (int)M_ButtonBase.FlatStyle; }
set { M_ButtonBase.FlatStyle = (System.Windows.Forms.FlatStyle)value; }
}
public osf.Bitmap Image
{
get { return image; }
set
{
image = value;
M_ButtonBase.Image = value.M_Image;
//System.Windows.Forms.Application.DoEvents();
}
}
public int ImageAlign
{
get { return (int)M_ButtonBase.ImageAlign; }
set { M_ButtonBase.ImageAlign = (System.Drawing.ContentAlignment)value; }
}
public int ImageIndex
{
get { return M_ButtonBase.ImageIndex; }
set { M_ButtonBase.ImageIndex = value; }
}
public osf.ImageList ImageList
{
get { return new ImageList(M_ButtonBase.ImageList); }
set { M_ButtonBase.ImageList = value.M_ImageList; }
}
public System.Windows.Forms.ButtonBase M_ButtonBase
{
get { return m_ButtonBase; }
set
{
m_ButtonBase = value;
base.M_Control = m_ButtonBase;
}
}
public int TextAlign
{
get { return (int)M_ButtonBase.TextAlign; }
set { M_ButtonBase.TextAlign = (System.Drawing.ContentAlignment)value; }
}
}
}