source: trunk/desktop/mainWindow.rbfrm @ 44

Revision 44, 118.8 KB checked in by pinwc4, 15 years ago (diff)

Removed code that changed text color when ran on Windows

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