@@ -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