Skip to content

Commit 0c5c4ca

Browse files
committed
v2.2.7
1 parent ba78680 commit 0c5c4ca

File tree

15 files changed

+225
-453
lines changed

15 files changed

+225
-453
lines changed

.vs/QuickLibrary/v16/.suo

-2.5 KB
Binary file not shown.
4 KB
Binary file not shown.

QuickLibrary/DownloadForm.Designer.cs

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

QuickLibrary/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("2.2.6")]
36-
[assembly: AssemblyFileVersion("2.2.6")]
35+
[assembly: AssemblyVersion("2.2.7")]
36+
[assembly: AssemblyFileVersion("2.2.7")]
3737
[assembly: NeutralResourcesLanguage("en")]

QuickLibrary/QlibFixedForm.cs

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ public class QlibFixedForm : Form
1313
private bool darkMode = false;
1414
private bool alternativeAppearance = false;
1515
private Color customBackColor = Color.White;
16+
private bool usePadding = true;
1617

1718
// HIDDEN PROPS
1819

@@ -61,6 +62,27 @@ public class QlibFixedForm : Form
6162
[Browsable(false)]
6263
public new bool RightToLeftLayout => base.RightToLeftLayout;
6364

65+
[Browsable(false)]
66+
public new SizeGripStyle SizeGripStyle => base.SizeGripStyle;
67+
68+
[Browsable(false)]
69+
public new IButtonControl AcceptButton => base.AcceptButton;
70+
71+
[Browsable(false)]
72+
public new IButtonControl CancelButton => base.CancelButton;
73+
74+
[Browsable(false)]
75+
public new bool KeyPreview => base.KeyPreview;
76+
77+
[Browsable(false)]
78+
public new Padding Padding => base.Padding;
79+
80+
[Browsable(false)]
81+
public new bool UseWaitCursor => base.UseWaitCursor;
82+
83+
[Browsable(false)]
84+
public new Cursor Cursor => base.Cursor;
85+
6486
// PUBLIC PROPS
6587

6688
[Category("Qlib props"), Browsable(true), Description("Custom back color")]
@@ -98,6 +120,24 @@ public bool AlternativeAppearance
98120
set { SetDarkMode(darkMode, value); }
99121
}
100122

123+
[Category("Qlib props"), Browsable(true), Description("Use padding")]
124+
public bool UsePadding
125+
{
126+
get { return usePadding; }
127+
set
128+
{
129+
usePadding = value;
130+
if (value)
131+
{
132+
base.Padding = new Padding(10);
133+
}
134+
else
135+
{
136+
base.Padding = new Padding(0);
137+
}
138+
}
139+
}
140+
101141
// CONSTRUCTOR
102142

103143
public QlibFixedForm()
@@ -113,8 +153,19 @@ public QlibFixedForm()
113153
base.BackgroundImage = null;
114154
base.BackgroundImageLayout = ImageLayout.Tile;
115155
base.Font = ThemeManager.DefaultFont;
156+
base.KeyPreview = true;
157+
base.CancelButton = null;
158+
base.AcceptButton = null;
159+
base.SizeGripStyle = SizeGripStyle.Hide;
160+
base.RightToLeft = RightToLeft.No;
161+
base.RightToLeftLayout = false;
162+
base.Padding = new Padding(10);
163+
base.UseWaitCursor = false;
164+
base.Cursor = Cursors.Default;
116165

117166
TextChanged += QlibFixedForm_TextChanged;
167+
168+
SetDarkMode(false, false);
118169
}
119170

120171
// PRIVATE BODY

0 commit comments

Comments
 (0)