source: trunk/desktop/mainWindow.rbfrm @ 29

Revision 29, 118.0 KB checked in by pinwc4, 15 years ago (diff)

Fixed bug preventing you from changing com ports

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