source: trunk/desktop/mainWindow.rbfrm @ 33

Revision 33, 117.7 KB checked in by pinwc4, 15 years ago (diff)

Resized linux controls

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