Warning: Can't use blame annotator:
svn blame failed on trunk/desktop/mainWindow.rbfrm: ("Can't find a temporary directory: Internal error", 20014)

source: trunk/desktop/mainWindow.rbfrm @ 30

Revision 30, 117.1 KB checked in by pinwc4, 15 years ago (diff)

Added beginning logic to decode data sent from car

RevLine 
1#tag Window
2Begin Window mainWindow
3   BackColor       =   &hFFFFFF
4   Backdrop        =   1384026073
5   CloseButton     =   True
6   Composite       =   True
7   Frame           =   0
8   FullScreen      =   False
9   HasBackColor    =   False
10   Height          =   428
11   ImplicitInstance=   True
12   LiveResize      =   True
13   MacProcID       =   0
14   MaxHeight       =   32000
15   MaximizeButton  =   False
16   MaxWidth        =   32000
17   MenuBar         =   1097909413
18   MenuBarVisible  =   True
19   MinHeight       =   64
20   MinimizeButton  =   True
21   MinWidth        =   64
22   Placement       =   0
23   Resizeable      =   False
24   Title           =   "Flip Side ICS"
25   Visible         =   True
26   Width           =   720
27   Begin PushButton PushButton_Read
28      AutoDeactivate  =   True
29      Bold            =   ""
30      Cancel          =   ""
31      Caption         =   "Read"
32      Default         =   ""
33      Enabled         =   False
34      Height          =   20
35      HelpTag         =   ""
36      Index           =   -2147483648
37      InitialParent   =   ""
38      Italic          =   ""
39      Left            =   413
40      LockBottom      =   True
41      LockedInPosition=   False
42      LockLeft        =   ""
43      LockRight       =   ""
44      LockTop         =   ""
45      Scope           =   0
46      TabIndex        =   4
47      TabPanelIndex   =   0
48      TabStop         =   True
49      TextFont        =   "System"
50      TextSize        =   0
51      TextUnit        =   0
52      Top             =   388
53      Underline       =   ""
54      Visible         =   True
55      Width           =   88
56   End
57   Begin PushButton PushButton_Write
58      AutoDeactivate  =   True
59      Bold            =   ""
60      Cancel          =   ""
61      Caption         =   "Write"
62      Default         =   False
63      Enabled         =   False
64      Height          =   20
65      HelpTag         =   ""
66      Index           =   -2147483648
67      InitialParent   =   ""
68      Italic          =   ""
69      Left            =   512
70      LockBottom      =   True
71      LockedInPosition=   False
72      LockLeft        =   ""
73      LockRight       =   ""
74      LockTop         =   ""
75      Scope           =   0
76      TabIndex        =   5
77      TabPanelIndex   =   0
78      TabStop         =   True
79      TextFont        =   "System"
80      TextSize        =   0
81      TextUnit        =   0
82      Top             =   388
83      Underline       =   ""
84      Visible         =   True
85      Width           =   88
86   End
87   Begin TabPanel TabPanel1
88      AutoDeactivate  =   True
89      Bold            =   ""
90      Enabled         =   True
91      Height          =   366
92      HelpTag         =   ""
93      Index           =   -2147483648
94      InitialParent   =   ""
95      Italic          =   ""
96      Left            =   195
97      LockBottom      =   ""
98      LockedInPosition=   False
99      LockLeft        =   ""
100      LockRight       =   ""
101      LockTop         =   ""
102      Panels          =   ""
103      Scope           =   0
104      SmallTabs       =   False
105      TabDefinition   =   "Car\rCustom"
106      TabIndex        =   43
107      TabPanelIndex   =   0
108      TabStop         =   True
109      TextFont        =   "System"
110      TextSize        =   0
111      TextUnit        =   0
112      Top             =   0
113      Underline       =   ""
114      Value           =   1
115      Visible         =   True
116      Width           =   525
117      Begin EditField EditField_Byte1
118         AcceptTabs      =   ""
119         Alignment       =   0
120         AutoDeactivate  =   True
121         BackColor       =   &hFFFFFF
122         Bold            =   ""
123         Border          =   True
124         DataField       =   ""
125         DataSource      =   ""
126         Enabled         =   False
127         Format          =   ""
128         Height          =   22
129         HelpTag         =   ""
130         Index           =   -2147483648
131         InitialParent   =   "TabPanel1"
132         Italic          =   ""
133         Left            =   221
134         LimitText       =   0
135         LockBottom      =   ""
136         LockedInPosition=   False
137         LockLeft        =   ""
138         LockRight       =   ""
139         LockTop         =   ""
140         Mask            =   "###"
141         Multiline       =   ""
142         Password        =   ""
143         ReadOnly        =   ""
144         Scope           =   0
145         ScrollbarHorizontal=   ""
146         ScrollbarVertical=   True
147         Styled          =   ""
148         TabIndex        =   2
149         TabPanelIndex   =   2
150         TabStop         =   True
151         Text            =   ""
152         TextColor       =   &h000000
153         TextFont        =   "System"
154         TextSize        =   0
155         TextUnit        =   0
156         Top             =   58
157         Underline       =   ""
158         UseFocusRing    =   True
159         Visible         =   True
160         Width           =   32
161      End
162      Begin EditField EditField_Byte9
163         AcceptTabs      =   ""
164         Alignment       =   0
165         AutoDeactivate  =   True
166         BackColor       =   &hFFFFFF
167         Bold            =   ""
168         Border          =   True
169         DataField       =   ""
170         DataSource      =   ""
171         Enabled         =   True
172         Format          =   ""
173         Height          =   22
174         HelpTag         =   ""
175         Index           =   -2147483648
176         InitialParent   =   "TabPanel1"
177         Italic          =   ""
178         Left            =   221
179         LimitText       =   0
180         LockBottom      =   ""
181         LockedInPosition=   False
182         LockLeft        =   ""
183         LockRight       =   ""
184         LockTop         =   ""
185         Mask            =   "###"
186         Multiline       =   ""
187         Password        =   ""
188         ReadOnly        =   ""
189         Scope           =   0
190         ScrollbarHorizontal=   ""
191         ScrollbarVertical=   True
192         Styled          =   ""
193         TabIndex        =   12
194         TabPanelIndex   =   2
195         TabStop         =   True
196         Text            =   ""
197         TextColor       =   &h000000
198         TextFont        =   "System"
199         TextSize        =   0
200         TextUnit        =   0
201         Top             =   331
202         Underline       =   ""
203         UseFocusRing    =   True
204         Visible         =   True
205         Width           =   32
206      End
207      Begin EditField EditField_Byte8
208         AcceptTabs      =   ""
209         Alignment       =   0
210         AutoDeactivate  =   True
211         BackColor       =   &hFFFFFF
212         Bold            =   ""
213         Border          =   True
214         DataField       =   ""
215         DataSource      =   ""
216         Enabled         =   True
217         Format          =   ""
218         Height          =   22
219         HelpTag         =   ""
220         Index           =   -2147483648
221         InitialParent   =   "TabPanel1"
222         Italic          =   ""
223         Left            =   221
224         LimitText       =   0
225         LockBottom      =   ""
226         LockedInPosition=   False
227         LockLeft        =   ""
228         LockRight       =   ""
229         LockTop         =   ""
230         Mask            =   "###"
231         Multiline       =   ""
232         Password        =   ""
233         ReadOnly        =   ""
234         Scope           =   0
235         ScrollbarHorizontal=   ""
236         ScrollbarVertical=   True
237         Styled          =   ""
238         TabIndex        =   13
239         TabPanelIndex   =   2
240         TabStop         =   True
241         Text            =   ""
242         TextColor       =   &h000000
243         TextFont        =   "System"
244         TextSize        =   0
245         TextUnit        =   0
246         Top             =   296
247         Underline       =   ""
248         UseFocusRing    =   True
249         Visible         =   True
250         Width           =   32
251      End
252      Begin EditField EditField_Byte7
253         AcceptTabs      =   ""
254         Alignment       =   0
255         AutoDeactivate  =   True
256         BackColor       =   &hFFFFFF
257         Bold            =   ""
258         Border          =   True
259         DataField       =   ""
260         DataSource      =   ""
261         Enabled         =   True
262         Format          =   ""
263         Height          =   22
264         HelpTag         =   ""
265         Index           =   -2147483648
266         InitialParent   =   "TabPanel1"
267         Italic          =   ""
268         Left            =   221
269         LimitText       =   0
270         LockBottom      =   ""
271         LockedInPosition=   False
272         LockLeft        =   ""
273         LockRight       =   ""
274         LockTop         =   ""
275         Mask            =   "###"
276         Multiline       =   ""
277         Password        =   ""
278         ReadOnly        =   ""
279         Scope           =   0
280         ScrollbarHorizontal=   ""
281         ScrollbarVertical=   True
282         Styled          =   ""
283         TabIndex        =   14
284         TabPanelIndex   =   2
285         TabStop         =   True
286         Text            =   ""
287         TextColor       =   &h000000
288         TextFont        =   "System"
289         TextSize        =   0
290         TextUnit        =   0
291         Top             =   262
292         Underline       =   ""
293         UseFocusRing    =   True
294         Visible         =   True
295         Width           =   32
296      End
297      Begin EditField EditField_Byte6
298         AcceptTabs      =   ""
299         Alignment       =   0
300         AutoDeactivate  =   True
301         BackColor       =   &hFFFFFF
302         Bold            =   ""
303         Border          =   True
304         DataField       =   ""
305         DataSource      =   ""
306         Enabled         =   True
307         Format          =   ""
308         Height          =   22
309         HelpTag         =   ""
310         Index           =   -2147483648
311         InitialParent   =   "TabPanel1"
312         Italic          =   ""
313         Left            =   221
314         LimitText       =   0
315         LockBottom      =   ""
316         LockedInPosition=   False
317         LockLeft        =   ""
318         LockRight       =   ""
319         LockTop         =   ""
320         Mask            =   "###"
321         Multiline       =   ""
322         Password        =   ""
323         ReadOnly        =   ""
324         Scope           =   0
325         ScrollbarHorizontal=   ""
326         ScrollbarVertical=   True
327         Styled          =   ""
328         TabIndex        =   15
329         TabPanelIndex   =   2
330         TabStop         =   True
331         Text            =   ""
332         TextColor       =   &h000000
333         TextFont        =   "System"
334         TextSize        =   0
335         TextUnit        =   0
336         Top             =   228
337         Underline       =   ""
338         UseFocusRing    =   True
339         Visible         =   True
340         Width           =   32
341      End
342      Begin EditField EditField_Byte5
343         AcceptTabs      =   ""
344         Alignment       =   0
345         AutoDeactivate  =   True
346         BackColor       =   &hFFFFFF
347         Bold            =   ""
348         Border          =   True
349         DataField       =   ""
350         DataSource      =   ""
351         Enabled         =   True
352         Format          =   ""
353         Height          =   22
354         HelpTag         =   ""
355         Index           =   -2147483648
356         InitialParent   =   "TabPanel1"
357         Italic          =   ""
358         Left            =   221
359         LimitText       =   0
360         LockBottom      =   ""
361         LockedInPosition=   False
362         LockLeft        =   ""
363         LockRight       =   ""
364         LockTop         =   ""
365         Mask            =   "###"
366         Multiline       =   ""
367         Password        =   ""
368         ReadOnly        =   ""
369         Scope           =   0
370         ScrollbarHorizontal=   ""
371         ScrollbarVertical=   True
372         Styled          =   ""
373         TabIndex        =   16
374         TabPanelIndex   =   2
375         TabStop         =   True
376         Text            =   ""
377         TextColor       =   &h000000
378         TextFont        =   "System"
379         TextSize        =   0
380         TextUnit        =   0
381         Top             =   195
382         Underline       =   ""
383         UseFocusRing    =   True
384         Visible         =   True
385         Width           =   32
386      End
387      Begin EditField EditField_Byte4
388         AcceptTabs      =   ""
389         Alignment       =   0
390         AutoDeactivate  =   True
391         BackColor       =   &hFFFFFF
392         Bold            =   ""
393         Border          =   True
394         DataField       =   ""
395         DataSource      =   ""
396         Enabled         =   True
397         Format          =   ""
398         Height          =   22
399         HelpTag         =   ""
400         Index           =   -2147483648
401         InitialParent   =   "TabPanel1"
402         Italic          =   ""
403         Left            =   221
404         LimitText       =   0
405         LockBottom      =   ""
406         LockedInPosition=   False
407         LockLeft        =   ""
408         LockRight       =   ""
409         LockTop         =   ""
410         Mask            =   "###"
411         Multiline       =   ""
412         Password        =   ""
413         ReadOnly        =   ""
414         Scope           =   0
415         ScrollbarHorizontal=   ""
416         ScrollbarVertical=   True
417         Styled          =   ""
418         TabIndex        =   17
419         TabPanelIndex   =   2
420         TabStop         =   True
421         Text            =   ""
422         TextColor       =   &h000000
423         TextFont        =   "System"
424         TextSize        =   0
425         TextUnit        =   0
426         Top             =   161
427         Underline       =   ""
428         UseFocusRing    =   True
429         Visible         =   True
430         Width           =   32
431      End
432      Begin EditField EditField_Byte3
433         AcceptTabs      =   ""
434         Alignment       =   0
435         AutoDeactivate  =   True
436         BackColor       =   &hFFFFFF
437         Bold            =   ""
438         Border          =   True
439         DataField       =   ""
440         DataSource      =   ""
441         Enabled         =   True
442         Format          =   ""
443         Height          =   22
444         HelpTag         =   ""
445         Index           =   -2147483648
446         InitialParent   =   "TabPanel1"
447         Italic          =   ""
448         Left            =   221
449         LimitText       =   0
450         LockBottom      =   ""
451         LockedInPosition=   False
452         LockLeft        =   ""
453         LockRight       =   ""
454         LockTop         =   ""
455         Mask            =   "###"
456         Multiline       =   ""
457         Password        =   ""
458         ReadOnly        =   ""
459         Scope           =   0
460         ScrollbarHorizontal=   ""
461         ScrollbarVertical=   True
462         Styled          =   ""
463         TabIndex        =   18
464         TabPanelIndex   =   2
465         TabStop         =   True
466         Text            =   ""
467         TextColor       =   &h000000
468         TextFont        =   "System"
469         TextSize        =   0
470         TextUnit        =   0
471         Top             =   126
472         Underline       =   ""
473         UseFocusRing    =   True
474         Visible         =   True
475         Width           =   32
476      End
477      Begin EditField EditField_Byte2
478         AcceptTabs      =   ""
479         Alignment       =   0
480         AutoDeactivate  =   True
481         BackColor       =   &hFFFFFF
482         Bold            =   ""
483         Border          =   True
484         DataField       =   ""
485         DataSource      =   ""
486         Enabled         =   False
487         Format          =   ""
488         Height          =   22
489         HelpTag         =   ""
490         Index           =   -2147483648
491         InitialParent   =   "TabPanel1"
492         Italic          =   ""
493         Left            =   221
494         LimitText       =   0
495         LockBottom      =   ""
496         LockedInPosition=   False
497         LockLeft        =   ""
498         LockRight       =   ""
499         LockTop         =   ""
500         Mask            =   "###"
501         Multiline       =   ""
502         Password        =   ""
503         ReadOnly        =   ""
504         Scope           =   0
505         ScrollbarHorizontal=   ""
506         ScrollbarVertical=   True
507         Styled          =   ""
508         TabIndex        =   19
509         TabPanelIndex   =   2
510         TabStop         =   True
511         Text            =   ""
512         TextColor       =   &h000000
513         TextFont        =   "System"
514         TextSize        =   0
515         TextUnit        =   0
516         Top             =   92
517         Underline       =   ""
518         UseFocusRing    =   True
519         Visible         =   True
520         Width           =   32
521      End
522      Begin StaticText StaticText_Byte1
523         AutoDeactivate  =   True
524         Bold            =   ""
525         DataField       =   ""
526         DataSource      =   ""
527         Enabled         =   True
528         Height          =   20
529         HelpTag         =   ""
530         Index           =   -2147483648
531         InitialParent   =   "TabPanel1"
532         Italic          =   ""
533         Left            =   265
534         LockBottom      =   ""
535         LockedInPosition=   False
536         LockLeft        =   ""
537         LockRight       =   ""
538         LockTop         =   ""
539         Multiline       =   ""
540         Scope           =   0
541         TabIndex        =   21
542         TabPanelIndex   =   2
543         Text            =   "Header"
544         TextAlign       =   0
545         TextColor       =   "&cB8B8B8"
546         TextFont        =   "System"
547         TextSize        =   0
548         TextUnit        =   0
549         Top             =   58
550         Underline       =   ""
551         Visible         =   True
552         Width           =   106
553      End
554      Begin StaticText StaticText_Byte6
555         AutoDeactivate  =   True
556         Bold            =   ""
557         DataField       =   ""
558         DataSource      =   ""
559         Enabled         =   True
560         Height          =   20
561         HelpTag         =   ""
562         Index           =   -2147483648
563         InitialParent   =   "TabPanel1"
564         Italic          =   ""
565         Left            =   265
566         LockBottom      =   ""
567         LockedInPosition=   False
568         LockLeft        =   ""
569         LockRight       =   ""
570         LockTop         =   ""
571         Multiline       =   ""
572         Scope           =   0
573         TabIndex        =   22
574         TabPanelIndex   =   2
575         Text            =   "Drive Band"
576         TextAlign       =   0
577         TextColor       =   "&cB8B8B8"
578         TextFont        =   "System"
579         TextSize        =   0
580         TextUnit        =   0
581         Top             =   228
582         Underline       =   ""
583         Visible         =   True
584         Width           =   106
585      End
586      Begin StaticText StaticText_Byte5
587         AutoDeactivate  =   True
588         Bold            =   ""
589         DataField       =   ""
590         DataSource      =   ""
591         Enabled         =   True
592         Height          =   20
593         HelpTag         =   ""
594         Index           =   -2147483648
595         InitialParent   =   "TabPanel1"
596         Italic          =   ""
597         Left            =   265
598         LockBottom      =   ""
599         LockedInPosition=   False
600         LockLeft        =   ""
601         LockRight       =   ""
602         LockTop         =   ""
603         Multiline       =   ""
604         Scope           =   0
605         TabIndex        =   23
606         TabPanelIndex   =   2
607         Text            =   "Punch"
608         TextAlign       =   0
609         TextColor       =   "&cB8B8B8"
610         TextFont        =   "System"
611         TextSize        =   0
612         TextUnit        =   0
613         Top             =   194
614         Underline       =   ""
615         Visible         =   True
616         Width           =   106
617      End
618      Begin StaticText StaticText_Byte4
619         AutoDeactivate  =   True
620         Bold            =   ""
621         DataField       =   ""
622         DataSource      =   ""
623         Enabled         =   True
624         Height          =   20
625         HelpTag         =   ""
626         Index           =   -2147483648
627         InitialParent   =   "TabPanel1"
628         Italic          =   ""
629         Left            =   265
630         LockBottom      =   ""
631         LockedInPosition=   False
632         LockLeft        =   ""
633         LockRight       =   ""
634         LockTop         =   ""
635         Multiline       =   ""
636         Scope           =   0
637         TabIndex        =   24
638         TabPanelIndex   =   2
639         Text            =   "Speed"
640         TextAlign       =   0
641         TextColor       =   "&cB8B8B8"
642         TextFont        =   "System"
643         TextSize        =   0
644         TextUnit        =   0
645         Top             =   162
646         Underline       =   ""
647         Visible         =   True
648         Width           =   106
649      End
650      Begin StaticText StaticText_Byte3
651         AutoDeactivate  =   True
652         Bold            =   ""
653         DataField       =   ""
654         DataSource      =   ""
655         Enabled         =   True
656         Height          =   20
657         HelpTag         =   ""
658         Index           =   -2147483648
659         InitialParent   =   "TabPanel1"
660         Italic          =   ""
661         Left            =   265
662         LockBottom      =   ""
663         LockedInPosition=   False
664         LockLeft        =   ""
665         LockRight       =   ""
666         LockTop         =   ""
667         Multiline       =   ""
668         Scope           =   0
669         TabIndex        =   25
670         TabPanelIndex   =   2
671         Text            =   "Gain"
672         TextAlign       =   0
673         TextColor       =   "&cB8B8B8"
674         TextFont        =   "System"
675         TextSize        =   0
676         TextUnit        =   0
677         Top             =   126
678         Underline       =   ""
679         Visible         =   True
680         Width           =   106
681      End
682      Begin StaticText StaticText_Byte2
683         AutoDeactivate  =   True
684         Bold            =   ""
685         DataField       =   ""
686         DataSource      =   ""
687         Enabled         =   True
688         Height          =   20
689         HelpTag         =   ""
690         Index           =   -2147483648
691         InitialParent   =   "TabPanel1"
692         Italic          =   ""
693         Left            =   265
694         LockBottom      =   ""
695         LockedInPosition=   False
696         LockLeft        =   ""
697         LockRight       =   ""
698         LockTop         =   ""
699         Multiline       =   ""
700         Scope           =   0
701         TabIndex        =   26
702         TabPanelIndex   =   2
703         Text            =   "Header"
704         TextAlign       =   0
705         TextColor       =   "&cB8B8B8"
706         TextFont        =   "System"
707         TextSize        =   0
708         TextUnit        =   0
709         Top             =   92
710         Underline       =   ""
711         Visible         =   True
712         Width           =   106
713      End
714      Begin StaticText StaticText_Byte7
715         AutoDeactivate  =   True
716         Bold            =   ""
717         DataField       =   ""
718         DataSource      =   ""
719         Enabled         =   True
720         Height          =   20
721         HelpTag         =   ""
722         Index           =   -2147483648
723         InitialParent   =   "TabPanel1"
724         Italic          =   ""
725         Left            =   267
726         LockBottom      =   ""
727         LockedInPosition=   False
728         LockLeft        =   ""
729         LockRight       =   ""
730         LockTop         =   ""
731         Multiline       =   ""
732         Scope           =   0
733         TabIndex        =   27
734         TabPanelIndex   =   2
735         Text            =   "Dump"
736         TextAlign       =   0
737         TextColor       =   "&cB8B8B8"
738         TextFont        =   "System"
739         TextSize        =   0
740         TextUnit        =   0
741         Top             =   264
742         Underline       =   ""
743         Visible         =   True
744         Width           =   106
745      End
746      Begin StaticText StaticText_Byte8
747         AutoDeactivate  =   True
748         Bold            =   ""
749         DataField       =   ""
750         DataSource      =   ""
751         Enabled         =   True
752         Height          =   20
753         HelpTag         =   ""
754         Index           =   -2147483648
755         InitialParent   =   "TabPanel1"
756         Italic          =   ""
757         Left            =   267
758         LockBottom      =   ""
759         LockedInPosition=   False
760         LockLeft        =   ""
761         LockRight       =   ""
762         LockTop         =   ""
763         Multiline       =   ""
764         Scope           =   0
765         TabIndex        =   28
766         TabPanelIndex   =   2
767         Text            =   "Drive Frequency"
768         TextAlign       =   0
769         TextColor       =   "&cB8B8B8"
770         TextFont        =   "System"
771         TextSize        =   0
772         TextUnit        =   0
773         Top             =   297
774         Underline       =   ""
775         Visible         =   True
776         Width           =   106
777      End
778      Begin StaticText StaticText_Byte9
779         AutoDeactivate  =   True
780         Bold            =   ""
781         DataField       =   ""
782         DataSource      =   ""
783         Enabled         =   True
784         Height          =   20
785         HelpTag         =   ""
786         Index           =   -2147483648
787         InitialParent   =   "TabPanel1"
788         Italic          =   ""
789         Left            =   265
790         LockBottom      =   ""
791         LockedInPosition=   False
792         LockLeft        =   ""
793         LockRight       =   ""
794         LockTop         =   ""
795         Multiline       =   ""
796         Scope           =   0
797         TabIndex        =   29
798         TabPanelIndex   =   2
799         Text            =   "Unknown"
800         TextAlign       =   0
801         TextColor       =   "&cB8B8B8"
802         TextFont        =   "System"
803         TextSize        =   0
804         TextUnit        =   0
805         Top             =   333
806         Underline       =   ""
807         Visible         =   True
808         Width           =   106
809      End
810      Begin Slider Slider_THGain
811         AutoDeactivate  =   True
812         Enabled         =   True
813         Height          =   16
814         HelpTag         =   ""
815         Index           =   -2147483648
816         InitialParent   =   "TabPanel1"
817         Left            =   448
818         LineStep        =   1
819         LiveScroll      =   ""
820         LockBottom      =   ""
821         LockedInPosition=   False
822         LockLeft        =   ""
823         LockRight       =   ""
824         LockTop         =   ""
825         Maximum         =   255
826         Minimum         =   1
827         PageStep        =   20
828         Scope           =   0
829         TabIndex        =   0
830         TabPanelIndex   =   1
831         TabStop         =   True
832         TickStyle       =   0
833         Top             =   218
834         Value           =   0
835         Visible         =   True
836         Width           =   100
837      End
838      Begin EditField EditField_THGain
839         AcceptTabs      =   ""
840         Alignment       =   0
841         AutoDeactivate  =   True
842         BackColor       =   &hFFFFFF
843         Bold            =   ""
844         Border          =   True
845         DataField       =   ""
846         DataSource      =   ""
847         Enabled         =   True
848         Format          =   ""
849         Height          =   22
850         HelpTag         =   ""
851         Index           =   -2147483648
852         InitialParent   =   "TabPanel1"
853         Italic          =   ""
854         Left            =   560
855         LimitText       =   0
856         LockBottom      =   ""
857         LockedInPosition=   False
858         LockLeft        =   ""
859         LockRight       =   ""
860         LockTop         =   ""
861         Mask            =   "###"
862         Multiline       =   ""
863         Password        =   ""
864         ReadOnly        =   ""
865         Scope           =   0
866         ScrollbarHorizontal=   ""
867         ScrollbarVertical=   True
868         Styled          =   ""
869         TabIndex        =   1
870         TabPanelIndex   =   1
871         TabStop         =   True
872         Text            =   ""
873         TextColor       =   &h000000
874         TextFont        =   "System"
875         TextSize        =   0
876         TextUnit        =   0
877         Top             =   218
878         Underline       =   ""
879         UseFocusRing    =   True
880         Visible         =   True
881         Width           =   32
882      End
883      Begin StaticText StaticText_THGain
884         AutoDeactivate  =   True
885         Bold            =   ""
886         DataField       =   ""
887         DataSource      =   ""
888         Enabled         =   True
889         Height          =   20
890         HelpTag         =   ""
891         Index           =   -2147483648
892         InitialParent   =   "TabPanel1"
893         Italic          =   ""
894         Left            =   604
895         LockBottom      =   ""
896         LockedInPosition=   False
897         LockLeft        =   ""
898         LockRight       =   ""
899         LockTop         =   ""
900         Multiline       =   ""
901         Scope           =   0
902         TabIndex        =   2
903         TabPanelIndex   =   1
904         Text            =   "Throttle Gain"
905         TextAlign       =   0
906         TextColor       =   "&cB8B8B8"
907         TextFont        =   "System"
908         TextSize        =   0
909         TextUnit        =   0
910         Top             =   218
911         Underline       =   ""
912         Visible         =   True
913         Width           =   128
914      End
915      Begin Slider Slider_STGain
916         AutoDeactivate  =   True
917         Enabled         =   True
918         Height          =   16
919         HelpTag         =   ""
920         Index           =   -2147483648
921         InitialParent   =   "TabPanel1"
922         Left            =   448
923         LineStep        =   1
924         LiveScroll      =   ""
925         LockBottom      =   ""
926         LockedInPosition=   False
927         LockLeft        =   ""
928         LockRight       =   ""
929         LockTop         =   ""
930         Maximum         =   255
931         Minimum         =   1
932         PageStep        =   20
933         Scope           =   0
934         TabIndex        =   3
935         TabPanelIndex   =   1
936         TabStop         =   True
937         TickStyle       =   0
938         Top             =   186
939         Value           =   0
940         Visible         =   True
941         Width           =   100
942      End
943      Begin EditField EditField_STGain
944         AcceptTabs      =   ""
945         Alignment       =   0
946         AutoDeactivate  =   True
947         BackColor       =   &hFFFFFF
948         Bold            =   ""
949         Border          =   True
950         DataField       =   ""
951         DataSource      =   ""
952         Enabled         =   True
953         Format          =   ""
954         Height          =   22
955         HelpTag         =   ""
956         Index           =   -2147483648
957         InitialParent   =   "TabPanel1"
958         Italic          =   ""
959         Left            =   560
960         LimitText       =   0
961         LockBottom      =   ""
962         LockedInPosition=   False
963         LockLeft        =   ""
964         LockRight       =   ""
965         LockTop         =   ""
966         Mask            =   "###"
967         Multiline       =   ""
968         Password        =   ""
969         ReadOnly        =   ""
970         Scope           =   0
971         ScrollbarHorizontal=   ""
972         ScrollbarVertical=   True
973         Styled          =   ""
974         TabIndex        =   4
975         TabPanelIndex   =   1
976         TabStop         =   True
977         Text            =   ""
978         TextColor       =   &h000000
979         TextFont        =   "System"
980         TextSize        =   0
981         TextUnit        =   0
982         Top             =   186
983         Underline       =   ""
984         UseFocusRing    =   True
985         Visible         =   True
986         Width           =   32
987      End
988      Begin StaticText StaticText_STGain
989         AutoDeactivate  =   True
990         Bold            =   ""
991         DataField       =   ""
992         DataSource      =   ""
993         Enabled         =   True
994         Height          =   20
995         HelpTag         =   ""
996         Index           =   -2147483648
997         InitialParent   =   "TabPanel1"
998         Italic          =   ""
999         Left            =   604
1000         LockBottom      =   ""
1001         LockedInPosition=   False
1002         LockLeft        =   ""
1003         LockRight       =   ""
1004         LockTop         =   ""
1005         Multiline       =   ""
1006         Scope           =   0
1007         TabIndex        =   5
1008         TabPanelIndex   =   1
1009         Text            =   "Steering Gain"
1010         TextAlign       =   0
1011         TextColor       =   "&cB8B8B8"
1012         TextFont        =   "System"
1013         TextSize        =   0
1014         TextUnit        =   0
1015         Top             =   186
1016         Underline       =   ""
1017         Visible         =   True
1018         Width           =   128
1019      End
1020      Begin PopupMenu PopupMenu_BackTiming
1021         AutoDeactivate  =   True
1022         Bold            =   ""
1023         DataField       =   ""
1024         DataSource      =   ""
1025         Enabled         =   True
1026         Height          =   20
1027         HelpTag         =   ""
1028         Index           =   -2147483648
1029         InitialParent   =   "TabPanel1"
1030         InitialValue    =   "1\r2\r3\r4\r5\rCustom"
1031         Italic          =   ""
1032         Left            =   448
1033         ListIndex       =   0
1034         LockBottom      =   ""
1035         LockedInPosition=   False
1036         LockLeft        =   ""
1037         LockRight       =   ""
1038         LockTop         =   ""
1039         Scope           =   0
1040         TabIndex        =   6
1041         TabPanelIndex   =   1
1042         TabStop         =   True
1043         TextFont        =   "System"
1044         TextSize        =   0
1045         TextUnit        =   0
1046         Top             =   154
1047         Underline       =   ""
1048         Visible         =   True
1049         Width           =   144
1050      End
1051      Begin StaticText StaticText_BackTiming
1052         AutoDeactivate  =   True
1053         Bold            =   ""
1054         DataField       =   ""
1055         DataSource      =   ""
1056         Enabled         =   True
1057         Height          =   20
1058         HelpTag         =   ""
1059         Index           =   -2147483648
1060         InitialParent   =   "TabPanel1"
1061         Italic          =   ""
1062         Left            =   604
1063         LockBottom      =   ""
1064         LockedInPosition=   False
1065         LockLeft        =   ""
1066         LockRight       =   ""
1067         LockTop         =   ""
1068         Multiline       =   ""
1069         Scope           =   0
1070         TabIndex        =   7
1071         TabPanelIndex   =   1
1072         Text            =   "Back Timing"
1073         TextAlign       =   0
1074         TextColor       =   "&cB8B8B8"
1075         TextFont        =   "System"
1076         TextSize        =   0
1077         TextUnit        =   0
1078         Top             =   154
1079         Underline       =   ""
1080         Visible         =   True
1081         Width           =   128
1082      End
1083      Begin PopupMenu PopupMenu_VerticalInteria
1084         AutoDeactivate  =   True
1085         Bold            =   ""
1086         DataField       =   ""
1087         DataSource      =   ""
1088         Enabled         =   True
1089         Height          =   20
1090         HelpTag         =   ""
1091         Index           =   -2147483648
1092         InitialParent   =   "TabPanel1"
1093         InitialValue    =   "Strong\r2\r3\r4\rOff\rCustom"
1094         Italic          =   ""
1095         Left            =   448
1096         ListIndex       =   0
1097         LockBottom      =   ""
1098         LockedInPosition=   False
1099         LockLeft        =   ""
1100         LockRight       =   ""
1101         LockTop         =   ""
1102         Scope           =   0
1103         TabIndex        =   8
1104         TabPanelIndex   =   1
1105         TabStop         =   True
1106         TextFont        =   "System"
1107         TextSize        =   0
1108         TextUnit        =   0
1109         Top             =   122
1110         Underline       =   ""
1111         Visible         =   True
1112         Width           =   144
1113      End
1114      Begin StaticText StaticText_VerticalIntertia
1115         AutoDeactivate  =   True
1116         Bold            =   ""
1117         DataField       =   ""
1118         DataSource      =   ""
1119         Enabled         =   True
1120         Height          =   20
1121         HelpTag         =   ""
1122         Index           =   -2147483648
1123         InitialParent   =   "TabPanel1"
1124         Italic          =   ""
1125         Left            =   604
1126         LockBottom      =   ""
1127         LockedInPosition=   False
1128         LockLeft        =   ""
1129         LockRight       =   ""
1130         LockTop         =   ""
1131         Multiline       =   ""
1132         Scope           =   0
1133         TabIndex        =   9
1134         TabPanelIndex   =   1
1135         Text            =   "Vertical Intertia"
1136         TextAlign       =   0
1137         TextColor       =   "&cB8B8B8"
1138         TextFont        =   "System"
1139         TextSize        =   0
1140         TextUnit        =   0
1141         Top             =   122
1142         Underline       =   ""
1143         Visible         =   True
1144         Width           =   128
1145      End
1146      Begin PopupMenu PopupMenu_Nuetral
1147         AutoDeactivate  =   True
1148         Bold            =   ""
1149         DataField       =   ""
1150         DataSource      =   ""
1151         Enabled         =   True
1152         Height          =   20
1153         HelpTag         =   ""
1154         Index           =   -2147483648
1155         InitialParent   =   "TabPanel1"
1156         InitialValue    =   "Narrow\rMid\rWide\rCustom"
1157         Italic          =   ""
1158         Left            =   448
1159         ListIndex       =   0
1160         LockBottom      =   ""
1161         LockedInPosition=   False
1162         LockLeft        =   ""
1163         LockRight       =   ""
1164         LockTop         =   ""
1165         Scope           =   0
1166         TabIndex        =   10
1167         TabPanelIndex   =   1
1168         TabStop         =   True
1169         TextFont        =   "System"
1170         TextSize        =   0
1171         TextUnit        =   0
1172         Top             =   90
1173         Underline       =   ""
1174         Visible         =   True
1175         Width           =   144
1176      End
1177      Begin StaticText StaticText_Nuetral
1178         AutoDeactivate  =   True
1179         Bold            =   ""
1180         DataField       =   ""
1181         DataSource      =   ""
1182         Enabled         =   True
1183         Height          =   20
1184         HelpTag         =   ""
1185         Index           =   -2147483648
1186         InitialParent   =   "TabPanel1"
1187         Italic          =   ""
1188         Left            =   604
1189         LockBottom      =   ""
1190         LockedInPosition=   False
1191         LockLeft        =   ""
1192         LockRight       =   ""
1193         LockTop         =   ""
1194         Multiline       =   ""
1195         Scope           =   0
1196         TabIndex        =   11
1197         TabPanelIndex   =   1
1198         Text            =   "Nuetral"
1199         TextAlign       =   0
1200         TextColor       =   "&cB8B8B8"
1201         TextFont        =   "System"
1202         TextSize        =   0
1203         TextUnit        =   0
1204         Top             =   90
1205         Underline       =   ""
1206         Visible         =   True
1207         Width           =   128
1208      End
1209      Begin PopupMenu PopupMenu_DFreq
1210         AutoDeactivate  =   True
1211         Bold            =   ""
1212         DataField       =   ""
1213         DataSource      =   ""
1214         Enabled         =   True
1215         Height          =   20
1216         HelpTag         =   ""
1217         Index           =   -2147483648
1218         InitialParent   =   "TabPanel1"
1219         InitialValue    =   "High\rMedium\rLow\rCustom"
1220         Italic          =   ""
1221         Left            =   448
1222         ListIndex       =   0
1223         LockBottom      =   ""
1224         LockedInPosition=   False
1225         LockLeft        =   ""
1226         LockRight       =   ""
1227         LockTop         =   ""
1228         Scope           =   0
1229         TabIndex        =   12
1230         TabPanelIndex   =   1
1231         TabStop         =   True
1232         TextFont        =   "System"
1233         TextSize        =   0
1234         TextUnit        =   0
1235         Top             =   58
1236         Underline       =   ""
1237         Visible         =   True
1238         Width           =   144
1239      End
1240      Begin StaticText StaticText_DFreq
1241         AutoDeactivate  =   True
1242         Bold            =   ""
1243         DataField       =   ""
1244         DataSource      =   ""
1245         Enabled         =   True
1246         Height          =   20
1247         HelpTag         =   ""
1248         Index           =   -2147483648
1249         InitialParent   =   "TabPanel1"
1250         Italic          =   ""
1251         Left            =   604
1252         LockBottom      =   ""
1253         LockedInPosition=   False
1254         LockLeft        =   ""
1255         LockRight       =   ""
1256         LockTop         =   ""
1257         Multiline       =   ""
1258         Scope           =   0
1259         TabIndex        =   13
1260         TabPanelIndex   =   1
1261         Text            =   "Drive Frequency"
1262         TextAlign       =   0
1263         TextColor       =   "&cB8B8B8"
1264         TextFont        =   "System"
1265         TextSize        =   0
1266         TextUnit        =   0
1267         Top             =   58
1268         Underline       =   ""
1269         Visible         =   True
1270         Width           =   106
1271      End
1272      Begin PopupMenu PopupMenu_Dump
1273         AutoDeactivate  =   True
1274         Bold            =   ""
1275         DataField       =   ""
1276         DataSource      =   ""
1277         Enabled         =   True
1278         Height          =   20
1279         HelpTag         =   ""
1280         Index           =   -2147483648
1281         InitialParent   =   "TabPanel1"
1282         InitialValue    =   "Over\rSmooth\rCustom"
1283         Italic          =   ""
1284         Left            =   209
1285         ListIndex       =   0
1286         LockBottom      =   ""
1287         LockedInPosition=   False
1288         LockLeft        =   ""
1289         LockRight       =   ""
1290         LockTop         =   ""
1291         Scope           =   0
1292         TabIndex        =   14
1293         TabPanelIndex   =   1
1294         TabStop         =   True
1295         TextFont        =   "System"
1296         TextSize        =   0
1297         TextUnit        =   0
1298         Top             =   218
1299         Underline       =   ""
1300         Visible         =   True
1301         Width           =   144
1302      End
1303      Begin StaticText StaticText_Dump
1304         AutoDeactivate  =   True
1305         Bold            =   ""
1306         DataField       =   ""
1307         DataSource      =   ""
1308         Enabled         =   True
1309         Height          =   20
1310         HelpTag         =   ""
1311         Index           =   -2147483648
1312         InitialParent   =   "TabPanel1"
1313         Italic          =   ""
1314         Left            =   365
1315         LockBottom      =   ""
1316         LockedInPosition=   False
1317         LockLeft        =   ""
1318         LockRight       =   ""
1319         LockTop         =   ""
1320         Multiline       =   ""
1321         Scope           =   0
1322         TabIndex        =   15
1323         TabPanelIndex   =   1
1324         Text            =   "Dump"
1325         TextAlign       =   0
1326         TextColor       =   "&cB8B8B8"
1327         TextFont        =   "System"
1328         TextSize        =   0
1329         TextUnit        =   0
1330         Top             =   218
1331         Underline       =   ""
1332         Visible         =   True
1333         Width           =   128
1334      End
1335      Begin PopupMenu PopupMenu_DBand
1336         AutoDeactivate  =   True
1337         Bold            =   ""
1338         DataField       =   ""
1339         DataSource      =   ""
1340         Enabled         =   True
1341         Height          =   20
1342         HelpTag         =   ""
1343         Index           =   -2147483648
1344         InitialParent   =   "TabPanel1"
1345         InitialValue    =   "Narrow\rMid\rWide\rCustom"
1346         Italic          =   ""
1347         Left            =   209
1348         ListIndex       =   0
1349         LockBottom      =   ""
1350         LockedInPosition=   False
1351         LockLeft        =   ""
1352         LockRight       =   ""
1353         LockTop         =   ""
1354         Scope           =   0
1355         TabIndex        =   16
1356         TabPanelIndex   =   1
1357         TabStop         =   True
1358         TextFont        =   "System"
1359         TextSize        =   0
1360         TextUnit        =   0
1361         Top             =   186
1362         Underline       =   ""
1363         Visible         =   True
1364         Width           =   144
1365      End
1366      Begin StaticText StaticText_DBand
1367         AutoDeactivate  =   True
1368         Bold            =   ""
1369         DataField       =   ""
1370         DataSource      =   ""
1371         Enabled         =   True
1372         Height          =   20
1373         HelpTag         =   ""
1374         Index           =   -2147483648
1375         InitialParent   =   "TabPanel1"
1376         Italic          =   ""
1377         Left            =   365
1378         LockBottom      =   ""
1379         LockedInPosition=   False
1380         LockLeft        =   ""
1381         LockRight       =   ""
1382         LockTop         =   ""
1383         Multiline       =   ""
1384         Scope           =   0
1385         TabIndex        =   17
1386         TabPanelIndex   =   1
1387         Text            =   "Drive Band"
1388         TextAlign       =   0
1389         TextColor       =   "&cB8B8B8"
1390         TextFont        =   "System"
1391         TextSize        =   0
1392         TextUnit        =   0
1393         Top             =   182
1394         Underline       =   ""
1395         Visible         =   True
1396         Width           =   128
1397      End
1398      Begin Slider Slider_Punch
1399         AutoDeactivate  =   True
1400         Enabled         =   True
1401         Height          =   16
1402         HelpTag         =   ""
1403         Index           =   -2147483648
1404         InitialParent   =   "TabPanel1"
1405         Left            =   209
1406         LineStep        =   1
1407         LiveScroll      =   ""
1408         LockBottom      =   ""
1409         LockedInPosition=   False
1410         LockLeft        =   ""
1411         LockRight       =   ""
1412         LockTop         =   ""
1413         Maximum         =   10
1414         Minimum         =   1
1415         PageStep        =   20
1416         Scope           =   0
1417         TabIndex        =   18
1418         TabPanelIndex   =   1
1419         TabStop         =   True
1420         TickStyle       =   0
1421         Top             =   154
1422         Value           =   0
1423         Visible         =   True
1424         Width           =   100
1425      End
1426      Begin EditField EditField_Punch
1427         AcceptTabs      =   ""
1428         Alignment       =   0
1429         AutoDeactivate  =   True
1430         BackColor       =   &hFFFFFF
1431         Bold            =   ""
1432         Border          =   True
1433         DataField       =   ""
1434         DataSource      =   ""
1435         Enabled         =   True
1436         Format          =   ""
1437         Height          =   22
1438         HelpTag         =   ""
1439         Index           =   -2147483648
1440         InitialParent   =   "TabPanel1"
1441         Italic          =   ""
1442         Left            =   321
1443         LimitText       =   0
1444         LockBottom      =   ""
1445         LockedInPosition=   False
1446         LockLeft        =   ""
1447         LockRight       =   ""
1448         LockTop         =   ""
1449         Mask            =   "###"
1450         Multiline       =   ""
1451         Password        =   ""
1452         ReadOnly        =   ""
1453         Scope           =   0
1454         ScrollbarHorizontal=   ""
1455         ScrollbarVertical=   True
1456         Styled          =   ""
1457         TabIndex        =   19
1458         TabPanelIndex   =   1
1459         TabStop         =   True
1460         Text            =   ""
1461         TextColor       =   &h000000
1462         TextFont        =   "System"
1463         TextSize        =   0
1464         TextUnit        =   0
1465         Top             =   153
1466         Underline       =   ""
1467         UseFocusRing    =   True
1468         Visible         =   True
1469         Width           =   32
1470      End
1471      Begin StaticText StaticText_Punch
1472         AutoDeactivate  =   True
1473         Bold            =   ""
1474         DataField       =   ""
1475         DataSource      =   ""
1476         Enabled         =   True
1477         Height          =   20
1478         HelpTag         =   ""
1479         Index           =   -2147483648
1480         InitialParent   =   "TabPanel1"
1481         Italic          =   ""
1482         Left            =   365
1483         LockBottom      =   ""
1484         LockedInPosition=   False
1485         LockLeft        =   ""
1486         LockRight       =   ""
1487         LockTop         =   ""
1488         Multiline       =   ""
1489         Scope           =   0
1490         TabIndex        =   20
1491         TabPanelIndex   =   1
1492         Text            =   "Punch"
1493         TextAlign       =   0
1494         TextColor       =   "&cB8B8B8"
1495         TextFont        =   "System"
1496         TextSize        =   0
1497         TextUnit        =   0
1498         Top             =   153
1499         Underline       =   ""
1500         Visible         =   True
1501         Width           =   81
1502      End
1503      Begin PopupMenu PopupMenu_Speed
1504         AutoDeactivate  =   True
1505         Bold            =   ""
1506         DataField       =   ""
1507         DataSource      =   ""
1508         Enabled         =   True
1509         Height          =   20
1510         HelpTag         =   ""
1511         Index           =   -2147483648
1512         InitialParent   =   "TabPanel1"
1513         InitialValue    =   "Slow\r2\r3\r4\rFast\rCustom"
1514         Italic          =   ""
1515         Left            =   209
1516         ListIndex       =   0
1517         LockBottom      =   ""
1518         LockedInPosition=   False
1519         LockLeft        =   ""
1520         LockRight       =   ""
1521         LockTop         =   ""
1522         Scope           =   0
1523         TabIndex        =   21
1524         TabPanelIndex   =   1
1525         TabStop         =   True
1526         TextFont        =   "System"
1527         TextSize        =   0
1528         TextUnit        =   0
1529         Top             =   122
1530         Underline       =   ""
1531         Visible         =   True
1532         Width           =   144
1533      End
1534      Begin StaticText StaticText_Speed
1535         AutoDeactivate  =   True
1536         Bold            =   ""
1537         DataField       =   ""
1538         DataSource      =   ""
1539         Enabled         =   True
1540         Height          =   20
1541         HelpTag         =   ""
1542         Index           =   -2147483648
1543         InitialParent   =   "TabPanel1"
1544         Italic          =   ""
1545         Left            =   365
1546         LockBottom      =   ""
1547         LockedInPosition=   False
1548         LockLeft        =   ""
1549         LockRight       =   ""
1550         LockTop         =   ""
1551         Multiline       =   ""
1552         Scope           =   0
1553         TabIndex        =   22
1554         TabPanelIndex   =   1
1555         Text            =   "Speed"
1556         TextAlign       =   0
1557         TextColor       =   "&cB8B8B8"
1558         TextFont        =   "System"
1559         TextSize        =   0
1560         TextUnit        =   0
1561         Top             =   122
1562         Underline       =   ""
1563         Visible         =   True
1564         Width           =   100
1565      End
1566      Begin PopupMenu PopupMenu_Gain
1567         AutoDeactivate  =   True
1568         Bold            =   ""
1569         DataField       =   ""
1570         DataSource      =   ""
1571         Enabled         =   True
1572         Height          =   20
1573         HelpTag         =   ""
1574         Index           =   -2147483648
1575         InitialParent   =   "TabPanel1"
1576         InitialValue    =   "Min\rMid\rStrong\rCustom"
1577         Italic          =   ""
1578         Left            =   209
1579         ListIndex       =   0
1580         LockBottom      =   ""
1581         LockedInPosition=   False
1582         LockLeft        =   ""
1583         LockRight       =   ""
1584         LockTop         =   ""
1585         Scope           =   0
1586         TabIndex        =   23
1587         TabPanelIndex   =   1
1588         TabStop         =   True
1589         TextFont        =   "System"
1590         TextSize        =   0
1591         TextUnit        =   0
1592         Top             =   90
1593         Underline       =   ""
1594         Visible         =   True
1595         Width           =   144
1596      End
1597      Begin StaticText StaticText_Gain
1598         AutoDeactivate  =   True
1599         Bold            =   ""
1600         DataField       =   ""
1601         DataSource      =   ""
1602         Enabled         =   True
1603         Height          =   20
1604         HelpTag         =   ""
1605         Index           =   -2147483648
1606         InitialParent   =   "TabPanel1"
1607         Italic          =   ""
1608         Left            =   365
1609         LockBottom      =   ""
1610         LockedInPosition=   False
1611         LockLeft        =   ""
1612         LockRight       =   ""
1613         LockTop         =   ""
1614         Multiline       =   ""
1615         Scope           =   0
1616         TabIndex        =   24
1617         TabPanelIndex   =   1
1618         Text            =   "Gain"
1619         TextAlign       =   0
1620         TextColor       =   "&cB8B8B8"
1621         TextFont        =   "System"
1622         TextSize        =   0
1623         TextUnit        =   0
1624         Top             =   91
1625         Underline       =   ""
1626         Visible         =   True
1627         Width           =   100
1628      End
1629      Begin StaticText StaticText_CarType
1630         AutoDeactivate  =   True
1631         Bold            =   ""
1632         DataField       =   ""
1633         DataSource      =   ""
1634         Enabled         =   True
1635         Height          =   20
1636         HelpTag         =   ""
1637         Index           =   -2147483648
1638         InitialParent   =   "TabPanel1"
1639         Italic          =   ""
1640         Left            =   365
1641         LockBottom      =   ""
1642         LockedInPosition=   False
1643         LockLeft        =   ""
1644         LockRight       =   ""
1645         LockTop         =   ""
1646         Multiline       =   ""
1647         Scope           =   0
1648         TabIndex        =   25
1649         TabPanelIndex   =   1
1650         Text            =   "Car Type"
1651         TextAlign       =   0
1652         TextColor       =   "&cB8B8B8"
1653         TextFont        =   "System"
1654         TextSize        =   0
1655         TextUnit        =   0
1656         Top             =   58
1657         Underline       =   ""
1658         Visible         =   True
1659         Width           =   100
1660      End
1661      Begin PopupMenu PopupMenu_CarType
1662         AutoDeactivate  =   True
1663         Bold            =   ""
1664         DataField       =   ""
1665         DataSource      =   ""
1666         Enabled         =   True
1667         Height          =   20
1668         HelpTag         =   ""
1669         Index           =   -2147483648
1670         InitialParent   =   "TabPanel1"
1671         InitialValue    =   "MR-03\rdNaNo\rASF"
1672         Italic          =   ""
1673         Left            =   209
1674         ListIndex       =   0
1675         LockBottom      =   ""
1676         LockedInPosition=   False
1677         LockLeft        =   ""
1678         LockRight       =   ""
1679         LockTop         =   ""
1680         Scope           =   0
1681         TabIndex        =   26
1682         TabPanelIndex   =   1
1683         TabStop         =   True
1684         TextFont        =   "System"
1685         TextSize        =   0
1686         TextUnit        =   0
1687         Top             =   58
1688         Underline       =   ""
1689         Visible         =   True
1690         Width           =   144
1691      End
1692      Begin EditField EditField_Byte12
1693         AcceptTabs      =   ""
1694         Alignment       =   0
1695         AutoDeactivate  =   True
1696         BackColor       =   &hFFFFFF
1697         Bold            =   ""
1698         Border          =   True
1699         DataField       =   ""
1700         DataSource      =   ""
1701         Enabled         =   True
1702         Format          =   ""
1703         Height          =   22
1704         HelpTag         =   ""
1705         Index           =   -2147483648
1706         InitialParent   =   "TabPanel1"
1707         Italic          =   ""
1708         Left            =   380
1709         LimitText       =   0
1710         LockBottom      =   ""
1711         LockedInPosition=   False
1712         LockLeft        =   ""
1713         LockRight       =   ""
1714         LockTop         =   ""
1715         Mask            =   "###"
1716         Multiline       =   ""
1717         Password        =   ""
1718         ReadOnly        =   ""
1719         Scope           =   0
1720         ScrollbarHorizontal=   ""
1721         ScrollbarVertical=   True
1722         Styled          =   ""
1723         TabIndex        =   41
1724         TabPanelIndex   =   2
1725         TabStop         =   True
1726         Text            =   ""
1727         TextColor       =   &h000000
1728         TextFont        =   "System"
1729         TextSize        =   0
1730         TextUnit        =   0
1731         Top             =   126
1732         Underline       =   ""
1733         UseFocusRing    =   True
1734         Visible         =   True
1735         Width           =   32
1736      End
1737      Begin EditField EditField_Byte11
1738         AcceptTabs      =   ""
1739         Alignment       =   0
1740         AutoDeactivate  =   True
1741         BackColor       =   &hFFFFFF
1742         Bold            =   ""
1743         Border          =   True
1744         DataField       =   ""
1745         DataSource      =   ""
1746         Enabled         =   True
1747         Format          =   ""
1748         Height          =   22
1749         HelpTag         =   ""
1750         Index           =   -2147483648
1751         InitialParent   =   "TabPanel1"
1752         Italic          =   ""
1753         Left            =   380
1754         LimitText       =   0
1755         LockBottom      =   ""
1756         LockedInPosition=   False
1757         LockLeft        =   ""
1758         LockRight       =   ""
1759         LockTop         =   ""
1760         Mask            =   "###"
1761         Multiline       =   ""
1762         Password        =   ""
1763         ReadOnly        =   ""
1764         Scope           =   0
1765         ScrollbarHorizontal=   ""
1766         ScrollbarVertical=   True
1767         Styled          =   ""
1768         TabIndex        =   42
1769         TabPanelIndex   =   2
1770         TabStop         =   True
1771         Text            =   ""
1772         TextColor       =   &h000000
1773         TextFont        =   "System"
1774         TextSize        =   0
1775         TextUnit        =   0
1776         Top             =   92
1777         Underline       =   ""
1778         UseFocusRing    =   True
1779         Visible         =   True
1780         Width           =   32
1781      End
1782      Begin EditField EditField_Byte10
1783         AcceptTabs      =   ""
1784         Alignment       =   0
1785         AutoDeactivate  =   True
1786         BackColor       =   &hFFFFFF
1787         Bold            =   ""
1788         Border          =   True
1789         DataField       =   ""
1790         DataSource      =   ""
1791         Enabled         =   True
1792         Format          =   ""
1793         Height          =   22
1794         HelpTag         =   ""
1795         Index           =   -2147483648
1796         InitialParent   =   "TabPanel1"
1797         Italic          =   ""
1798         Left            =   380
1799         LimitText       =   0
1800         LockBottom      =   ""
1801         LockedInPosition=   False
1802         LockLeft        =   ""
1803         LockRight       =   ""
1804         LockTop         =   ""
1805         Mask            =   "###"
1806         Multiline       =   ""
1807         Password        =   ""
1808         ReadOnly        =   ""
1809         Scope           =   0
1810         ScrollbarHorizontal=   ""
1811         ScrollbarVertical=   True
1812         Styled          =   ""
1813         TabIndex        =   43
1814         TabPanelIndex   =   2
1815         TabStop         =   True
1816         Text            =   ""
1817         TextColor       =   &h000000
1818         TextFont        =   "System"
1819         TextSize        =   0
1820         TextUnit        =   0
1821         Top             =   58
1822         Underline       =   ""
1823         UseFocusRing    =   True
1824         Visible         =   True
1825         Width           =   32
1826      End
1827      Begin StaticText StaticText_Byte10
1828         AutoDeactivate  =   True
1829         Bold            =   ""
1830         DataField       =   ""
1831         DataSource      =   ""
1832         Enabled         =   True
1833         Height          =   20
1834         HelpTag         =   ""
1835         Index           =   -2147483648
1836         InitialParent   =   "TabPanel1"
1837         Italic          =   ""
1838         Left            =   426
1839         LockBottom      =   ""
1840         LockedInPosition=   False
1841         LockLeft        =   ""
1842         LockRight       =   ""
1843         LockTop         =   ""
1844         Multiline       =   ""
1845         Scope           =   0
1846         TabIndex        =   44
1847         TabPanelIndex   =   2
1848         Text            =   "Unknown"
1849         TextAlign       =   0
1850         TextColor       =   "&cB8B8B8"
1851         TextFont        =   "System"
1852         TextSize        =   0
1853         TextUnit        =   0
1854         Top             =   60
1855         Underline       =   ""
1856         Visible         =   True
1857         Width           =   106
1858      End
1859      Begin StaticText StaticText_Byte11
1860         AutoDeactivate  =   True
1861         Bold            =   ""
1862         DataField       =   ""
1863         DataSource      =   ""
1864         Enabled         =   True
1865         Height          =   20
1866         HelpTag         =   ""
1867         Index           =   -2147483648
1868         InitialParent   =   "TabPanel1"
1869         Italic          =   ""
1870         Left            =   424
1871         LockBottom      =   ""
1872         LockedInPosition=   False
1873         LockLeft        =   ""
1874         LockRight       =   ""
1875         LockTop         =   ""
1876         Multiline       =   ""
1877         Scope           =   0
1878         TabIndex        =   45
1879         TabPanelIndex   =   2
1880         Text            =   "Neutral High"
1881         TextAlign       =   0
1882         TextColor       =   "&cB8B8B8"
1883         TextFont        =   "System"
1884         TextSize        =   0
1885         TextUnit        =   0
1886         Top             =   93
1887         Underline       =   ""
1888         Visible         =   True
1889         Width           =   106
1890      End
1891      Begin StaticText StaticText_Byte12
1892         AutoDeactivate  =   True
1893         Bold            =   ""
1894         DataField       =   ""
1895         DataSource      =   ""
1896         Enabled         =   True
1897         Height          =   20
1898         HelpTag         =   ""
1899         Index           =   -2147483648
1900         InitialParent   =   "TabPanel1"
1901         Italic          =   ""
1902         Left            =   424
1903         LockBottom      =   ""
1904         LockedInPosition=   False
1905         LockLeft        =   ""
1906         LockRight       =   ""
1907         LockTop         =   ""
1908         Multiline       =   ""
1909         Scope           =   0
1910         TabIndex        =   46
1911         TabPanelIndex   =   2
1912         Text            =   "Neutral Low"
1913         TextAlign       =   0
1914         TextColor       =   "&cB8B8B8"
1915         TextFont        =   "System"
1916         TextSize        =   0
1917         TextUnit        =   0
1918         Top             =   126
1919         Underline       =   ""
1920         Visible         =   True
1921         Width           =   106
1922      End
1923      Begin EditField EditField_Byte18
1924         AcceptTabs      =   ""
1925         Alignment       =   0
1926         AutoDeactivate  =   True
1927         BackColor       =   &hFFFFFF
1928         Bold            =   ""
1929         Border          =   True
1930         DataField       =   ""
1931         DataSource      =   ""
1932         Enabled         =   False
1933         Format          =   ""
1934         Height          =   22
1935         HelpTag         =   ""
1936         Index           =   -2147483648
1937         InitialParent   =   "TabPanel1"
1938         Italic          =   ""
1939         Left            =   380
1940         LimitText       =   0
1941         LockBottom      =   ""
1942         LockedInPosition=   False
1943         LockLeft        =   ""
1944         LockRight       =   ""
1945         LockTop         =   ""
1946         Mask            =   "###"
1947         Multiline       =   ""
1948         Password        =   ""
1949         ReadOnly        =   ""
1950         Scope           =   0
1951         ScrollbarHorizontal=   ""
1952         ScrollbarVertical=   True
1953         Styled          =   ""
1954         TabIndex        =   47
1955         TabPanelIndex   =   2
1956         TabStop         =   True
1957         Text            =   ""
1958         TextColor       =   &h000000
1959         TextFont        =   "System"
1960         TextSize        =   0
1961         TextUnit        =   0
1962         Top             =   329
1963         Underline       =   ""
1964         UseFocusRing    =   True
1965         Visible         =   False
1966         Width           =   32
1967      End
1968      Begin EditField EditField_Byte17
1969         AcceptTabs      =   ""
1970         Alignment       =   0
1971         AutoDeactivate  =   True
1972         BackColor       =   &hFFFFFF
1973         Bold            =   ""
1974         Border          =   True
1975         DataField       =   ""
1976         DataSource      =   ""
1977         Enabled         =   True
1978         Format          =   ""
1979         Height          =   22
1980         HelpTag         =   ""
1981         Index           =   -2147483648
1982         InitialParent   =   "TabPanel1"
1983         Italic          =   ""
1984         Left            =   380
1985         LimitText       =   0
1986         LockBottom      =   ""
1987         LockedInPosition=   False
1988         LockLeft        =   ""
1989         LockRight       =   ""
1990         LockTop         =   ""
1991         Mask            =   "###"
1992         Multiline       =   ""
1993         Password        =   ""
1994         ReadOnly        =   ""
1995         Scope           =   0
1996         ScrollbarHorizontal=   ""
1997         ScrollbarVertical=   True
1998         Styled          =   ""
1999         TabIndex        =   48
2000         TabPanelIndex   =   2
2001         TabStop         =   True
2002         Text            =   ""
2003         TextColor       =   &h000000
2004         TextFont        =   "System"
2005         TextSize        =   0
2006         TextUnit        =   0
2007         Top             =   295
2008         Underline       =   ""
2009         UseFocusRing    =   True
2010         Visible         =   True
2011         Width           =   32
2012      End
2013      Begin EditField EditField_Byte16
2014         AcceptTabs      =   ""
2015         Alignment       =   0
2016         AutoDeactivate  =   True
2017         BackColor       =   &hFFFFFF
2018         Bold            =   ""
2019         Border          =   True
2020         DataField       =   ""
2021         DataSource      =   ""
2022         Enabled         =   True
2023         Format          =   ""
2024         Height          =   22
2025         HelpTag         =   ""
2026         Index           =   -2147483648
2027         InitialParent   =   "TabPanel1"
2028         Italic          =   ""
2029         Left            =   380
2030         LimitText       =   0
2031         LockBottom      =   ""
2032         LockedInPosition=   False
2033         LockLeft        =   ""
2034         LockRight       =   ""
2035         LockTop         =   ""
2036         Mask            =   "###"
2037         Multiline       =   ""
2038         Password        =   ""
2039         ReadOnly        =   ""
2040         Scope           =   0
2041         ScrollbarHorizontal=   ""
2042         ScrollbarVertical=   True
2043         Styled          =   ""
2044         TabIndex        =   49
2045         TabPanelIndex   =   2
2046         TabStop         =   True
2047         Text            =   ""
2048         TextColor       =   &h000000
2049         TextFont        =   "System"
2050         TextSize        =   0
2051         TextUnit        =   0
2052         Top             =   261
2053         Underline       =   ""
2054         UseFocusRing    =   True
2055         Visible         =   True
2056         Width           =   32
2057      End
2058      Begin EditField EditField_Byte15
2059         AcceptTabs      =   ""
2060         Alignment       =   0
2061         AutoDeactivate  =   True
2062         BackColor       =   &hFFFFFF
2063         Bold            =   ""
2064         Border          =   True
2065         DataField       =   ""
2066         DataSource      =   ""
2067         Enabled         =   True
2068         Format          =   ""
2069         Height          =   22
2070         HelpTag         =   ""
2071         Index           =   -2147483648
2072         InitialParent   =   "TabPanel1"
2073         Italic          =   ""
2074         Left            =   380
2075         LimitText       =   0
2076         LockBottom      =   ""
2077         LockedInPosition=   False
2078         LockLeft        =   ""
2079         LockRight       =   ""
2080         LockTop         =   ""
2081         Mask            =   "###"
2082         Multiline       =   ""
2083         Password        =   ""
2084         ReadOnly        =   ""
2085         Scope           =   0
2086         ScrollbarHorizontal=   ""
2087         ScrollbarVertical=   True
2088         Styled          =   ""
2089         TabIndex        =   50
2090         TabPanelIndex   =   2
2091         TabStop         =   True
2092         Text            =   ""
2093         TextColor       =   &h000000
2094         TextFont        =   "System"
2095         TextSize        =   0
2096         TextUnit        =   0
2097         Top             =   227
2098         Underline       =   ""
2099         UseFocusRing    =   True
2100         Visible         =   True
2101         Width           =   32
2102      End
2103      Begin EditField EditField_Byte14
2104         AcceptTabs      =   ""
2105         Alignment       =   0
2106         AutoDeactivate  =   True
2107         BackColor       =   &hFFFFFF
2108         Bold            =   ""
2109         Border          =   True
2110         DataField       =   ""
2111         DataSource      =   ""
2112         Enabled         =   True
2113         Format          =   ""
2114         Height          =   22
2115         HelpTag         =   ""
2116         Index           =   -2147483648
2117         InitialParent   =   "TabPanel1"
2118         Italic          =   ""
2119         Left            =   380
2120         LimitText       =   0
2121         LockBottom      =   ""
2122         LockedInPosition=   False
2123         LockLeft        =   ""
2124         LockRight       =   ""
2125         LockTop         =   ""
2126         Mask            =   "###"
2127         Multiline       =   ""
2128         Password        =   ""
2129         ReadOnly        =   ""
2130         Scope           =   0
2131         ScrollbarHorizontal=   ""
2132         ScrollbarVertical=   True
2133         Styled          =   ""
2134         TabIndex        =   51
2135         TabPanelIndex   =   2
2136         TabStop         =   True
2137         Text            =   ""
2138         TextColor       =   &h000000
2139         TextFont        =   "System"
2140         TextSize        =   0
2141         TextUnit        =   0
2142         Top             =   193
2143         Underline       =   ""
2144         UseFocusRing    =   True
2145         Visible         =   True
2146         Width           =   32
2147      End
2148      Begin EditField EditField_Byte13
2149         AcceptTabs      =   ""
2150         Alignment       =   0
2151         AutoDeactivate  =   True
2152         BackColor       =   &hFFFFFF
2153         Bold            =   ""
2154         Border          =   True
2155         DataField       =   ""
2156         DataSource      =   ""
2157         Enabled         =   True
2158         Format          =   ""
2159         Height          =   22
2160         HelpTag         =   ""
2161         Index           =   -2147483648
2162         InitialParent   =   "TabPanel1"
2163         Italic          =   ""
2164         Left            =   380
2165         LimitText       =   0
2166         LockBottom      =   ""
2167         LockedInPosition=   False
2168         LockLeft        =   ""
2169         LockRight       =   ""
2170         LockTop         =   ""
2171         Mask            =   "###"
2172         Multiline       =   ""
2173         Password        =   ""
2174         ReadOnly        =   ""
2175         Scope           =   0
2176         ScrollbarHorizontal=   ""
2177         ScrollbarVertical=   True
2178         Styled          =   ""
2179         TabIndex        =   52
2180         TabPanelIndex   =   2
2181         TabStop         =   True
2182         Text            =   ""
2183         TextColor       =   &h000000
2184         TextFont        =   "System"
2185         TextSize        =   0
2186         TextUnit        =   0
2187         Top             =   158
2188         Underline       =   ""
2189         UseFocusRing    =   True
2190         Visible         =   True
2191         Width           =   32
2192      End
2193      Begin StaticText StaticText_Byte13
2194         AutoDeactivate  =   True
2195         Bold            =   ""
2196         DataField       =   ""
2197         DataSource      =   ""
2198         Enabled         =   True
2199         Height          =   20
2200         HelpTag         =   ""
2201         Index           =   -2147483648
2202         InitialParent   =   "TabPanel1"
2203         Italic          =   ""
2204         Left            =   424
2205         LockBottom      =   ""
2206         LockedInPosition=   False
2207         LockLeft        =   ""
2208         LockRight       =   ""
2209         LockTop         =   ""
2210         Multiline       =   ""
2211         Scope           =   0
2212         TabIndex        =   53
2213         TabPanelIndex   =   2
2214         Text            =   "Vertical Inertia"
2215         TextAlign       =   0
2216         TextColor       =   "&cB8B8B8"
2217         TextFont        =   "System"
2218         TextSize        =   0
2219         TextUnit        =   0
2220         Top             =   160
2221         Underline       =   ""
2222         Visible         =   True
2223         Width           =   106
2224      End
2225      Begin StaticText StaticText_Byte14
2226         AutoDeactivate  =   True
2227         Bold            =   ""
2228         DataField       =   ""
2229         DataSource      =   ""
2230         Enabled         =   True
2231         Height          =   20
2232         HelpTag         =   ""
2233         Index           =   -2147483648
2234         InitialParent   =   "TabPanel1"
2235         Italic          =   ""
2236         Left            =   424
2237         LockBottom      =   ""
2238         LockedInPosition=   False
2239         LockLeft        =   ""
2240         LockRight       =   ""
2241         LockTop         =   ""
2242         Multiline       =   False
2243         Scope           =   0
2244         TabIndex        =   54
2245         TabPanelIndex   =   2
2246         Text            =   "Unknown"
2247         TextAlign       =   0
2248         TextColor       =   "&cB8B8B8"
2249         TextFont        =   "System"
2250         TextSize        =   0
2251         TextUnit        =   0
2252         Top             =   194
2253         Underline       =   ""
2254         Visible         =   True
2255         Width           =   106
2256      End
2257      Begin StaticText StaticText_Byte15
2258         AutoDeactivate  =   True
2259         Bold            =   ""
2260         DataField       =   ""
2261         DataSource      =   ""
2262         Enabled         =   True
2263         Height          =   20
2264         HelpTag         =   ""
2265         Index           =   -2147483648
2266         InitialParent   =   "TabPanel1"
2267         Italic          =   ""
2268         Left            =   424
2269         LockBottom      =   ""
2270         LockedInPosition=   False
2271         LockLeft        =   ""
2272         LockRight       =   ""
2273         LockTop         =   ""
2274         Multiline       =   ""
2275         Scope           =   0
2276         TabIndex        =   55
2277         TabPanelIndex   =   2
2278         Text            =   "Back Timing"
2279         TextAlign       =   0
2280         TextColor       =   "&cB8B8B8"
2281         TextFont        =   "System"
2282         TextSize        =   0
2283         TextUnit        =   0
2284         Top             =   228
2285         Underline       =   ""
2286         Visible         =   True
2287         Width           =   106
2288      End
2289      Begin StaticText StaticText_Byte16
2290         AutoDeactivate  =   True
2291         Bold            =   ""
2292         DataField       =   ""
2293         DataSource      =   ""
2294         Enabled         =   True
2295         Height          =   20
2296         HelpTag         =   ""
2297         Index           =   -2147483648
2298         InitialParent   =   "TabPanel1"
2299         Italic          =   ""
2300         Left            =   424
2301         LockBottom      =   ""
2302         LockedInPosition=   False
2303         LockLeft        =   ""
2304         LockRight       =   ""
2305         LockTop         =   ""
2306         Multiline       =   ""
2307         Scope           =   0
2308         TabIndex        =   56
2309         TabPanelIndex   =   2
2310         Text            =   "Steering Gain"
2311         TextAlign       =   0
2312         TextColor       =   "&cB8B8B8"
2313         TextFont        =   "System"
2314         TextSize        =   0
2315         TextUnit        =   0
2316         Top             =   262
2317         Underline       =   ""
2318         Visible         =   True
2319         Width           =   106
2320      End
2321      Begin StaticText StaticText_Byte17
2322         AutoDeactivate  =   True
2323         Bold            =   ""
2324         DataField       =   ""
2325         DataSource      =   ""
2326         Enabled         =   True
2327         Height          =   20
2328         HelpTag         =   ""
2329         Index           =   -2147483648
2330         InitialParent   =   "TabPanel1"
2331         Italic          =   ""
2332         Left            =   424
2333         LockBottom      =   ""
2334         LockedInPosition=   False
2335         LockLeft        =   ""
2336         LockRight       =   ""
2337         LockTop         =   ""
2338         Multiline       =   ""
2339         Scope           =   0
2340         TabIndex        =   57
2341         TabPanelIndex   =   2
2342         Text            =   "Throttle Gain"
2343         TextAlign       =   0
2344         TextColor       =   "&cB8B8B8"
2345         TextFont        =   "System"
2346         TextSize        =   0
2347         TextUnit        =   0
2348         Top             =   296
2349         Underline       =   ""
2350         Visible         =   True
2351         Width           =   106
2352      End
2353      Begin StaticText StaticText_Byte18
2354         AutoDeactivate  =   True
2355         Bold            =   ""
2356         DataField       =   ""
2357         DataSource      =   ""
2358         Enabled         =   True
2359         Height          =   20
2360         HelpTag         =   ""
2361         Index           =   -2147483648
2362         InitialParent   =   "TabPanel1"
2363         Italic          =   ""
2364         Left            =   424
2365         LockBottom      =   ""
2366         LockedInPosition=   False
2367         LockLeft        =   ""
2368         LockRight       =   ""
2369         LockTop         =   ""
2370         Multiline       =   ""
2371         Scope           =   0
2372         TabIndex        =   58
2373         TabPanelIndex   =   2
2374         Text            =   "Checksum"
2375         TextAlign       =   0
2376         TextColor       =   "&cB8B8B8"
2377         TextFont        =   "System"
2378         TextSize        =   0
2379         TextUnit        =   0
2380         Top             =   330
2381         Underline       =   ""
2382         Visible         =   False
2383         Width           =   106
2384      End
2385      Begin StaticText StaticText_Warning
2386         AutoDeactivate  =   True
2387         Bold            =   True
2388         DataField       =   ""
2389         DataSource      =   ""
2390         Enabled         =   True
2391         Height          =   36
2392         HelpTag         =   ""
2393         Index           =   -2147483648
2394         InitialParent   =   "TabPanel1"
2395         Italic          =   ""
2396         Left            =   542
2397         LockBottom      =   ""
2398         LockedInPosition=   False
2399         LockLeft        =   ""
2400         LockRight       =   ""
2401         LockTop         =   ""
2402         Multiline       =   ""
2403         Scope           =   0
2404         TabIndex        =   59
2405         TabPanelIndex   =   2
2406         Text            =   "WARNING:"
2407         TextAlign       =   0
2408         TextColor       =   &hFF0000
2409         TextFont        =   "System"
2410         TextSize        =   22
2411         TextUnit        =   0
2412         Top             =   57
2413         Underline       =   True
2414         Visible         =   True
2415         Width           =   142
2416      End
2417      Begin StaticText StaticText_WarningMessage
2418         AutoDeactivate  =   True
2419         Bold            =   ""
2420         DataField       =   ""
2421         DataSource      =   ""
2422         Enabled         =   True
2423         Height          =   155
2424         HelpTag         =   ""
2425         Index           =   -2147483648
2426         InitialParent   =   "TabPanel1"
2427         Italic          =   ""
2428         Left            =   542
2429         LockBottom      =   ""
2430         LockedInPosition=   False
2431         LockLeft        =   ""
2432         LockRight       =   ""
2433         LockTop         =   ""
2434         Multiline       =   True
2435         Scope           =   0
2436         TabIndex        =   60
2437         TabPanelIndex   =   2
2438         Text            =   "Each register can have a value between 0 and 255.  Modifying values on this screen can have unpredictable results, do so at your own risk.  "
2439         TextAlign       =   0
2440         TextColor       =   &hFF0000
2441         TextFont        =   "System"
2442         TextSize        =   0
2443         TextUnit        =   0
2444         Top             =   93
2445         Underline       =   ""
2446         Visible         =   True
2447         Width           =   150
2448      End
2449   End
2450   Begin ICSSerialPort ICSSerialPort1
2451      Baud            =   8
2452      Bits            =   3
2453      byte01          =   &hFF
2454      carType         =   "MR-03"
2455      CTS             =   ""
2456      DTR             =   ""
2457      Height          =   32
2458      Index           =   -2147483648
2459      Left            =   786
2460      LockedInPosition=   False
2461      mode            =   "read"
2462      Parity          =   0
2463      Scope           =   0
2464      Stop            =   0
2465      TabPanelIndex   =   0
2466      Top             =   -16
2467      Width           =   32
2468      XON             =   ""
2469   End
2470   Begin PushButton PushButton_Default
2471      AutoDeactivate  =   True
2472      Bold            =   ""
2473      Cancel          =   ""
2474      Caption         =   "Default"
2475      Default         =   ""
2476      Enabled         =   True
2477      Height          =   20
2478      HelpTag         =   ""
2479      Index           =   -2147483648
2480      InitialParent   =   ""
2481      Italic          =   ""
2482      Left            =   612
2483      LockBottom      =   True
2484      LockedInPosition=   False
2485      LockLeft        =   ""
2486      LockRight       =   ""
2487      LockTop         =   ""
2488      Scope           =   0
2489      TabIndex        =   44
2490      TabPanelIndex   =   0
2491      TabStop         =   True
2492      TextFont        =   "System"
2493      TextSize        =   0
2494      TextUnit        =   0
2495      Top             =   388
2496      Underline       =   ""
2497      Visible         =   True
2498      Width           =   88
2499   End
2500   Begin StaticText StaticText_SerialPort
2501      AutoDeactivate  =   True
2502      Bold            =   ""
2503      DataField       =   ""
2504      DataSource      =   ""
2505      Enabled         =   True
2506      Height          =   20
2507      HelpTag         =   ""
2508      Index           =   -2147483648
2509      InitialParent   =   ""
2510      Italic          =   ""
2511      Left            =   20
2512      LockBottom      =   ""
2513      LockedInPosition=   False
2514      LockLeft        =   ""
2515      LockRight       =   ""
2516      LockTop         =   ""
2517      Multiline       =   ""
2518      Scope           =   0
2519      TabIndex        =   46
2520      TabPanelIndex   =   0
2521      Text            =   "COM Port"
2522      TextAlign       =   0
2523      TextColor       =   "&cB8B8B8"
2524      TextFont        =   "System"
2525      TextSize        =   0
2526      TextUnit        =   0
2527      Top             =   58
2528      Underline       =   ""
2529      Visible         =   True
2530      Width           =   100
2531   End
2532   Begin PopupMenu PopupMenu_SerialPort
2533      AutoDeactivate  =   True
2534      Bold            =   ""
2535      DataField       =   ""
2536      DataSource      =   ""
2537      Enabled         =   True
2538      Height          =   20
2539      HelpTag         =   ""
2540      Index           =   -2147483648
2541      InitialParent   =   ""
2542      InitialValue    =   ""
2543      Italic          =   ""
2544      Left            =   20
2545      ListIndex       =   0
2546      LockBottom      =   ""
2547      LockedInPosition=   False
2548      LockLeft        =   ""
2549      LockRight       =   ""
2550      LockTop         =   ""
2551      Scope           =   0
2552      TabIndex        =   47
2553      TabPanelIndex   =   0
2554      TabStop         =   True
2555      TextFont        =   "System"
2556      TextSize        =   0
2557      TextUnit        =   0
2558      Top             =   90
2559      Underline       =   ""
2560      Visible         =   True
2561      Width           =   128
2562   End
2563   Begin StaticText StaticText_Version
2564      AutoDeactivate  =   True
2565      Bold            =   ""
2566      DataField       =   ""
2567      DataSource      =   ""
2568      Enabled         =   True
2569      Height          =   20
2570      HelpTag         =   ""
2571      Index           =   -2147483648
2572      InitialParent   =   ""
2573      Italic          =   ""
2574      Left            =   20
2575      LockBottom      =   True
2576      LockedInPosition=   False
2577      LockLeft        =   ""
2578      LockRight       =   ""
2579      LockTop         =   ""
2580      Multiline       =   ""
2581      Scope           =   0
2582      TabIndex        =   48
2583      TabPanelIndex   =   0
2584      Text            =   "Version "
2585      TextAlign       =   0
2586      TextColor       =   "&cB8B8B8"
2587      TextFont        =   "System"
2588      TextSize        =   0
2589      TextUnit        =   0
2590      Top             =   388
2591      Underline       =   ""
2592      Visible         =   True
2593      Width           =   100
2594   End
2595   Begin StaticText StaticText_Profiles
2596      AutoDeactivate  =   True
2597      Bold            =   ""
2598      DataField       =   ""
2599      DataSource      =   ""
2600      Enabled         =   True
2601      Height          =   20
2602      HelpTag         =   ""
2603      Index           =   -2147483648
2604      InitialParent   =   ""
2605      Italic          =   ""
2606      Left            =   20
2607      LockBottom      =   ""
2608      LockedInPosition=   False
2609      LockLeft        =   ""
2610      LockRight       =   ""
2611      LockTop         =   ""
2612      Multiline       =   ""
2613      Scope           =   0
2614      TabIndex        =   51
2615      TabPanelIndex   =   0
2616      Text            =   "Profiles"
2617      TextAlign       =   0
2618      TextColor       =   "&cB8B8B8"
2619      TextFont        =   "System"
2620      TextSize        =   0
2621      TextUnit        =   0
2622      Top             =   122
2623      Underline       =   ""
2624      Visible         =   True
2625      Width           =   100
2626   End
2627   Begin PopupMenu PopupMenu_Profile
2628      AutoDeactivate  =   True
2629      Bold            =   ""
2630      DataField       =   ""
2631      DataSource      =   ""
2632      Enabled         =   True
2633      Height          =   20
2634      HelpTag         =   ""
2635      Index           =   -2147483648
2636      InitialParent   =   ""
2637      InitialValue    =   ""
2638      Italic          =   ""
2639      Left            =   20
2640      ListIndex       =   0
2641      LockBottom      =   ""
2642      LockedInPosition=   False
2643      LockLeft        =   ""
2644      LockRight       =   ""
2645      LockTop         =   ""
2646      Scope           =   0
2647      TabIndex        =   54
2648      TabPanelIndex   =   0
2649      TabStop         =   True
2650      TextFont        =   "System"
2651      TextSize        =   0
2652      TextUnit        =   0
2653      Top             =   154
2654      Underline       =   ""
2655      Visible         =   True
2656      Width           =   128
2657   End
2658   Begin PushButton PushButton_SaveProfile
2659      AutoDeactivate  =   True
2660      Bold            =   ""
2661      Cancel          =   ""
2662      Caption         =   "Save"
2663      Default         =   ""
2664      Enabled         =   False
2665      Height          =   20
2666      HelpTag         =   ""
2667      Index           =   -2147483648
2668      InitialParent   =   ""
2669      Italic          =   ""
2670      Left            =   20
2671      LockBottom      =   ""
2672      LockedInPosition=   False
2673      LockLeft        =   ""
2674      LockRight       =   ""
2675      LockTop         =   ""
2676      Scope           =   0
2677      TabIndex        =   55
2678      TabPanelIndex   =   0
2679      TabStop         =   True
2680      TextFont        =   "System"
2681      TextSize        =   0
2682      TextUnit        =   0
2683      Top             =   250
2684      Underline       =   ""
2685      Visible         =   True
2686      Width           =   88
2687   End
2688   Begin PushButton PushButton_Delete
2689      AutoDeactivate  =   True
2690      Bold            =   ""
2691      Cancel          =   ""
2692      Caption         =   "Delete"
2693      Default         =   ""
2694      Enabled         =   False
2695      Height          =   20
2696      HelpTag         =   ""
2697      Index           =   -2147483648
2698      InitialParent   =   ""
2699      Italic          =   ""
2700      Left            =   20
2701      LockBottom      =   ""
2702      LockedInPosition=   False
2703      LockLeft        =   ""
2704      LockRight       =   ""
2705      LockTop         =   ""
2706      Scope           =   0
2707      TabIndex        =   56
2708      TabPanelIndex   =   0
2709      TabStop         =   True
2710      TextFont        =   "System"
2711      TextSize        =   0
2712      TextUnit        =   0
2713      Top             =   282
2714      Underline       =   ""
2715      Visible         =   True
2716      Width           =   88
2717   End
2718   Begin PushButton PushButton_Create
2719      AutoDeactivate  =   True
2720      Bold            =   ""
2721      Cancel          =   ""
2722      Caption         =   "Create"
2723      Default         =   ""
2724      Enabled         =   True
2725      Height          =   20
2726      HelpTag         =   ""
2727      Index           =   -2147483648
2728      InitialParent   =   ""
2729      Italic          =   ""
2730      Left            =   20
2731      LockBottom      =   ""
2732      LockedInPosition=   False
2733      LockLeft        =   ""
2734      LockRight       =   ""
2735      LockTop         =   ""
2736      Scope           =   0
2737      TabIndex        =   57
2738      TabPanelIndex   =   0
2739      TabStop         =   True
2740      TextFont        =   "System"
2741      TextSize        =   0
2742      TextUnit        =   0
2743      Top             =   186
2744      Underline       =   ""
2745      Visible         =   True
2746      Width           =   88
2747   End
2748   Begin PushButton PushButton_Import
2749      AutoDeactivate  =   True
2750      Bold            =   ""
2751      Cancel          =   ""
2752      Caption         =   "Import"
2753      Default         =   ""
2754      Enabled         =   True
2755      Height          =   20
2756      HelpTag         =   ""
2757      Index           =   -2147483648
2758      InitialParent   =   ""
2759      Italic          =   ""
2760      Left            =   20
2761      LockBottom      =   ""
2762      LockedInPosition=   False
2763      LockLeft        =   ""
2764      LockRight       =   ""
2765      LockTop         =   ""
2766      Scope           =   0
2767      TabIndex        =   58
2768      TabPanelIndex   =   0
2769      TabStop         =   True
2770      TextFont        =   "System"
2771      TextSize        =   0
2772      TextUnit        =   0
2773      Top             =   218
2774      Underline       =   ""
2775      Visible         =   True
2776      Width           =   88
2777   End
2778   Begin PushButton PushButton_Export
2779      AutoDeactivate  =   True
2780      Bold            =   ""
2781      Cancel          =   ""
2782      Caption         =   "Export"
2783      Default         =   ""
2784      Enabled         =   False
2785      Height          =   20
2786      HelpTag         =   ""
2787      Index           =   -2147483648
2788      InitialParent   =   ""
2789      Italic          =   ""
2790      Left            =   20
2791      LockBottom      =   ""
2792      LockedInPosition=   False
2793      LockLeft        =   ""
2794      LockRight       =   ""
2795      LockTop         =   ""
2796      Scope           =   0
2797      TabIndex        =   59
2798      TabPanelIndex   =   0
2799      TabStop         =   True
2800      TextFont        =   "System"
2801      TextSize        =   0
2802      TextUnit        =   0
2803      Top             =   314
2804      Underline       =   ""
2805      Visible         =   True
2806      Width           =   88
2807   End
2808End
2809#tag EndWindow
2810
2811#tag WindowCode
2812        #tag Event
2813                Sub Open()
2814                  StaticText_Version.Text = "Version " + str(app.NonReleaseVersion/100)
2815                 
2816                  //Set the default car type
2817                  ICSSerialPort1.setCarType("MR-03")
2818                 
2819                  readPreferences()
2820                 
2821                  //Set and open the COM Port
2822                  dim i, count as integer
2823                  count = System.SerialPortCount
2824                 
2825                  for i = 0 to count - 1
2826                    PopupMenu_SerialPort.AddRow( System.SerialPort(i).Name )
2827                  next
2828                 
2829                  if comPort <> "" then
2830                    //We can try opening the com port and set the popup menu to that port
2831                   
2832                    for i = 0 to PopupMenu_SerialPort.ListCount - 1
2833                     
2834                      if PopupMenu_SerialPort.list(i) = comPort then
2835                        //Found a match, set and open
2836                        PopupMenu_SerialPort.ListIndex = i
2837                        ICSSerialPort1.SerialPort = System.SerialPort(i)
2838                       
2839                        if not ICSSerialPort1.Open then
2840                          //Could not open
2841                          MsgBox "Error opening defined com port"
2842                        else
2843                          //Enable buttons
2844                          PushButton_Read.Enabled = True
2845                          PushButton_Write.Enabled = True
2846                          PushButton_Reset.Enabled = True
2847                        end if
2848                        //No need to continue loop
2849                        exit
2850                      end if
2851                     
2852                    next
2853                   
2854                  end if
2855                 
2856                  #if TargetWin32
2857                    //Have to change text colors since Windows does not allow for transparancy of the tab panel
2858                    StaticText_BackTiming.TextColor = &c000000
2859                    StaticText_Byte1.TextColor = &c000000
2860                    StaticText_Byte10.TextColor = &c000000
2861                    StaticText_Byte11.TextColor = &c000000
2862                    StaticText_Byte12.TextColor = &c000000
2863                    StaticText_Byte13.TextColor = &c000000
2864                    StaticText_Byte14.TextColor = &c000000
2865                    StaticText_Byte15.TextColor = &c000000
2866                    StaticText_Byte16.TextColor = &c000000
2867                    StaticText_Byte17.TextColor = &c000000
2868                    StaticText_Byte18.TextColor = &c000000
2869                    StaticText_Byte2.TextColor = &c000000
2870                    StaticText_Byte3.TextColor = &c000000
2871                    StaticText_Byte4.TextColor = &c000000
2872                    StaticText_Byte5.TextColor = &c000000
2873                    StaticText_Byte6.TextColor = &c000000
2874                    StaticText_Byte7.TextColor = &c000000
2875                    StaticText_Byte8.TextColor = &c000000
2876                    StaticText_Byte9.TextColor = &c000000
2877                    StaticText_CarType.TextColor = &c000000
2878                    StaticText_DBand.TextColor = &c000000
2879                    StaticText_DFreq.TextColor = &c000000
2880                    StaticText_Dump.TextColor = &c000000
2881                    StaticText_Gain.TextColor = &c000000
2882                    StaticText_Nuetral.TextColor = &c000000
2883                    //StaticText_Profiles.TextColor = &c000000
2884                    StaticText_Punch.TextColor = &c000000
2885                    //StaticText_SerialPort.TextColor = &c000000
2886                    StaticText_Speed.TextColor = &c000000
2887                    StaticText_STGain.TextColor = &c000000
2888                    StaticText_THGain.TextColor = &c000000
2889                    //StaticText_Version.TextColor = &c000000
2890                    StaticText_VerticalIntertia.TextColor = &c000000
2891                   
2892                  #endif
2893                 
2894                End Sub
2895        #tag EndEvent
2896
2897
2898        #tag Method, Flags = &h21
2899                Private Sub disableControls()
2900                  select case ICSSerialPort1.carType
2901                   
2902                  Case "MR-03"
2903                    //Enable any controls that may have been disabled
2904                    PopupMenu_BackTiming.Enabled = True
2905                    StaticText_BackTiming.Enabled = True
2906                   
2907                    Slider_STGain.Enabled = True
2908                    StaticText_STGain.Enabled = True
2909                    EditField_STGain.Enabled = True
2910                   
2911                    Slider_THGain.Enabled = True
2912                    StaticText_THGain.Enabled = True
2913                    EditField_THGain.Enabled = True
2914                   
2915                  Case "dNaNo"
2916                    //Disable unused controls and set them to custom
2917                    PopupMenu_BackTiming.Enabled = False
2918                    StaticText_BackTiming.Enabled = False
2919                    PopupMenu_BackTiming.ListIndex = PopupMenu_BackTiming.ListCount
2920                   
2921                    //Enable any controls that may have been disabled
2922                    Slider_STGain.Enabled = True
2923                    StaticText_STGain.Enabled = True
2924                    EditField_STGain.Enabled = True
2925                   
2926                    Slider_THGain.Enabled = True
2927                    StaticText_THGain.Enabled = True
2928                    EditField_THGain.Enabled = True
2929                   
2930                  Case "ASF"
2931                    //Disable unused controls and set them to custom
2932                    PopupMenu_BackTiming.Enabled = False
2933                    StaticText_BackTiming.Enabled = False
2934                    PopupMenu_BackTiming.ListIndex = PopupMenu_BackTiming.ListCount
2935                   
2936                    Slider_STGain.Enabled = False
2937                    StaticText_STGain.Enabled = False
2938                    Slider_STGain.Value = 255
2939                    EditField_STGain.Enabled = False
2940                   
2941                    Slider_THGain.Enabled = False
2942                    StaticText_THGain.Enabled = False
2943                    Slider_THGain.Value = 255
2944                    EditField_THGain.Enabled = False
2945                   
2946                  end select
2947                End Sub
2948        #tag EndMethod
2949
2950        #tag Method, Flags = &h21
2951                Private Sub readPreferences()
2952                  dim filePreference as FolderItem = GetFolderItem("icspref.xml")
2953                  dim xdoc as XmlDocument
2954                  dim root as XmlNode
2955                  dim i as Integer
2956                  dim count as integer
2957                  dim item as string
2958                 
2959                  //Read the settings from the preferences file
2960                  if filePreference <> Nil then
2961                    if filePreference.Exists then
2962                      xdoc = New XmlDocument(filePreference)
2963                     
2964                      count = xdoc.DocumentElement.ChildCount
2965                     
2966                      for i = 0 to count - 1
2967                        root = xdoc.DocumentElement.Child(i)
2968                       
2969                        item = root.FirstChild.Value
2970                       
2971                        select case root.Name
2972                        case "comPort"
2973                          comPort = item
2974                        end select
2975                      next
2976                    end if
2977                  end if
2978                 
2979                 
2980                End Sub
2981        #tag EndMethod
2982
2983        #tag Method, Flags = &h21
2984                Private Sub savePreferences()
2985                  dim xml as XmlDocument
2986                  dim root as XMLNode
2987                  dim comPortXML as XmlNode
2988                  dim f as FolderItem
2989                 
2990                  //Save the preferences
2991                 
2992                  f = GetFolderItem("icspref.xml")
2993                 
2994                  if f <> Nil then
2995                    //Create a new XML document
2996                    xml = New XmlDocument
2997                    root = xml.AppendChild(xml.CreateElement("icspref"))
2998                   
2999                    //Add elements
3000                    comPortXML = root.AppendChild(xml.CreateElement("comPort"))
3001                    comPortXML.AppendChild(xml.CreateTextNode(comPort))
3002                   
3003                    //Save the output
3004                    xml.SaveXml(f)
3005                  end if
3006                 
3007                End Sub
3008        #tag EndMethod
3009
3010        #tag Method, Flags = &h21
3011                Private Sub updateAdvancedScreen()
3012                  //Update the fields on the advanced screen to match current values
3013                  EditField_Byte1.Text = str(asc(ICSSerialPort1.byte01))
3014                  EditField_Byte2.Text = str(asc(ICSSerialPort1.byte02))
3015                  EditField_Byte3.Text = str(asc(ICSSerialPort1.byte03))
3016                  EditField_Byte4.Text = str(asc(ICSSerialPort1.byte04))
3017                  EditField_Byte5.Text = str(asc(ICSSerialPort1.byte05))
3018                  EditField_Byte6.Text = str(asc(ICSSerialPort1.byte06))
3019                  EditField_Byte7.Text = str(asc(ICSSerialPort1.byte07))
3020                  EditField_Byte8.Text = str(asc(ICSSerialPort1.byte08))
3021                  EditField_Byte9.Text = str(asc(ICSSerialPort1.byte09))
3022                  EditField_Byte10.Text = str(asc(ICSSerialPort1.byte10))
3023                  EditField_Byte11.Text = str(asc(ICSSerialPort1.byte11))
3024                  EditField_Byte12.Text = str(asc(ICSSerialPort1.byte12))
3025                  EditField_Byte13.Text = str(asc(ICSSerialPort1.byte13))
3026                  EditField_Byte14.Text = str(asc(ICSSerialPort1.byte14))
3027                  EditField_Byte15.Text = str(asc(ICSSerialPort1.byte15))
3028                  EditField_Byte16.Text = str(asc(ICSSerialPort1.byte16))
3029                  EditField_Byte17.Text = str(asc(ICSSerialPort1.byte17))
3030                  EditField_Byte18.Text = str(asc(ICSSerialPort1.byte18))
3031                End Sub
3032        #tag EndMethod
3033
3034        #tag Method, Flags = &h21
3035                Private Sub updateCarScreen()
3036                  //Use this method to update the car screen
3037                 
3038                  //Update Gain
3039                  Select Case ICSSerialPort1.byte03
3040                   
3041                  Case chrb(&h32)
3042                    PopupMenu_Gain.ListIndex = 0
3043                   
3044                  Case chrb(&h64)
3045                    PopupMenu_Gain.ListIndex = 1
3046                   
3047                  Case chrb(&hFF)
3048                    PopupMenu_Gain.ListIndex = 2
3049                   
3050                  Else
3051                    PopupMenu_Gain.ListIndex = 3
3052                   
3053                  End Select
3054                 
3055                  //Update Speed
3056                  Select Case ICSSerialPort1.Byte04
3057                   
3058                  Case chrb(&h0A)
3059                    PopupMenu_Speed.ListIndex = 0
3060                   
3061                  Case chrb(&h14)
3062                    PopupMenu_Speed.ListIndex = 1
3063                   
3064                  Case chrb(&h1E)
3065                    PopupMenu_Speed.ListIndex = 2
3066                   
3067                  Case chrb(&h28)
3068                    PopupMenu_Speed.ListIndex = 3
3069                   
3070                  Case chrb(&hFF)
3071                    PopupMenu_Speed.ListIndex = 4
3072                   
3073                  Else
3074                    PopupMenu_Speed.ListIndex = 5
3075                   
3076                  End Select
3077                 
3078                  //Update punch
3079                  Slider_Punch.Value = asc(ICSSerialPort1.Byte05)
3080                  EditField_Punch.Text = str(asc(ICSSerialPort1.Byte05))
3081                 
3082                  //Update DBAND
3083                  Select Case ICSSerialPort1.Byte06
3084                   
3085                  Case chrb(&h01)
3086                    PopupMenu_DBand.ListIndex = 0
3087                   
3088                  Case chrb(&h02)
3089                    PopupMenu_DBand.ListIndex = 1
3090                   
3091                  Case chrb(&h03)
3092                    PopupMenu_DBand.ListIndex = 2
3093                   
3094                  Else
3095                    PopupMenu_DBand.ListIndex = 3
3096                   
3097                  End Select
3098                 
3099                  //Update Dump
3100                  Select Case ICSSerialPort1.Byte07
3101                   
3102                  Case chrb(&h01)
3103                    PopupMenu_Dump.ListIndex = 0
3104                   
3105                  Case chrb(&h02)
3106                    PopupMenu_Dump.ListIndex = 1
3107                   
3108                  Else
3109                    PopupMenu_Dump.ListIndex = 2
3110                   
3111                  End Select
3112                 
3113                  //Update DFREQ
3114                  Select Case ICSSerialPort1.Byte08
3115                   
3116                  Case chrb(&h40)
3117                    PopupMenu_DFreq.ListIndex = 0
3118                   
3119                  Case chrb(&h78)
3120                    PopupMenu_DFreq.ListIndex = 1
3121                   
3122                  Case chrb(&hFF)
3123                    PopupMenu_DFreq.ListIndex = 2
3124                   
3125                  Else
3126                    PopupMenu_DFreq.ListIndex = 3
3127                   
3128                  End Select
3129                 
3130                  //Update Nuetral
3131                  //Nuetral is defined by 2 bytes
3132                  Select Case ICSSerialPort1.Byte11
3133                   
3134                  Case chrb(&h82)
3135                    if ICSSerialPort1.Byte12 = chrb(&h7C) then
3136                      PopupMenu_Nuetral.ListIndex = 0
3137                    else
3138                      PopupMenu_Nuetral.ListIndex = 3
3139                    end if
3140                   
3141                  Case chrb(&h88)
3142                    if ICSSerialPort1.Byte12 = chrb(&h78) then
3143                      PopupMenu_Nuetral.ListIndex = 1
3144                    else
3145                      PopupMenu_Nuetral.ListIndex = 3
3146                    end if
3147                   
3148                  Case chrb(&h94)
3149                    if ICSSerialPort1.Byte12 = chrb(&h6C) then
3150                      PopupMenu_Nuetral.ListIndex = 2
3151                    else
3152                      PopupMenu_Nuetral.ListIndex = 3
3153                    end if
3154                   
3155                  Else
3156                    PopupMenu_Nuetral.ListIndex = 3
3157                   
3158                  End Select
3159                 
3160                  //Update Vertial Intertia
3161                  Select Case ICSSerialPort1.Byte13
3162                   
3163                  Case chrb(&h01)
3164                    PopupMenu_VerticalInteria.ListIndex = 0
3165                   
3166                  Case chrb(&h02)
3167                    PopupMenu_VerticalInteria.ListIndex = 1
3168                   
3169                  Case chrb(&h03)
3170                    PopupMenu_VerticalInteria.ListIndex = 2
3171                   
3172                  Case chrb(&h04)
3173                    PopupMenu_VerticalInteria.ListIndex = 3
3174                   
3175                  Case chrb(&hFF)
3176                    PopupMenu_VerticalInteria.ListIndex = 4
3177                   
3178                  Else
3179                    PopupMenu_VerticalInteria.ListIndex = 5
3180                   
3181                  End Select
3182                 
3183                  //Update Back Timing
3184                  Select Case ICSSerialPort1.Byte15
3185                   
3186                  Case chrb(&h01)
3187                    PopupMenu_BackTiming.ListIndex = 0
3188                   
3189                  Case chrb(&h05)
3190                    PopupMenu_BackTiming.ListIndex = 1
3191                   
3192                  Case chrb(&h0A)
3193                    PopupMenu_BackTiming.ListIndex = 2
3194                   
3195                  Case chrb(&h14)
3196                    PopupMenu_BackTiming.ListIndex = 3
3197                   
3198                  Case chrb(&h28)
3199                    PopupMenu_BackTiming.ListIndex = 4
3200                   
3201                  Else
3202                    PopupMenu_BackTiming.ListIndex = 5
3203                   
3204                  End Select
3205                 
3206                  //Update Steering Gain
3207                  Slider_STGain.Value = asc(ICSSerialPort1.Byte16)
3208                  EditField_STGain.Text = str(asc(ICSSerialPort1.Byte16))
3209                 
3210                  //Update Throttle Gain
3211                  Slider_THGain.Value = asc(ICSSerialPort1.Byte17)
3212                  EditField_THGain.Text = str(asc(ICSSerialPort1.Byte17))
3213                End Sub
3214        #tag EndMethod
3215
3216
3217        #tag Note, Name = License
3218                Copyright 2010 Jeremy Auten
3219               
3220                This file is part of Flip Side ICS Software.
3221               
3222                Flip Side ICS Software is free software: you can redistribute it and/or modify
3223                it under the terms of the GNU General Public License as published by
3224                the Free Software Foundation, either version 3 of the License, or
3225                (at your option) any later version.
3226               
3227                Flip Side ICS Software is distributed in the hope that it will be useful,
3228                but WITHOUT ANY WARRANTY; without even the implied warranty of
3229                MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
3230                GNU General Public License for more details.
3231               
3232                You should have received a copy of the GNU General Public License
3233                along with Flip Side ICS Software.  If not, see <http://www.gnu.org/licenses/>.
3234        #tag EndNote
3235
3236
3237        #tag Property, Flags = &h0
3238                comPort As string
3239        #tag EndProperty
3240
3241
3242        #tag Constant, Name = defaultControlHeight, Type = Double, Dynamic = False, Default = \"20", Scope = Public
3243                #Tag Instance, Platform = Mac OS, Language = Default, Definition  = \"20"
3244                #Tag Instance, Platform = Windows, Language = Default, Definition  = \"22"
3245                #Tag Instance, Platform = Linux, Language = Default, Definition  = \"24"
3246        #tag EndConstant
3247
3248
3249#tag EndWindowCode
3250
3251#tag Events PushButton_Read
3252        #tag Event
3253                Sub Action()
3254                  ICSSerialPort1.readCar
3255                End Sub
3256        #tag EndEvent
3257#tag EndEvents
3258#tag Events PushButton_Write
3259        #tag Event
3260                Sub Action()
3261                  ICSSerialPort1.writeCar
3262                End Sub
3263        #tag EndEvent
3264#tag EndEvents
3265#tag Events TabPanel1
3266        #tag Event
3267                Sub Change()
3268                  updateAdvancedScreen
3269                  updateCarScreen
3270                End Sub
3271        #tag EndEvent
3272#tag EndEvents
3273#tag Events EditField_Byte9
3274        #tag Event
3275                Sub TextChange()
3276                  //Make sure we have a valid value if not then set it to something
3277                  if me.Text <> "" then
3278                    if val(me.Text) > 255 or val(me.Text) < 0 then
3279                      me.Text = "255"
3280                    end if
3281                  end if
3282                 
3283                  dim d as double
3284                  dim i as integer
3285                  d = val(me.Text)
3286                  i = d
3287                  ICSSerialPort1.Byte09 = chrb(i)
3288                End Sub
3289        #tag EndEvent
3290#tag EndEvents
3291#tag Events EditField_Byte8
3292        #tag Event
3293                Sub TextChange()
3294                  //Make sure we have a valid value if not then set it to something
3295                  if me.Text <> "" then
3296                    if val(me.Text) > 255 or val(me.Text) < 0 then
3297                      me.Text = "255"
3298                    end if
3299                  end if
3300                 
3301                  dim d as double
3302                  dim i as integer
3303                  d = val(me.Text)
3304                  i = d
3305                  ICSSerialPort1.Byte08 = chrb(i)
3306                End Sub
3307        #tag EndEvent
3308#tag EndEvents
3309#tag Events EditField_Byte7
3310        #tag Event
3311                Sub TextChange()
3312                  //Make sure we have a valid value if not then set it to something
3313                  if me.Text <> "" then
3314                    if val(me.Text) > 255 or val(me.Text) < 0 then
3315                      me.Text = "255"
3316                    end if
3317                  end if
3318                 
3319                  dim d as double
3320                  dim i as integer
3321                  d = val(me.Text)
3322                  i = d
3323                  ICSSerialPort1.Byte07 = chrb(i)
3324                End Sub
3325        #tag EndEvent
3326#tag EndEvents
3327#tag Events EditField_Byte6
3328        #tag Event
3329                Sub TextChange()
3330                  //Make sure we have a valid value if not then set it to something
3331                  if me.Text <> "" then
3332                    if val(me.Text) > 255 or val(me.Text) < 0 then
3333                      me.Text = "255"
3334                    end if
3335                  end if
3336                 
3337                  dim d as double
3338                  dim i as integer
3339                  d = val(me.Text)
3340                  i = d
3341                  ICSSerialPort1.Byte06 = chrb(i)
3342                End Sub
3343        #tag EndEvent
3344#tag EndEvents
3345#tag Events EditField_Byte5
3346        #tag Event
3347                Sub TextChange()
3348                  //Make sure we have a valid value if not then set it to something
3349                  if me.Text <> "" then
3350                    if val(me.Text) > 255 or val(me.Text) < 0 then
3351                      me.Text = "255"
3352                    end if
3353                  end if
3354                 
3355                  dim d as double
3356                  dim i as integer
3357                  d = val(me.Text)
3358                  i = d
3359                  ICSSerialPort1.Byte05 = chrb(i)
3360                End Sub
3361        #tag EndEvent
3362#tag EndEvents
3363#tag Events EditField_Byte4
3364        #tag Event
3365                Sub TextChange()
3366                  //Make sure we have a valid value if not then set it to something
3367                  if me.Text <> "" then
3368                    if val(me.Text) > 255 or val(me.Text) < 0 then
3369                      me.Text = "255"
3370                    end if
3371                  end if
3372                 
3373                  dim d as double
3374                  dim i as integer
3375                  d = val(me.Text)
3376                  i = d
3377                  ICSSerialPort1.Byte04 = chrb(i)
3378                End Sub
3379        #tag EndEvent
3380#tag EndEvents
3381#tag Events EditField_Byte3
3382        #tag Event
3383                Sub TextChange()
3384                  //Make sure we have a valid value if not then set it to something
3385                  if me.Text <> "" then
3386                    if val(me.Text) > 255 or val(me.Text) < 0 then
3387                      me.Text = "255"
3388                    end if
3389                  end if
3390                 
3391                  dim d as double
3392                  dim i as integer
3393                  d = val(me.Text)
3394                  i = d
3395                  ICSSerialPort1.Byte03 = chrb(i)
3396                End Sub
3397        #tag EndEvent
3398#tag EndEvents
3399#tag Events Slider_THGain
3400        #tag Event
3401                Sub ValueChanged()
3402                  ICSSerialPort1.Byte17 = chrb(me.Value)
3403                  //Check to see if we need to update the edit field
3404                  //This prevents the edit field from triggering this event that then updates the edit field again
3405                  //Causing the cursor to move to the begginning of the editfield
3406                  if EditField_THGain.Text <> str(me.Value) then
3407                    EditField_THGain.Text = str(me.Value)
3408                  end if
3409                 
3410                 
3411                End Sub
3412        #tag EndEvent
3413#tag EndEvents
3414#tag Events EditField_THGain
3415        #tag Event
3416                Sub TextChange()
3417                  //Make sure we have a valid value if not then set it to something
3418                  if me.Text <> "" then
3419                    if val(me.Text) > 255 or val(me.Text) < 1 then
3420                      me.Text = "255"
3421                    end if
3422                  end if
3423                 
3424                  dim d as double
3425                  dim i as integer
3426                  d = val(me.Text)
3427                  i = d
3428                  ICSSerialPort1.Byte17 = chrb(i)
3429                 
3430                  Slider_THGain.Value = val(me.Text)
3431                End Sub
3432        #tag EndEvent
3433#tag EndEvents
3434#tag Events Slider_STGain
3435        #tag Event
3436                Sub ValueChanged()
3437                  ICSSerialPort1.Byte16 = chrb(me.Value)
3438                  //Check to see if we need to update the edit field
3439                  //This prevents the edit field from triggering this event that then updates the edit field again
3440                  //Causing the cursor to move to the begginning of the editfield
3441                  if EditField_STGain.Text <> str(me.Value) then
3442                    EditField_STGain.Text = str(me.Value)
3443                  end if
3444                End Sub
3445        #tag EndEvent
3446#tag EndEvents
3447#tag Events EditField_STGain
3448        #tag Event
3449                Sub TextChange()
3450                  //Make sure we have a valid value if not then set it to something
3451                  if me.Text <> "" then
3452                    if val(me.Text) > 255 or val(me.Text) < 1 then
3453                      me.Text = "255"
3454                    end if
3455                  end if
3456                 
3457                  dim d as double
3458                  dim i as integer
3459                  d = val(me.Text)
3460                  i = d
3461                  ICSSerialPort1.Byte16 = chrb(i)
3462                 
3463                  Slider_STGain.Value = val(me.Text)
3464                 
3465                 
3466                End Sub
3467        #tag EndEvent
3468#tag EndEvents
3469#tag Events PopupMenu_BackTiming
3470        #tag Event
3471                Sub Change()
3472                  Select Case me.ListIndex
3473                   
3474                  Case 0
3475                    ICSSerialPort1.Byte15 = chrb(&h01)
3476                  Case 1
3477                    ICSSerialPort1.Byte15 = chrb(&h05)
3478                  Case 2
3479                    ICSSerialPort1.Byte15 = chrb(&h0A)
3480                  Case 3
3481                    ICSSerialPort1.Byte15 = chrb(&h14)
3482                  Case 4
3483                    ICSSerialPort1.Byte15 = chrb(&h28)
3484                  Case 5
3485                   
3486                  End Select
3487                End Sub
3488        #tag EndEvent
3489#tag EndEvents
3490#tag Events PopupMenu_VerticalInteria
3491        #tag Event
3492                Sub Change()
3493                  Select Case me.ListIndex
3494                   
3495                  Case 0
3496                    ICSSerialPort1.Byte13 = chrb(&h01)
3497                  Case 1
3498                    ICSSerialPort1.Byte13 = chrb(&h02)
3499                  Case 2
3500                    ICSSerialPort1.Byte13 = chrb(&h03)
3501                  Case 3
3502                    ICSSerialPort1.Byte13 = chrb(&h04)
3503                  Case 4
3504                    ICSSerialPort1.Byte13 = chrb(&hFF)
3505                  Case 5
3506                   
3507                  End Select
3508                End Sub
3509        #tag EndEvent
3510#tag EndEvents
3511#tag Events PopupMenu_Nuetral
3512        #tag Event
3513                Sub Change()
3514                  Select Case me.ListIndex
3515                   
3516                  Case 0
3517                    ICSSerialPort1.Byte11 = chrb(&h82)
3518                    ICSSerialPort1.Byte12 = chrb(&h7C)
3519                   
3520                  Case 1
3521                    ICSSerialPort1.Byte11 = chrb(&h88)
3522                    ICSSerialPort1.Byte12 = chrb(&h78)
3523                   
3524                  Case 2
3525                    ICSSerialPort1.Byte11 = chrb(&h94)
3526                    ICSSerialPort1.Byte12 = chrb(&h6C)
3527                   
3528                  Case 3
3529                   
3530                  End Select
3531                End Sub
3532        #tag EndEvent
3533#tag EndEvents
3534#tag Events PopupMenu_DFreq
3535        #tag Event
3536                Sub Change()
3537                  Select Case me.ListIndex
3538                   
3539                  Case 0
3540                    ICSSerialPort1.Byte08 = chrb(&h40)
3541                  Case 1
3542                    ICSSerialPort1.Byte08 = chrb(&h78)
3543                  Case 2
3544                    ICSSerialPort1.Byte08 = chrb(&hFF)
3545                  Case 3
3546                   
3547                  End Select
3548                End Sub
3549        #tag EndEvent
3550#tag EndEvents
3551#tag Events PopupMenu_Dump
3552        #tag Event
3553                Sub Change()
3554                  Select Case me.ListIndex
3555                   
3556                  Case 0
3557                    ICSSerialPort1.Byte07 = chrb(&h01)
3558                  Case 1
3559                    ICSSerialPort1.Byte07 = chrb(&h02)
3560                  Case 2
3561                   
3562                  End Select
3563                End Sub
3564        #tag EndEvent
3565#tag EndEvents
3566#tag Events PopupMenu_DBand
3567        #tag Event
3568                Sub Change()
3569                  Select Case me.ListIndex
3570                   
3571                  Case 0
3572                    ICSSerialPort1.Byte06 = chrb(&h01)
3573                  Case 1
3574                    ICSSerialPort1.Byte06 = chrb(&h02)
3575                  Case 2
3576                    ICSSerialPort1.Byte06 = chrb(&h03)
3577                  Case 3
3578                   
3579                  End Select
3580                End Sub
3581        #tag EndEvent
3582#tag EndEvents
3583#tag Events Slider_Punch
3584        #tag Event
3585                Sub ValueChanged()
3586                  ICSSerialPort1.Byte05 = chrb(me.Value)
3587                  //Check to see if we need to update the edit field
3588                  //This prevents the edit field from triggering this event that then updates the edit field again
3589                  //Causing the cursor to move to the begginning of the editfield
3590                  if EditField_Punch.Text <> str(me.Value) then
3591                    EditField_Punch.Text = str(me.Value)
3592                  end if
3593                 
3594                 
3595                End Sub
3596        #tag EndEvent
3597#tag EndEvents
3598#tag Events EditField_Punch
3599        #tag Event
3600                Sub TextChange()
3601                  //Make sure we have a valid value if not then set it to something
3602                  if me.Text <> "" then
3603                    if val(me.Text) > 255 or val(me.Text) < 1 then
3604                      me.Text = "255"
3605                    end if
3606                  end if
3607                 
3608                  dim d as double
3609                  dim i as integer
3610                  d = val(me.Text)
3611                  i = d
3612                  ICSSerialPort1.Byte05 = chrb(i)
3613                 
3614                  Slider_Punch.Value = val(me.Text)
3615                End Sub
3616        #tag EndEvent
3617#tag EndEvents
3618#tag Events PopupMenu_Speed
3619        #tag Event
3620                Sub Change()
3621                  Select Case me.ListIndex
3622                   
3623                  Case 0
3624                    ICSSerialPort1.Byte04 = chrb(&h0A)
3625                  Case 1
3626                    ICSSerialPort1.Byte04 = chrb(&h14)
3627                  Case 2
3628                    ICSSerialPort1.Byte04 = chrb(&h1E)
3629                  Case 3
3630                    ICSSerialPort1.Byte04 = chrb(&h28)
3631                  Case 4
3632                    ICSSerialPort1.Byte04 = chrb(&hFF)
3633                  Case 5
3634                   
3635                  End Select
3636                End Sub
3637        #tag EndEvent
3638#tag EndEvents
3639#tag Events PopupMenu_Gain
3640        #tag Event
3641                Sub Change()
3642                  Select Case me.ListIndex
3643                   
3644                  case 0
3645                    ICSSerialPort1.Byte03 = chrb(&h32)
3646                   
3647                  case 1
3648                    ICSSerialPort1.Byte03 = chrb(&h64)
3649                   
3650                  case 2
3651                    ICSSerialPort1.Byte03 = chrb(&hFF)
3652                   
3653                  case 3
3654                   
3655                  End Select
3656                 
3657                End Sub
3658        #tag EndEvent
3659#tag EndEvents
3660#tag Events PopupMenu_CarType
3661        #tag Event
3662                Sub Change()
3663                  ICSSerialPort1.setCarType(me.Text)
3664                  ICSSerialPort1.setDefaultValues
3665                  disableControls
3666                 
3667                End Sub
3668        #tag EndEvent
3669#tag EndEvents
3670#tag Events EditField_Byte12
3671        #tag Event
3672                Sub TextChange()
3673                  //Make sure we have a valid value if not then set it to something
3674                  if me.Text <> "" then
3675                    if val(me.Text) > 255 or val(me.Text) < 0 then
3676                      me.Text = "255"
3677                    end if
3678                  end if
3679                 
3680                  dim d as double
3681                  dim i as integer
3682                  d = val(me.Text)
3683                  i = d
3684                  ICSSerialPort1.Byte12 = chrb(i)
3685                End Sub
3686        #tag EndEvent
3687#tag EndEvents
3688#tag Events EditField_Byte11
3689        #tag Event
3690                Sub TextChange()
3691                  //Make sure we have a valid value if not then set it to something
3692                  if me.Text <> "" then
3693                    if val(me.Text) > 255 or val(me.Text) < 0 then
3694                      me.Text = "255"
3695                    end if
3696                  end if
3697                 
3698                  dim d as double
3699                  dim i as integer
3700                  d = val(me.Text)
3701                  i = d
3702                  ICSSerialPort1.Byte11 = chrb(i)
3703                End Sub
3704        #tag EndEvent
3705#tag EndEvents
3706#tag Events EditField_Byte10
3707        #tag Event
3708                Sub TextChange()
3709                  //Make sure we have a valid value if not then set it to something
3710                  if me.Text <> "" then
3711                    if val(me.Text) > 255 or val(me.Text) < 0 then
3712                      me.Text = "255"
3713                    end if
3714                  end if
3715                 
3716                  dim d as double
3717                  dim i as integer
3718                  d = val(me.Text)
3719                  i = d
3720                  ICSSerialPort1.Byte10 = chrb(i)
3721                End Sub
3722        #tag EndEvent
3723#tag EndEvents
3724#tag Events EditField_Byte17
3725        #tag Event
3726                Sub TextChange()
3727                  //Make sure we have a valid value if not then set it to something
3728                  if me.Text <> "" then
3729                    if val(me.Text) > 255 or val(me.Text) < 0 then
3730                      me.Text = "255"
3731                    end if
3732                  end if
3733                 
3734                  dim d as double
3735                  dim i as integer
3736                  d = val(me.Text)
3737                  i = d
3738                  ICSSerialPort1.Byte17 = chrb(i)
3739                End Sub
3740        #tag EndEvent
3741#tag EndEvents
3742#tag Events EditField_Byte16
3743        #tag Event
3744                Sub TextChange()
3745                  //Make sure we have a valid value if not then set it to something
3746                  if me.Text <> "" then
3747                    if val(me.Text) > 255 or val(me.Text) < 0 then
3748                      me.Text = "255"
3749                    end if
3750                  end if
3751                 
3752                  dim d as double
3753                  dim i as integer
3754                  d = val(me.Text)
3755                  i = d
3756                  ICSSerialPort1.Byte16 = chrb(i)
3757                End Sub
3758        #tag EndEvent
3759#tag EndEvents
3760#tag Events EditField_Byte15
3761        #tag Event
3762                Sub TextChange()
3763                  //Make sure we have a valid value if not then set it to something
3764                  if me.Text <> "" then
3765                    if val(me.Text) > 255 or val(me.Text) < 0 then
3766                      me.Text = "255"
3767                    end if
3768                  end if
3769                 
3770                  dim d as double
3771                  dim i as integer
3772                  d = val(me.Text)
3773                  i = d
3774                  ICSSerialPort1.Byte15 = chrb(i)
3775                End Sub
3776        #tag EndEvent
3777#tag EndEvents
3778#tag Events EditField_Byte14
3779        #tag Event
3780                Sub TextChange()
3781                  //Make sure we have a valid value if not then set it to something
3782                  if me.Text <> "" then
3783                    if val(me.Text) > 255 or val(me.Text) < 0 then
3784                      me.Text = "255"
3785                    end if
3786                  end if
3787                 
3788                  dim d as double
3789                  dim i as integer
3790                  d = val(me.Text)
3791                  i = d
3792                  ICSSerialPort1.Byte14 = chrb(i)
3793                End Sub
3794        #tag EndEvent
3795#tag EndEvents
3796#tag Events EditField_Byte13
3797        #tag Event
3798                Sub TextChange()
3799                  //Make sure we have a valid value if not then set it to something
3800                  if me.Text <> "" then
3801                    if val(me.Text) > 255 or val(me.Text) < 0 then
3802                      me.Text = "255"
3803                    end if
3804                  end if
3805                 
3806                  dim d as double
3807                  dim i as integer
3808                  d = val(me.Text)
3809                  i = d
3810                  ICSSerialPort1.Byte13 = chrb(i)
3811                End Sub
3812        #tag EndEvent
3813#tag EndEvents
3814#tag Events ICSSerialPort1
3815        #tag Event
3816                Sub valuesChanged()
3817                  //Update the screens with the new values
3818                  updateAdvancedScreen
3819                  updateCarScreen
3820                End Sub
3821        #tag EndEvent
3822        #tag Event
3823                Sub profileImported(profileName as string)
3824                  PopupMenu_Profile.AddRow(profileName)
3825                 
3826                  //Make sure to switch to the new profile
3827                  PopupMenu_Profile.ListIndex = PopupMenu_Profile.ListCount
3828                 
3829                  //Update the screens with the new values
3830                  updateAdvancedScreen
3831                  updateCarScreen
3832                End Sub
3833        #tag EndEvent
3834#tag EndEvents
3835#tag Events PushButton_Default
3836        #tag Event
3837                Sub Action()
3838                  ICSSerialPort1.setDefaultValues
3839                End Sub
3840        #tag EndEvent
3841#tag EndEvents
3842#tag Events PopupMenu_SerialPort
3843        #tag Event
3844                Sub Change()
3845                  //Set and open the COM Port
3846                  dim i, count as integer
3847                  count = System.SerialPortCount
3848                 
3849                  if PopupMenu_SerialPort.Text <> "" then
3850                    //We can try opening the com port and set the popup menu to that port
3851                   
3852                    for i = 0 to PopupMenu_SerialPort.ListCount - 1
3853                     
3854                      if PopupMenu_SerialPort.list(i) = me.Text then
3855                        //Found a match, set and open
3856                        ICSSerialPort1.SerialPort = System.SerialPort(i)
3857                        ICSSerialPort1.Close
3858                       
3859                       
3860                        if not ICSSerialPort1.Open then
3861                          //Could not open
3862                          MsgBox "Error opening defined com port"
3863                          //Disable buttons
3864                          PushButton_Read.Enabled = False
3865                          PushButton_Write.Enabled = False
3866                          PushButton_Reset.Enabled = False
3867                        else
3868                          //Enable buttons
3869                          PushButton_Read.Enabled = True
3870                          PushButton_Write.Enabled = True
3871                          PushButton_Reset.Enabled = True
3872                         
3873                        end if
3874                        //Save and exit
3875                        comPort = me.Text
3876                        savePreferences
3877                        exit
3878                      end if
3879                     
3880                    next
3881                   
3882                  end if
3883                End Sub
3884        #tag EndEvent
3885#tag EndEvents
3886#tag Events PopupMenu_Profile
3887        #tag Event
3888                Sub Change()
3889                  if me.Text <> "" then
3890                    PushButton_SaveProfile.Enabled = true
3891                    PushButton_Delete.Enabled = true
3892                    PushButton_Export.Enabled = true
3893                    ICSSerialPort1.loadProfile(me.Text)
3894                  end if
3895                End Sub
3896        #tag EndEvent
3897        #tag Event
3898                Sub Open()
3899                  dim s() as string
3900                 
3901                  s = ICSSerialPort1.listProfiles
3902                 
3903                  if UBound(s) > -1 then
3904                    for each element as string in s
3905                      me.AddRow(element)
3906                    next
3907                  end if
3908                End Sub
3909        #tag EndEvent
3910#tag EndEvents
3911#tag Events PushButton_SaveProfile
3912        #tag Event
3913                Sub Action()
3914                  if PopupMenu_Profile.Text <> "" then
3915                    ICSSerialPort1.saveProfile(PopupMenu_Profile.Text)
3916                  end if
3917                End Sub
3918        #tag EndEvent
3919#tag EndEvents
3920#tag Events PushButton_Delete
3921        #tag Event
3922                Sub Action()
3923                  if PopupMenu_Profile.Text <> "" then
3924                    ICSSerialPort1.deleteProfile(PopupMenu_Profile.Text)
3925                   
3926                    PopupMenu_Profile.RemoveRow(PopupMenu_Profile.ListIndex)
3927                   
3928                    //Make sure to hide the save and delete profile buttons since no profile will be selected after this has been deleted
3929                    PushButton_SaveProfile.Enabled = False
3930                    PushButton_Delete.Enabled = False
3931                    PushButton_Export.Enabled = False
3932                   
3933                  end if
3934                End Sub
3935        #tag EndEvent
3936#tag EndEvents
3937#tag Events PushButton_Create
3938        #tag Event
3939                Sub Action()
3940                  dim tempProfWindow as new createProfile
3941                  tempProfWindow.Show
3942                End Sub
3943        #tag EndEvent
3944#tag EndEvents
3945#tag Events PushButton_Import
3946        #tag Event
3947                Sub Action()
3948                  dim success as Boolean
3949                 
3950                  success = ICSSerialPort1.importProfile
3951                 
3952                  if success = false then
3953                    MsgBox "Error importing profile"
3954                  end if
3955                End Sub
3956        #tag EndEvent
3957#tag EndEvents
3958#tag Events PushButton_Export
3959        #tag Event
3960                Sub Action()
3961                  if PopupMenu_Profile.Text <> "" then
3962                    ICSSerialPort1.exportProfile(PopupMenu_Profile.Text)
3963                  end if
3964                End Sub
3965        #tag EndEvent
3966#tag EndEvents
Note: See TracBrowser for help on using the repository browser.