9
9
using FlashDevelop . Helpers ;
10
10
using PluginCore . FRService ;
11
11
using PluginCore . Managers ;
12
+ using PluginCore . Controls ;
12
13
using PluginCore . Helpers ;
13
14
using ScintillaNet ;
14
15
using PluginCore ;
15
16
16
17
namespace FlashDevelop . Dialogs
17
18
{
18
- public class FRInDocDialog : Form
19
+ public class FRInDocDialog : SmartForm
19
20
{
20
21
private System . Windows . Forms . Label infoLabel ;
21
22
private System . Windows . Forms . Label findLabel ;
@@ -43,6 +44,7 @@ public FRInDocDialog()
43
44
{
44
45
this . Owner = Globals . MainForm ;
45
46
this . Font = Globals . Settings . DefaultFont ;
47
+ this . FormGuid = "24910809-a60a-4b7c-8d2a-d53a363f595f" ;
46
48
this . InitializeComponent ( ) ;
47
49
this . InitializeProperties ( ) ;
48
50
this . ApplyLocalizedTexts ( ) ;
@@ -82,7 +84,8 @@ private void InitializeComponent()
82
84
this . SuspendLayout ( ) ;
83
85
//
84
86
// replaceButton
85
- //
87
+ //
88
+ this . replaceButton . Anchor = ( ( System . Windows . Forms . AnchorStyles ) ( ( System . Windows . Forms . AnchorStyles . Top | System . Windows . Forms . AnchorStyles . Right ) ) ) ;
86
89
this . replaceButton . FlatStyle = System . Windows . Forms . FlatStyle . System ;
87
90
this . replaceButton . Location = new System . Drawing . Point ( 277 , 112 ) ;
88
91
this . replaceButton . Name = "replaceButton" ;
@@ -93,6 +96,7 @@ private void InitializeComponent()
93
96
//
94
97
// findNextButton
95
98
//
99
+ this . findNextButton . Anchor = ( ( System . Windows . Forms . AnchorStyles ) ( ( System . Windows . Forms . AnchorStyles . Top | System . Windows . Forms . AnchorStyles . Right ) ) ) ;
96
100
this . findNextButton . FlatStyle = System . Windows . Forms . FlatStyle . System ;
97
101
this . findNextButton . Location = new System . Drawing . Point ( 277 , 22 ) ;
98
102
this . findNextButton . Name = "findNextButton" ;
@@ -125,6 +129,7 @@ private void InitializeComponent()
125
129
//
126
130
// closeButton
127
131
//
132
+ this . closeButton . Anchor = ( ( System . Windows . Forms . AnchorStyles ) ( ( System . Windows . Forms . AnchorStyles . Top | System . Windows . Forms . AnchorStyles . Right ) ) ) ;
128
133
this . closeButton . FlatStyle = System . Windows . Forms . FlatStyle . System ;
129
134
this . closeButton . Location = new System . Drawing . Point ( 277 , 172 ) ;
130
135
this . closeButton . Name = "closeButton" ;
@@ -135,6 +140,7 @@ private void InitializeComponent()
135
140
//
136
141
// findPrevButton
137
142
//
143
+ this . findPrevButton . Anchor = ( ( System . Windows . Forms . AnchorStyles ) ( ( System . Windows . Forms . AnchorStyles . Top | System . Windows . Forms . AnchorStyles . Right ) ) ) ;
138
144
this . findPrevButton . FlatStyle = System . Windows . Forms . FlatStyle . System ;
139
145
this . findPrevButton . Location = new System . Drawing . Point ( 277 , 52 ) ;
140
146
this . findPrevButton . Name = "findPrevButton" ;
@@ -144,7 +150,8 @@ private void InitializeComponent()
144
150
this . findPrevButton . Click += new System . EventHandler ( this . FindPrevButtonClick ) ;
145
151
//
146
152
// findComboBox
147
- //
153
+ //
154
+ this . findComboBox . Anchor = ( ( System . Windows . Forms . AnchorStyles ) ( ( System . Windows . Forms . AnchorStyles . Top | System . Windows . Forms . AnchorStyles . Left | System . Windows . Forms . AnchorStyles . Right ) ) ) ;
148
155
this . findComboBox . FlatStyle = System . Windows . Forms . FlatStyle . System ;
149
156
this . findComboBox . Location = new System . Drawing . Point ( 13 , 23 ) ;
150
157
this . findComboBox . Name = "findComboBox" ;
@@ -187,6 +194,7 @@ private void InitializeComponent()
187
194
//
188
195
// infoPictureBox
189
196
//
197
+ this . infoPictureBox . Anchor = ( ( System . Windows . Forms . AnchorStyles ) ( ( System . Windows . Forms . AnchorStyles . Bottom | System . Windows . Forms . AnchorStyles . Left ) ) ) ;
190
198
this . infoPictureBox . BackColor = System . Drawing . SystemColors . Control ;
191
199
this . infoPictureBox . SizeMode = System . Windows . Forms . PictureBoxSizeMode . Zoom ;
192
200
this . infoPictureBox . Location = new System . Drawing . Point ( 14 , 202 ) ;
@@ -196,7 +204,8 @@ private void InitializeComponent()
196
204
this . infoPictureBox . TabStop = false ;
197
205
//
198
206
// infoLabel
199
- //
207
+ //
208
+ this . infoLabel . Anchor = ( ( System . Windows . Forms . AnchorStyles ) ( ( System . Windows . Forms . AnchorStyles . Bottom | System . Windows . Forms . AnchorStyles . Left ) ) ) ;
200
209
this . infoLabel . AutoSize = true ;
201
210
this . infoLabel . BackColor = System . Drawing . SystemColors . Control ;
202
211
this . infoLabel . FlatStyle = System . Windows . Forms . FlatStyle . System ;
@@ -208,7 +217,8 @@ private void InitializeComponent()
208
217
this . infoLabel . Text = "No suitable results found." ;
209
218
//
210
219
// optionsGroupBox
211
- //
220
+ //
221
+ this . optionsGroupBox . Anchor = ( ( System . Windows . Forms . AnchorStyles ) ( ( System . Windows . Forms . AnchorStyles . Top | System . Windows . Forms . AnchorStyles . Bottom | System . Windows . Forms . AnchorStyles . Left | System . Windows . Forms . AnchorStyles . Right ) ) ) ;
212
222
this . optionsGroupBox . Controls . Add ( this . useRegexCheckBox ) ;
213
223
this . optionsGroupBox . Controls . Add ( this . escapedCheckBox ) ;
214
224
this . optionsGroupBox . Controls . Add ( this . wholeWordCheckBox ) ;
@@ -222,7 +232,8 @@ private void InitializeComponent()
222
232
this . optionsGroupBox . Text = " Options" ;
223
233
//
224
234
// replaceComboBox
225
- //
235
+ //
236
+ this . replaceComboBox . Anchor = ( ( System . Windows . Forms . AnchorStyles ) ( ( System . Windows . Forms . AnchorStyles . Top | System . Windows . Forms . AnchorStyles . Left | System . Windows . Forms . AnchorStyles . Right ) ) ) ;
226
237
this . replaceComboBox . FlatStyle = System . Windows . Forms . FlatStyle . System ;
227
238
this . replaceComboBox . Location = new System . Drawing . Point ( 13 , 62 ) ;
228
239
this . replaceComboBox . Name = "replaceComboBox" ;
@@ -241,7 +252,8 @@ private void InitializeComponent()
241
252
this . replaceLabel . Text = "Replace with:" ;
242
253
//
243
254
// replaceAllButton
244
- //
255
+ //
256
+ this . replaceAllButton . Anchor = ( ( System . Windows . Forms . AnchorStyles ) ( ( System . Windows . Forms . AnchorStyles . Top | System . Windows . Forms . AnchorStyles . Right ) ) ) ;
245
257
this . replaceAllButton . FlatStyle = System . Windows . Forms . FlatStyle . System ;
246
258
this . replaceAllButton . Location = new System . Drawing . Point ( 277 , 142 ) ;
247
259
this . replaceAllButton . Name = "replaceAllButton" ;
@@ -251,7 +263,8 @@ private void InitializeComponent()
251
263
this . replaceAllButton . Click += new System . EventHandler ( this . ReplaceAllButtonClick ) ;
252
264
//
253
265
// lookComboBox
254
- //
266
+ //
267
+ this . lookComboBox . Anchor = ( ( System . Windows . Forms . AnchorStyles ) ( ( System . Windows . Forms . AnchorStyles . Top | System . Windows . Forms . AnchorStyles . Left | System . Windows . Forms . AnchorStyles . Right ) ) ) ;
255
268
this . lookComboBox . DropDownStyle = System . Windows . Forms . ComboBoxStyle . DropDownList ;
256
269
this . lookComboBox . FlatStyle = System . Windows . Forms . FlatStyle . System ;
257
270
this . lookComboBox . Items . AddRange ( new object [ ] {
@@ -277,7 +290,8 @@ private void InitializeComponent()
277
290
this . lookLabel . Text = "Look in:" ;
278
291
//
279
292
// bookmarkAllButton
280
- //
293
+ //
294
+ this . bookmarkAllButton . Anchor = ( ( System . Windows . Forms . AnchorStyles ) ( ( System . Windows . Forms . AnchorStyles . Top | System . Windows . Forms . AnchorStyles . Right ) ) ) ;
281
295
this . bookmarkAllButton . FlatStyle = System . Windows . Forms . FlatStyle . System ;
282
296
this . bookmarkAllButton . Location = new System . Drawing . Point ( 277 , 82 ) ;
283
297
this . bookmarkAllButton . Name = "bookmarkAllButton" ;
@@ -293,6 +307,8 @@ private void InitializeComponent()
293
307
this . AutoScaleDimensions = new System . Drawing . SizeF ( 6F , 13F ) ;
294
308
this . AutoScaleMode = System . Windows . Forms . AutoScaleMode . Font ;
295
309
this . ClientSize = new System . Drawing . Size ( 384 , 228 ) ;
310
+ this . MinimumSize = new System . Drawing . Size ( 384 , 268 ) ;
311
+ //this.MaximumSize = new System.Drawing.Size(1000, 268);
296
312
this . Controls . Add ( this . bookmarkAllButton ) ;
297
313
this . Controls . Add ( this . replaceComboBox ) ;
298
314
this . Controls . Add ( this . lookComboBox ) ;
@@ -308,11 +324,12 @@ private void InitializeComponent()
308
324
this . Controls . Add ( this . closeButton ) ;
309
325
this . Controls . Add ( this . findLabel ) ;
310
326
this . Controls . Add ( this . findNextButton ) ;
311
- this . FormBorderStyle = System . Windows . Forms . FormBorderStyle . FixedDialog ;
327
+ this . FormBorderStyle = System . Windows . Forms . FormBorderStyle . Sizable ;
312
328
this . MaximizeBox = false ;
313
329
this . MinimizeBox = false ;
314
330
this . Name = "FRInDocDialog" ;
315
331
this . ShowInTaskbar = false ;
332
+ this . ShowIcon = false ;
316
333
this . StartPosition = System . Windows . Forms . FormStartPosition . CenterParent ;
317
334
this . Text = " Find And Replace" ;
318
335
this . Load += new System . EventHandler ( this . DialogLoad ) ;
0 commit comments