26#include "picsimlab1.h"
28CPWindow1::CPWindow1(
void) {
31 SetClass(lxT(
"CPWindow"));
32 SetName(lxT(
"window1"));
41 SetColor(lxT(
"#000001"));
43 SetTitle(lxT(
"Picsimlab"));
44 SetOverrideRedirect(0);
45 SetDragAcceptFiles(
true);
46 EvOnCreate = EVONCREATE & CPWindow1::_EvOnCreate;
47 EvOnDestroy = EVONDESTROY & CPWindow1::_EvOnDestroy;
48 EvOnShow = EVONSHOW & CPWindow1::_EvOnShow;
49 EvOnDropFile = EVONDROPFILE & CPWindow1::_EvOnDropFile;
51 timer1.SetFOwner(
this);
52 timer1.SetClass(lxT(
"CTimer"));
53 timer1.SetName(lxT(
"timer1"));
55 timer1.SetTime(BASETIMER);
56 timer1.SetRunState(0);
57 timer1.EvOnTime = EVONTIME & CPWindow1::timer1_EvOnTime;
60 timer2.SetFOwner(
this);
61 timer2.SetClass(lxT(
"CTimer"));
62 timer2.SetName(lxT(
"timer2"));
65 timer2.SetRunState(0);
66 timer2.EvOnTime = EVONTIME & CPWindow1::timer2_EvOnTime;
69 filedialog1.SetFOwner(
this);
70 filedialog1.SetClass(lxT(
"CFileDialog"));
71 filedialog1.SetName(lxT(
"filedialog1"));
72 filedialog1.SetTag(0);
73 filedialog1.SetFileName(lxT(
"untitled.hex"));
74 filedialog1.SetFilter(lxT(
"Hex Files (*.hex)|*.hex;*.HEX"));
75 filedialog1.SetType(129);
76 filedialog1.EvOnClose = EVONCLOSE & CPWindow1::filedialog1_EvOnClose;
77 CreateChild(&filedialog1);
79 draw1.SetFOwner(
this);
80 draw1.SetClass(lxT(
"CDraw"));
81 draw1.SetName(lxT(
"draw1"));
87 draw1.SetHint(lxT(
""));
90 draw1.SetColor(lxT(
"#000001"));
91 draw1.SetPopupMenu(NULL);
92 draw1.SetDragAcceptFiles(
true);
93 draw1.EvMouseMove = EVMOUSEMOVE & CPWindow1::draw1_EvMouseMove;
94 draw1.EvMouseButtonPress = EVMOUSEBUTTONPRESS & CPWindow1::draw1_EvMouseButtonPress;
95 draw1.EvMouseButtonRelease = EVMOUSEBUTTONRELEASE & CPWindow1::draw1_EvMouseButtonRelease;
96 draw1.EvKeyboardPress = EVKEYBOARDPRESS & CPWindow1::draw1_EvKeyboardPress;
97 draw1.EvKeyboardRelease = EVKEYBOARDRELEASE & CPWindow1::draw1_EvKeyboardRelease;
98 draw1.EvOnDropFile = EVONDROPFILE & CPWindow1::_EvOnDropFile;
99 draw1.SetTransparent(0);
100 draw1.SetImgFileName(lxT(
""));
103 combo1.SetFOwner(
this);
104 combo1.SetClass(lxT(
"CCombo"));
105 combo1.SetName(lxT(
"combo1"));
110 combo1.SetHeight(25);
111 combo1.SetHint(lxT(
""));
113 combo1.SetVisible(1);
114 combo1.SetColor(lxT(
"#000001"));
115 combo1.SetPopupMenu(NULL);
116 combo1.SetItems(lxT(
"64,48,40,32,20,16,10,8,4,2,1,"));
117 combo1.SetText(lxT(
"2"));
118 combo1.SetReadOnly(0);
119 combo1.EvOnComboChange = EVONCOMBOCHANGE & CPWindow1::combo1_EvOnComboChange;
120 CreateChild(&combo1);
122 label1.SetFOwner(
this);
123 label1.SetClass(lxT(
"CLabel"));
124 label1.SetName(lxT(
"label1"));
129 label1.SetHeight(21);
130 label1.SetHint(lxT(
""));
132 label1.SetVisible(1);
133 label1.SetColor(lxT(
"#000001"));
134 label1.SetPopupMenu(NULL);
135 label1.SetText(lxT(
"Clk(MHz)"));
137 CreateChild(&label1);
139 label2.SetFOwner(
this);
140 label2.SetClass(lxT(
"CLabel"));
141 label2.SetName(lxT(
"label2"));
146 label2.SetHeight(21);
147 label2.SetHint(lxT(
""));
149 label2.SetVisible(1);
150 label2.SetColor(lxT(
"#000001"));
151 label2.SetPopupMenu(NULL);
152 label2.SetText(lxT(
"Spd: 1.00x"));
154 CreateChild(&label2);
156 menu1.SetFOwner(
this);
157 menu1.SetClass(lxT(
"CMenu"));
158 menu1.SetName(lxT(
"menu1"));
160 menu1.SetMenuItems(lxT(
"File,Board,Microcontroller,Modules,Tools,Help,"));
163 menu1_File.SetFOwner(
this);
164 menu1_File.SetClass(lxT(
"CPMenu"));
165 menu1_File.SetName(lxT(
"menu1_File"));
166 menu1_File.SetTag(0);
167 menu1_File.SetText(lxT(
"File"));
168 menu1_File.SetMenuItems(lxT(
"Load Hex,Reload Last,Configure,Save Workspace,Load Workspace,Load Board Demo,Exit,"));
169 menu1.CreateChild(&menu1_File);
171 menu1_Board.SetFOwner(
this);
172 menu1_Board.SetClass(lxT(
"CPMenu"));
173 menu1_Board.SetName(lxT(
"menu1_Board"));
174 menu1_Board.SetTag(0);
175 menu1_Board.SetText(lxT(
"Board"));
176 menu1_Board.SetMenuItems(lxT(
""));
177 menu1.CreateChild(&menu1_Board);
179 menu1_Microcontroller.SetFOwner(
this);
180 menu1_Microcontroller.SetClass(lxT(
"CPMenu"));
181 menu1_Microcontroller.SetName(lxT(
"menu1_Microcontroller"));
182 menu1_Microcontroller.SetTag(0);
183 menu1_Microcontroller.SetText(lxT(
"Microcontroller"));
184 menu1_Microcontroller.SetMenuItems(lxT(
""));
185 menu1.CreateChild(&menu1_Microcontroller);
187 menu1_Modules.SetFOwner(
this);
188 menu1_Modules.SetClass(lxT(
"CPMenu"));
189 menu1_Modules.SetName(lxT(
"menu1_Modules"));
190 menu1_Modules.SetTag(0);
191 menu1_Modules.SetText(lxT(
"Modules"));
192 menu1_Modules.SetMenuItems(lxT(
"Oscilloscope,Spare parts,"));
193 menu1.CreateChild(&menu1_Modules);
195 menu1_Tools.SetFOwner(
this);
196 menu1_Tools.SetClass(lxT(
"CPMenu"));
197 menu1_Tools.SetName(lxT(
"menu1_Tools"));
198 menu1_Tools.SetTag(0);
199 menu1_Tools.SetText(lxT(
"Tools"));
200 menu1_Tools.SetMenuItems(
201 lxT(
"Serial Term,Serial Remote Tank,Esp8266 Modem Simulator,Arduino Bootloader,MPLABX Debugger Plugin,Pin "
203 menu1.CreateChild(&menu1_Tools);
205 menu1_Help.SetFOwner(
this);
206 menu1_Help.SetClass(lxT(
"CPMenu"));
207 menu1_Help.SetName(lxT(
"menu1_Help"));
208 menu1_Help.SetTag(0);
209 menu1_Help.SetText(lxT(
"Help"));
210 menu1_Help.SetMenuItems(lxT(
"Contents,Board,Examples,About Board,About PICSimLab,"));
211 menu1.CreateChild(&menu1_Help);
213 menu1_File_LoadHex.SetFOwner(
this);
214 menu1_File_LoadHex.SetClass(lxT(
"CItemMenu"));
215 menu1_File_LoadHex.SetName(lxT(
"menu1_File_LoadHex"));
216 menu1_File_LoadHex.SetTag(0);
217 menu1_File_LoadHex.SetText(lxT(
"Load Hex"));
218 menu1_File_LoadHex.SetEnable(1);
219 menu1_File_LoadHex.SetSubMenu(NULL);
220 menu1_File_LoadHex.EvMenuActive = EVMENUACTIVE & CPWindow1::menu1_File_LoadHex_EvMenuActive;
221 menu1_File.CreateChild(&menu1_File_LoadHex);
223 menu1_File_ReloadLast.SetFOwner(
this);
224 menu1_File_ReloadLast.SetClass(lxT(
"CItemMenu"));
225 menu1_File_ReloadLast.SetName(lxT(
"menu1_File_ReloadLast"));
226 menu1_File_ReloadLast.SetTag(0);
227 menu1_File_ReloadLast.SetText(lxT(
"Reload Last"));
228 menu1_File_ReloadLast.SetEnable(0);
229 menu1_File_ReloadLast.SetSubMenu(NULL);
230 menu1_File_ReloadLast.EvMenuActive = EVMENUACTIVE & CPWindow1::menu1_File_ReloadLast_EvMenuActive;
231 menu1_File.CreateChild(&menu1_File_ReloadLast);
233 menu1_File_SaveHex.SetFOwner(
this);
234 menu1_File_SaveHex.SetClass(lxT(
"CItemMenu"));
235 menu1_File_SaveHex.SetName(lxT(
"menu1_File_SaveHex"));
236 menu1_File_SaveHex.SetTag(0);
237 menu1_File_SaveHex.SetText(lxT(
"Save Hex"));
238 menu1_File_SaveHex.SetEnable(1);
239 menu1_File_SaveHex.SetSubMenu(NULL);
240 menu1_File_SaveHex.EvMenuActive = EVMENUACTIVE & CPWindow1::menu1_File_SaveHex_EvMenuActive;
241 menu1_File.CreateChild(&menu1_File_SaveHex);
243 menu1_File_Configure.SetFOwner(
this);
244 menu1_File_Configure.SetClass(lxT(
"CItemMenu"));
245 menu1_File_Configure.SetName(lxT(
"menu1_File_Configure"));
246 menu1_File_Configure.SetTag(0);
247 menu1_File_Configure.SetText(lxT(
"Configure"));
248 menu1_File_Configure.SetEnable(1);
249 menu1_File_Configure.SetSubMenu(NULL);
250 menu1_File_Configure.EvMenuActive = EVMENUACTIVE & CPWindow1::menu1_File_Configure_EvMenuActive;
251 menu1_File.CreateChild(&menu1_File_Configure);
253 menu1_File_SaveWorkspace.SetFOwner(
this);
254 menu1_File_SaveWorkspace.SetClass(lxT(
"CItemMenu"));
255 menu1_File_SaveWorkspace.SetName(lxT(
"menu1_File_SaveWorkspace"));
256 menu1_File_SaveWorkspace.SetTag(0);
257 menu1_File_SaveWorkspace.SetText(lxT(
"Save Workspace"));
258 menu1_File_SaveWorkspace.SetEnable(1);
259 menu1_File_SaveWorkspace.SetSubMenu(NULL);
260 menu1_File_SaveWorkspace.EvMenuActive = EVMENUACTIVE & CPWindow1::menu1_File_SaveWorkspace_EvMenuActive;
261 menu1_File.CreateChild(&menu1_File_SaveWorkspace);
263 menu1_File_LoadWorkspace.SetFOwner(
this);
264 menu1_File_LoadWorkspace.SetClass(lxT(
"CItemMenu"));
265 menu1_File_LoadWorkspace.SetName(lxT(
"menu1_File_LoadWorkspace"));
266 menu1_File_LoadWorkspace.SetTag(0);
267 menu1_File_LoadWorkspace.SetText(lxT(
"Load Workspace"));
268 menu1_File_LoadWorkspace.SetEnable(1);
269 menu1_File_LoadWorkspace.SetSubMenu(NULL);
270 menu1_File_LoadWorkspace.EvMenuActive = EVMENUACTIVE & CPWindow1::menu1_File_LoadWorkspace_EvMenuActive;
271 menu1_File.CreateChild(&menu1_File_LoadWorkspace);
273 menu1_File_LoadBoardDemo.SetFOwner(
this);
274 menu1_File_LoadBoardDemo.SetClass(lxT(
"CItemMenu"));
275 menu1_File_LoadBoardDemo.SetName(lxT(
"menu1_File_LoadBoardDemo"));
276 menu1_File_LoadBoardDemo.SetTag(0);
277 menu1_File_LoadBoardDemo.SetText(lxT(
"Load Board Demo"));
278 menu1_File_LoadBoardDemo.SetEnable(1);
279 menu1_File_LoadBoardDemo.SetSubMenu(NULL);
280 menu1_File_LoadBoardDemo.EvMenuActive = EVMENUACTIVE & CPWindow1::menu1_File_LoadBoardDemo_EvMenuActive;
281 menu1_File.CreateChild(&menu1_File_LoadBoardDemo);
283 menu1_File_Exit.SetFOwner(
this);
284 menu1_File_Exit.SetClass(lxT(
"CItemMenu"));
285 menu1_File_Exit.SetName(lxT(
"menu1_File_Exit"));
286 menu1_File_Exit.SetTag(0);
287 menu1_File_Exit.SetText(lxT(
"Exit"));
288 menu1_File_Exit.SetEnable(1);
289 menu1_File_Exit.SetSubMenu(NULL);
290 menu1_File_Exit.EvMenuActive = EVMENUACTIVE & CPWindow1::menu1_File_Exit_EvMenuActive;
291 menu1_File.CreateChild(&menu1_File_Exit);
293 menu1_Modules_Oscilloscope.SetFOwner(
this);
294 menu1_Modules_Oscilloscope.SetClass(lxT(
"CItemMenu"));
295 menu1_Modules_Oscilloscope.SetName(lxT(
"menu1_Modules_Oscilloscope"));
296 menu1_Modules_Oscilloscope.SetTag(0);
297 menu1_Modules_Oscilloscope.SetText(lxT(
"Oscilloscope"));
298 menu1_Modules_Oscilloscope.SetEnable(1);
299 menu1_Modules_Oscilloscope.SetSubMenu(NULL);
300 menu1_Modules_Oscilloscope.EvMenuActive = EVMENUACTIVE & CPWindow1::menu1_Modules_Oscilloscope_EvMenuActive;
301 menu1_Modules.CreateChild(&menu1_Modules_Oscilloscope);
303 menu1_Modules_Spareparts.SetFOwner(
this);
304 menu1_Modules_Spareparts.SetClass(lxT(
"CItemMenu"));
305 menu1_Modules_Spareparts.SetName(lxT(
"menu1_Modules_Spareparts"));
306 menu1_Modules_Spareparts.SetTag(0);
307 menu1_Modules_Spareparts.SetText(lxT(
"Spare parts"));
308 menu1_Modules_Spareparts.SetEnable(1);
309 menu1_Modules_Spareparts.SetSubMenu(NULL);
310 menu1_Modules_Spareparts.EvMenuActive = EVMENUACTIVE & CPWindow1::menu1_Modules_Spareparts_EvMenuActive;
311 menu1_Modules.CreateChild(&menu1_Modules_Spareparts);
313 menu1_Tools_SerialTerm.SetFOwner(
this);
314 menu1_Tools_SerialTerm.SetClass(lxT(
"CItemMenu"));
315 menu1_Tools_SerialTerm.SetName(lxT(
"menu1_Tools_SerialTerm"));
316 menu1_Tools_SerialTerm.SetTag(0);
317 menu1_Tools_SerialTerm.SetText(lxT(
"Serial Terminal"));
318 menu1_Tools_SerialTerm.SetEnable(1);
319 menu1_Tools_SerialTerm.SetSubMenu(NULL);
320 menu1_Tools_SerialTerm.EvMenuActive = EVMENUACTIVE & CPWindow1::menu1_Tools_SerialTerm_EvMenuActive;
321 menu1_Tools.CreateChild(&menu1_Tools_SerialTerm);
323 menu1_Tools_SerialRemoteTank.SetFOwner(
this);
324 menu1_Tools_SerialRemoteTank.SetClass(lxT(
"CItemMenu"));
325 menu1_Tools_SerialRemoteTank.SetName(lxT(
"menu1_Tools_SerialRemoteTank"));
326 menu1_Tools_SerialRemoteTank.SetTag(0);
327 menu1_Tools_SerialRemoteTank.SetText(lxT(
"Serial Remote Tank"));
328 menu1_Tools_SerialRemoteTank.SetEnable(1);
329 menu1_Tools_SerialRemoteTank.SetSubMenu(NULL);
330 menu1_Tools_SerialRemoteTank.EvMenuActive = EVMENUACTIVE & CPWindow1::menu1_Tools_SerialRemoteTank_EvMenuActive;
331 menu1_Tools.CreateChild(&menu1_Tools_SerialRemoteTank);
333 menu1_Tools_Esp8266ModemSimulator.SetFOwner(
this);
334 menu1_Tools_Esp8266ModemSimulator.SetClass(lxT(
"CItemMenu"));
335 menu1_Tools_Esp8266ModemSimulator.SetName(lxT(
"menu1_Tools_Esp8266ModemSimulator"));
336 menu1_Tools_Esp8266ModemSimulator.SetTag(0);
337 menu1_Tools_Esp8266ModemSimulator.SetText(lxT(
"Esp8266 Modem Simulator"));
338 menu1_Tools_Esp8266ModemSimulator.SetEnable(1);
339 menu1_Tools_Esp8266ModemSimulator.SetSubMenu(NULL);
340 menu1_Tools_Esp8266ModemSimulator.EvMenuActive =
341 EVMENUACTIVE & CPWindow1::menu1_Tools_Esp8266ModemSimulator_EvMenuActive;
342 menu1_Tools.CreateChild(&menu1_Tools_Esp8266ModemSimulator);
344 menu1_Tools_ArduinoBootloader.SetFOwner(
this);
345 menu1_Tools_ArduinoBootloader.SetClass(lxT(
"CItemMenu"));
346 menu1_Tools_ArduinoBootloader.SetName(lxT(
"menu1_Tools_ArduinoBootloader"));
347 menu1_Tools_ArduinoBootloader.SetTag(0);
348 menu1_Tools_ArduinoBootloader.SetText(lxT(
"Arduino Bootloader"));
349 menu1_Tools_ArduinoBootloader.SetEnable(1);
350 menu1_Tools_ArduinoBootloader.SetSubMenu(NULL);
351 menu1_Tools_ArduinoBootloader.EvMenuActive = EVMENUACTIVE & CPWindow1::menu1_Tools_ArduinoBootloader_EvMenuActive;
352 menu1_Tools.CreateChild(&menu1_Tools_ArduinoBootloader);
354 menu1_Tools_MPLABXDebuggerPlugin.SetFOwner(
this);
355 menu1_Tools_MPLABXDebuggerPlugin.SetClass(lxT(
"CItemMenu"));
356 menu1_Tools_MPLABXDebuggerPlugin.SetName(lxT(
"menu1_Tools_MPLABXDebuggerPlugin"));
357 menu1_Tools_MPLABXDebuggerPlugin.SetTag(0);
358 menu1_Tools_MPLABXDebuggerPlugin.SetText(lxT(
"MPLABX Debugger Plugin"));
359 menu1_Tools_MPLABXDebuggerPlugin.SetEnable(1);
360 menu1_Tools_MPLABXDebuggerPlugin.SetSubMenu(NULL);
361 menu1_Tools_MPLABXDebuggerPlugin.EvMenuActive =
362 EVMENUACTIVE & CPWindow1::menu1_Tools_MPLABXDebuggerPlugin_EvMenuActive;
363 menu1_Tools.CreateChild(&menu1_Tools_MPLABXDebuggerPlugin);
365 menu1_Tools_PinViewer.SetFOwner(
this);
366 menu1_Tools_PinViewer.SetClass(lxT(
"CItemMenu"));
367 menu1_Tools_PinViewer.SetName(lxT(
"menu1_Tools_PinViewer"));
368 menu1_Tools_PinViewer.SetTag(0);
369 menu1_Tools_PinViewer.SetText(lxT(
"Pin Viewer"));
370 menu1_Tools_PinViewer.SetEnable(1);
371 menu1_Tools_PinViewer.SetSubMenu(NULL);
372 menu1_Tools_PinViewer.EvMenuActive = EVMENUACTIVE & CPWindow1::menu1_Tools_PinViewer_EvMenuActive;
373 menu1_Tools.CreateChild(&menu1_Tools_PinViewer);
375 menu1_Help_Contents.SetFOwner(
this);
376 menu1_Help_Contents.SetClass(lxT(
"CItemMenu"));
377 menu1_Help_Contents.SetName(lxT(
"menu1_Help_Contents"));
378 menu1_Help_Contents.SetTag(0);
379 menu1_Help_Contents.SetText(lxT(
"Contents"));
380 menu1_Help_Contents.SetEnable(1);
381 menu1_Help_Contents.SetSubMenu(NULL);
382 menu1_Help_Contents.EvMenuActive = EVMENUACTIVE & CPWindow1::menu1_Help_Contents_EvMenuActive;
383 menu1_Help.CreateChild(&menu1_Help_Contents);
385 menu1_Help_Board.SetFOwner(
this);
386 menu1_Help_Board.SetClass(lxT(
"CItemMenu"));
387 menu1_Help_Board.SetName(lxT(
"menu1_Help_Board"));
388 menu1_Help_Board.SetTag(0);
389 menu1_Help_Board.SetText(lxT(
"Board"));
390 menu1_Help_Board.SetEnable(1);
391 menu1_Help_Board.SetSubMenu(NULL);
392 menu1_Help_Board.EvMenuActive = EVMENUACTIVE & CPWindow1::menu1_Help_Board_EvMenuActive;
393 menu1_Help.CreateChild(&menu1_Help_Board);
395 menu1_Help_Examples.SetFOwner(
this);
396 menu1_Help_Examples.SetClass(lxT(
"CItemMenu"));
397 menu1_Help_Examples.SetName(lxT(
"menu1_Help_Examples"));
398 menu1_Help_Examples.SetTag(0);
399 menu1_Help_Examples.SetText(lxT(
"Examples"));
400 menu1_Help_Examples.SetEnable(1);
401 menu1_Help_Examples.SetSubMenu(NULL);
402 menu1_Help_Examples.EvMenuActive = EVMENUACTIVE & CPWindow1::menu1_Help_Examples_EvMenuActive;
403 menu1_Help.CreateChild(&menu1_Help_Examples);
405 menu1_Help_About_Board.SetFOwner(
this);
406 menu1_Help_About_Board.SetClass(lxT(
"CItemMenu"));
407 menu1_Help_About_Board.SetName(lxT(
"menu1_Help_About_Board"));
408 menu1_Help_About_Board.SetTag(0);
409 menu1_Help_About_Board.SetText(lxT(
"About Board"));
410 menu1_Help_About_Board.SetEnable(1);
411 menu1_Help_About_Board.SetSubMenu(NULL);
412 menu1_Help_About_Board.EvMenuActive = EVMENUACTIVE & CPWindow1::menu1_Help_About_Board_EvMenuActive;
413 menu1_Help.CreateChild(&menu1_Help_About_Board);
415 menu1_Help_About_PICSimLab.SetFOwner(
this);
416 menu1_Help_About_PICSimLab.SetClass(lxT(
"CItemMenu"));
417 menu1_Help_About_PICSimLab.SetName(lxT(
"menu1_Help_About_PICSimLab"));
418 menu1_Help_About_PICSimLab.SetTag(0);
419 menu1_Help_About_PICSimLab.SetText(lxT(
"About PICSimLab"));
420 menu1_Help_About_PICSimLab.SetEnable(1);
421 menu1_Help_About_PICSimLab.SetSubMenu(NULL);
422 menu1_Help_About_PICSimLab.EvMenuActive = EVMENUACTIVE & CPWindow1::menu1_Help_About_PICSimLab_EvMenuActive;
423 menu1_Help.CreateChild(&menu1_Help_About_PICSimLab);
425 statusbar1.SetFOwner(
this);
426 statusbar1.SetClass(lxT(
"CStatusbar"));
427 statusbar1.SetName(lxT(
"statusbar1"));
428 statusbar1.SetTag(0);
429 statusbar1.SetFields(lxT(
"port,stats,serial,"));
430 CreateChild(&statusbar1);
432 togglebutton1.SetFOwner(
this);
433 togglebutton1.SetClass(lxT(
"CToggleButton"));
434 togglebutton1.SetName(lxT(
"togglebutton1"));
435 togglebutton1.SetTag(0);
436 togglebutton1.SetX(84);
437 togglebutton1.SetY(34);
438 togglebutton1.SetWidth(83);
439 togglebutton1.SetHeight(27);
440 togglebutton1.SetHint(lxT(
""));
441 togglebutton1.SetEnable(1);
442 togglebutton1.SetVisible(1);
443 togglebutton1.SetColor(lxT(
"#000001"));
444 togglebutton1.SetPopupMenu(NULL);
445 togglebutton1.SetText(lxT(
"Debug"));
446 togglebutton1.SetCheck(0);
447 togglebutton1.EvOnToggleButton = EVONTOGGLEBUTTON & CPWindow1::togglebutton1_EvOnToggleButton;
448 CreateChild(&togglebutton1);
450 filedialog2.SetFOwner(
this);
451 filedialog2.SetClass(lxT(
"CFileDialog"));
452 filedialog2.SetName(lxT(
"filedialog2"));
453 filedialog2.SetTag(0);
454 filedialog2.SetFileName(lxT(
"untitled.pzw"));
455 filedialog2.SetFilter(lxT(
"PICSimLab Workspace (*.pzw)|*.pzw"));
456 filedialog2.SetType(129);
457 filedialog2.EvOnClose = EVONCLOSE & CPWindow1::filedialog2_EvOnClose;
458 CreateChild(&filedialog2);
462 timer1.SetTime(BASETIMER);
465 thread1.SetFOwner(
this);
466 thread1.SetClass(lxT(
"CThread"));
467 thread1.SetName(lxT(
"thread1"));
469 thread1.EvThreadRun = EVTHREADRUN & CPWindow1::thread1_EvThreadRun;
470 CreateChild(&thread1);
473 thread2.SetFOwner(
this);
474 thread2.SetClass(lxT(
"CThread"));
475 thread2.SetName(lxT(
"thread2"));
477 thread2.EvThreadRun = EVTHREADRUN & CPWindow1::thread2_EvThreadRun;
478 CreateChild(&thread2);
481 thread3.SetFOwner(
this);
482 thread3.SetClass(lxT(
"CThread"));
483 thread3.SetName(lxT(
"thread3"));
485 thread3.EvThreadRun = EVTHREADRUN & CPWindow1::thread3_EvThreadRun;
486 CreateChild(&thread3);
494 menu1.DestroyChild(&menu1_Tools);
498 DestroyChild(&togglebutton1);
501 memset(Bitmaps, 0,
sizeof(Bitmaps));
502 memset(Windows, 0,
sizeof(Windows));
503 memset(Mutexs, 0,
sizeof(Mutexs));
504 memset(AudioChannels, 0,
sizeof(AudioChannels));
506 Windows[PW_MAIN] =
this;