source: trunk/desktop/mainWindow.rbfrm @ 49

Revision 49, 124.8 KB checked in by pinwc4, 14 years ago (diff)

Changed bottom buttons to use variable for control height

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