35 |
|
this.ScracthPadSaver = new System.Windows.Forms.SaveFileDialog(); |
36 |
|
this.ScracthPadLoader = new System.Windows.Forms.OpenFileDialog(); |
37 |
|
this.txtScratchPad = new System.Windows.Forms.RichTextBox(); |
38 |
+ |
this.mnuItemUndo = new System.Windows.Forms.ToolStripButton(); |
39 |
+ |
this.mnuItemRedo = new System.Windows.Forms.ToolStripButton(); |
40 |
+ |
this.mnuItemPaste = new System.Windows.Forms.ToolStripButton(); |
41 |
+ |
this.mnuItemCopy = new System.Windows.Forms.ToolStripButton(); |
42 |
+ |
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton(); |
43 |
|
this.toolStrip1.SuspendLayout(); |
44 |
|
this.SuspendLayout(); |
45 |
|
// |
47 |
|
// |
48 |
|
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { |
49 |
|
this.mnuItemSave, |
50 |
< |
this.mnuItemOpen}); |
50 |
> |
this.mnuItemOpen, |
51 |
> |
this.mnuItemUndo, |
52 |
> |
this.mnuItemRedo, |
53 |
> |
this.toolStripButton2, |
54 |
> |
this.mnuItemCopy, |
55 |
> |
this.mnuItemPaste}); |
56 |
|
this.toolStrip1.Location = new System.Drawing.Point(0, 0); |
57 |
|
this.toolStrip1.Name = "toolStrip1"; |
58 |
|
this.toolStrip1.Size = new System.Drawing.Size(743, 25); |
61 |
|
// |
62 |
|
// mnuItemSave |
63 |
|
// |
64 |
< |
this.mnuItemSave.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; |
64 |
> |
this.mnuItemSave.BackColor = System.Drawing.SystemColors.ControlLight; |
65 |
|
this.mnuItemSave.Image = ((System.Drawing.Image)(resources.GetObject("mnuItemSave.Image"))); |
66 |
|
this.mnuItemSave.ImageTransparentColor = System.Drawing.Color.Magenta; |
67 |
|
this.mnuItemSave.Name = "mnuItemSave"; |
68 |
< |
this.mnuItemSave.Size = new System.Drawing.Size(35, 22); |
68 |
> |
this.mnuItemSave.Size = new System.Drawing.Size(51, 22); |
69 |
|
this.mnuItemSave.Text = "&Save"; |
70 |
|
this.mnuItemSave.Click += new System.EventHandler(this.mnuItemSave_Click); |
71 |
|
// |
72 |
|
// mnuItemOpen |
73 |
|
// |
74 |
< |
this.mnuItemOpen.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; |
74 |
> |
this.mnuItemOpen.BackColor = System.Drawing.SystemColors.ControlLight; |
75 |
|
this.mnuItemOpen.Image = ((System.Drawing.Image)(resources.GetObject("mnuItemOpen.Image"))); |
76 |
|
this.mnuItemOpen.ImageTransparentColor = System.Drawing.Color.Magenta; |
77 |
|
this.mnuItemOpen.Name = "mnuItemOpen"; |
78 |
< |
this.mnuItemOpen.Size = new System.Drawing.Size(40, 22); |
78 |
> |
this.mnuItemOpen.Size = new System.Drawing.Size(56, 22); |
79 |
|
this.mnuItemOpen.Text = "&Open"; |
80 |
|
this.mnuItemOpen.Click += new System.EventHandler(this.mnuItemOpen_Click); |
81 |
|
// |
96 |
|
// txtScratchPad |
97 |
|
// |
98 |
|
this.txtScratchPad.Dock = System.Windows.Forms.DockStyle.Fill; |
99 |
+ |
this.txtScratchPad.Font = new System.Drawing.Font("Segoe UI Mono", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
100 |
|
this.txtScratchPad.ForeColor = System.Drawing.SystemColors.GrayText; |
101 |
|
this.txtScratchPad.Location = new System.Drawing.Point(0, 25); |
102 |
|
this.txtScratchPad.Name = "txtScratchPad"; |
103 |
|
this.txtScratchPad.Size = new System.Drawing.Size(743, 362); |
104 |
|
this.txtScratchPad.TabIndex = 1; |
105 |
< |
this.txtScratchPad.Text = ""; |
105 |
> |
this.txtScratchPad.Text = "This is a test"; |
106 |
|
this.txtScratchPad.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtScratchPad_KeyDown); |
107 |
|
this.txtScratchPad.MouseDown += new System.Windows.Forms.MouseEventHandler(this.txtScratchPad_MouseDown); |
108 |
|
// |
109 |
+ |
// mnuItemUndo |
110 |
+ |
// |
111 |
+ |
this.mnuItemUndo.BackColor = System.Drawing.SystemColors.ControlLight; |
112 |
+ |
this.mnuItemUndo.Image = ((System.Drawing.Image)(resources.GetObject("mnuItemUndo.Image"))); |
113 |
+ |
this.mnuItemUndo.ImageTransparentColor = System.Drawing.Color.Magenta; |
114 |
+ |
this.mnuItemUndo.Name = "mnuItemUndo"; |
115 |
+ |
this.mnuItemUndo.Size = new System.Drawing.Size(56, 22); |
116 |
+ |
this.mnuItemUndo.Text = "&Undo"; |
117 |
+ |
this.mnuItemUndo.Click += new System.EventHandler(this.mnuItemUndo_Click); |
118 |
+ |
// |
119 |
+ |
// mnuItemRedo |
120 |
+ |
// |
121 |
+ |
this.mnuItemRedo.BackColor = System.Drawing.SystemColors.ControlLight; |
122 |
+ |
this.mnuItemRedo.Image = ((System.Drawing.Image)(resources.GetObject("mnuItemRedo.Image"))); |
123 |
+ |
this.mnuItemRedo.ImageTransparentColor = System.Drawing.Color.Magenta; |
124 |
+ |
this.mnuItemRedo.Name = "mnuItemRedo"; |
125 |
+ |
this.mnuItemRedo.Size = new System.Drawing.Size(54, 22); |
126 |
+ |
this.mnuItemRedo.Text = "&Redo"; |
127 |
+ |
this.mnuItemRedo.Click += new System.EventHandler(this.mnuItemRedo_Click); |
128 |
+ |
// |
129 |
+ |
// mnuItemPaste |
130 |
+ |
// |
131 |
+ |
this.mnuItemPaste.BackColor = System.Drawing.SystemColors.ControlLight; |
132 |
+ |
this.mnuItemPaste.Image = ((System.Drawing.Image)(resources.GetObject("mnuItemPaste.Image"))); |
133 |
+ |
this.mnuItemPaste.ImageTransparentColor = System.Drawing.Color.Magenta; |
134 |
+ |
this.mnuItemPaste.Name = "mnuItemPaste"; |
135 |
+ |
this.mnuItemPaste.Size = new System.Drawing.Size(55, 22); |
136 |
+ |
this.mnuItemPaste.Text = "&Paste"; |
137 |
+ |
this.mnuItemPaste.Click += new System.EventHandler(this.mnuItemPaste_Click); |
138 |
+ |
// |
139 |
+ |
// mnuItemCopy |
140 |
+ |
// |
141 |
+ |
this.mnuItemCopy.BackColor = System.Drawing.SystemColors.ControlLight; |
142 |
+ |
this.mnuItemCopy.Image = ((System.Drawing.Image)(resources.GetObject("mnuItemCopy.Image"))); |
143 |
+ |
this.mnuItemCopy.ImageTransparentColor = System.Drawing.Color.Magenta; |
144 |
+ |
this.mnuItemCopy.Name = "mnuItemCopy"; |
145 |
+ |
this.mnuItemCopy.Size = new System.Drawing.Size(55, 22); |
146 |
+ |
this.mnuItemCopy.Text = "C&opy"; |
147 |
+ |
this.mnuItemCopy.Click += new System.EventHandler(this.mnuItemCopy_Click); |
148 |
+ |
// |
149 |
+ |
// toolStripButton2 |
150 |
+ |
// |
151 |
+ |
this.toolStripButton2.BackColor = System.Drawing.SystemColors.ControlLight; |
152 |
+ |
this.toolStripButton2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton2.Image"))); |
153 |
+ |
this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta; |
154 |
+ |
this.toolStripButton2.Name = "toolStripButton2"; |
155 |
+ |
this.toolStripButton2.Size = new System.Drawing.Size(54, 22); |
156 |
+ |
this.toolStripButton2.Text = "&Clear"; |
157 |
+ |
this.toolStripButton2.Click += new System.EventHandler(this.mnuItemClear_Click); |
158 |
+ |
// |
159 |
|
// ScratchPad |
160 |
|
// |
161 |
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); |
166 |
|
this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
167 |
|
this.Name = "ScratchPad"; |
168 |
|
this.Text = "Scratch Pad"; |
169 |
+ |
this.Deactivate += new System.EventHandler(this.ScratchPad_Deactivate); |
170 |
+ |
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.ScratchPad_FormClosing); |
171 |
|
this.toolStrip1.ResumeLayout(false); |
172 |
|
this.toolStrip1.PerformLayout(); |
173 |
|
this.ResumeLayout(false); |
183 |
|
private System.Windows.Forms.SaveFileDialog ScracthPadSaver; |
184 |
|
private System.Windows.Forms.OpenFileDialog ScracthPadLoader; |
185 |
|
private System.Windows.Forms.RichTextBox txtScratchPad; |
186 |
+ |
private System.Windows.Forms.ToolStripButton mnuItemUndo; |
187 |
+ |
private System.Windows.Forms.ToolStripButton mnuItemRedo; |
188 |
+ |
private System.Windows.Forms.ToolStripButton mnuItemPaste; |
189 |
+ |
private System.Windows.Forms.ToolStripButton toolStripButton2; |
190 |
+ |
private System.Windows.Forms.ToolStripButton mnuItemCopy; |
191 |
|
} |
192 |
|
} |