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

source: trunk/desktop/mainWindow.rbfrm @ 36

Revision 36, 125.6 KB checked in by pinwc4, 15 years ago (diff)

Added some text descriptions to the controls

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