home *** CD-ROM | disk | FTP | other *** search
-
-
-
- /*********************************************************/
- /** ALL FUNCTIONS ARE SAVED BELOW **/
- /*********************************************************/
-
- /*************************************
- **** FUNCTION: ExitKappaAndToolBook
- *************************************/
- MakeFunction( ExitKappaAndToolBook, [],
- {
- RemoteExecute( "send exit to this page", toolbook, carinfo.tbk );
- Exit( );
- } );
-
- /*************************************
- **** FUNCTION: Process
- *************************************/
- MakeFunction( Process, [bName],
- {
- If KnownValue?( Global:PrevArrow )
- Then RemoteExecute( FormatValue( "hide irregularPolygon \"%s\"",
- Global:PrevArrow ), toolbook,
- carinfo.tbk );
- RemoteExecute( FormatValue( "show irregularPolygon \"%s\"", bName:Title ),
- toolbook, carinfo.tbk );
- Global:PrevArrow = bName:Title;
- } );
-
- /*************************************
- **** FUNCTION: Start
- *************************************/
- MakeFunction( Start, [],
- {
- IconifyWindow( KAPPA );
- HideWindow( BROWSER );
- HideWindow( KTOOLS );
- SetWindowTitle( SESSION, "Part Selection" );
- SetWindowTitle( KAPPA, "KAPPA - Car Information with ToolBook" );
- SetWindowBackground( SESSION, 100, 50, 50 );
- CatchError( RemoteExecute( "set syscursor to 4", toolbook, carinfo.tbk ),
- Execute( "toolbook.exe carinfo.tbk" ) );
- RemoteExecute( "set syscursor to default", toolbook, carinfo.tbk );
- RemoteExecute( FormatValue( "hide irregularPolygon \"Windshield\"" ),
- toolbook, carinfo.tbk );
- RemoteExecute( FormatValue( "hide irregularPolygon \"Head Lights\"" ),
- toolbook, carinfo.tbk );
- RemoteExecute( FormatValue( "hide irregularPolygon \"Bumper\"" ),
- toolbook, carinfo.tbk );
- RemoteExecute( FormatValue( "hide irregularPolygon \"Front Hood\"" ),
- toolbook, carinfo.tbk );
- RemoteExecute( FormatValue( "hide irregularPolygon \"Side Vents\"" ),
- toolbook, carinfo.tbk );
- RemoteExecute( FormatValue( "hide irregularPolygon \"Front Wheel\"" ),
- toolbook, carinfo.tbk );
- RemoteExecute( FormatValue( "hide irregularPolygon \"Rear Wheel\"" ),
- toolbook, carinfo.tbk );
- RemoveWindowMenu( SESSION );
- ShowWindow( SESSION );
- PositionWindow( SESSION, 480, 0, 160, 380 );
- } );
-
-
-
- /*********************************************************/
- /** ALL CLASSES ARE SAVED BELOW **/
- /*********************************************************/
-
- /*************************************
- **** CLASS: Image
- *************************************/
- Image:Width = 150;
- Image:Height = 120;
- Image:WinType = Make_ImageWindow;
- Image:Visible = FALSE;
- Image:ShowBorder = TRUE;
- Image:Transparent = FALSE;
-
- /*************************************
- **** CLASS: SlotView
- *************************************/
-
- /*************************************
- **** CLASS: OutputView
- *************************************/
-
- /*************************************
- **** CLASS: Meter
- *************************************/
- Meter:Draw = Draw_HMeter;
- Meter:Update = Update_HMeter;
-
- /*************************************
- **** CLASS: StateBox
- *************************************/
- SetSlotOption( StateBox:AllowableValues, MULTIPLE );
- StateBox:Draw = Draw_RectLight;
- StateBox:Update = Update_RectLight;
-
- /*************************************
- **** CLASS: InputOutputView
- *************************************/
-
- /*************************************
- **** CLASS: Slider
- *************************************/
- Slider:Width = 200;
- Slider:Height = 75;
- Slider:WinType = Make_SliderWindow;
- Slider:Draw = Draw_Slider;
- Slider:Update = Update_Slider;
-
- /*************************************
- **** CLASS: Edit
- *************************************/
- Edit:ShowBorder = FALSE;
- Edit:Width = 100;
- Edit:Height = 25;
- Edit:WinType = Make_EditWindow;
- Edit:Update = Update_Edit;
-
- /*************************************
- **** CLASS: Transcript
- *************************************/
- Transcript:ProportionalFont = TRUE;
- Transcript:WinType = Make_TransWindow;
-
- /*************************************
- **** CLASS: Button
- *************************************/
- Button:ShowBorder = FALSE;
- Button:Width = 100;
- Button:Height = 25;
- Button:WinType = Make_ButtonWindow;
- Button:Draw = Draw_Bitmap;
-
- /*************************************
- **** CLASS: Bitmap
- *************************************/
- Bitmap:FitToScreen = FALSE;
- Bitmap:Draw = Draw_Bitmap;
-
- /*************************************
- **** CLASS: Drawing
- *************************************/
- Drawing:XLeft = 0;
- Drawing:YTop = 0;
- Drawing:XRight = 100;
- Drawing:YBottom = 100;
- Drawing:Draw = Draw_Drawing;
- Drawing:Print = Print_Drawing;
-
- /*************************************
- **** CLASS: Text
- *************************************/
- Text:Justification = CENTER;
- Text:ShowBorder = FALSE;
- Text:Width = 100;
- Text:Height = 25;
- Text:WinType = Make_StaticWindow;
-
- /*************************************
- **** CLASS: LinePlot
- *************************************/
- LinePlot:AutoScale = FALSE;
- LinePlot:Grid = FALSE;
- LinePlot:Draw = Draw_LinePlot;
- LinePlot:Update = Update_LinePlot;
- LinePlot:Print = Print_LinePlot;
-
-
-
- /*********************************************************/
- /** ALL INSTANCES ARE SAVED BELOW **/
- /*********************************************************/
- MakeSlot( Global:PrevArrow );
- Global:PrevArrow = "Front Hood";
-
- /*************************************
- **** INSTANCE: Bumper
- *************************************/
- MakeInstance( Bumper, Button );
- Bumper:X = 2;
- Bumper:Y = 2;
- Bumper:Title = Bumper;
- Bumper:Width = 150;
- Bumper:Height = 38;
- Bumper:Visible = TRUE;
- Bumper:RightAction = NULL;
- Bumper:Action = Process;
- Bumper:FileName = NULL;
- Bumper:ShowBorder = FALSE;
- ResetImage ( Bumper );
-
- /*************************************
- **** INSTANCE: FrontHood
- *************************************/
- MakeInstance( FrontHood, Button );
- FrontHood:X = 2;
- FrontHood:Y = 42;
- FrontHood:Title = "Front Hood";
- FrontHood:Width = 150;
- FrontHood:Height = 38;
- FrontHood:Visible = TRUE;
- FrontHood:RightAction = NULL;
- FrontHood:Action = Process;
- FrontHood:FileName = NULL;
- FrontHood:ShowBorder = FALSE;
- ResetImage ( FrontHood );
-
- /*************************************
- **** INSTANCE: FrontWheel
- *************************************/
- MakeInstance( FrontWheel, Button );
- FrontWheel:X = 2;
- FrontWheel:Y = 82;
- FrontWheel:Title = "Front Wheel";
- FrontWheel:Width = 150;
- FrontWheel:Height = 38;
- FrontWheel:Visible = TRUE;
- FrontWheel:RightAction = NULL;
- FrontWheel:Action = Process;
- FrontWheel:FileName = NULL;
- FrontWheel:ShowBorder = FALSE;
- ResetImage ( FrontWheel );
-
- /*************************************
- **** INSTANCE: HeadLights
- *************************************/
- MakeInstance( HeadLights, Button );
- HeadLights:X = 2;
- HeadLights:Y = 122;
- HeadLights:Title = "Head Lights";
- HeadLights:Width = 150;
- HeadLights:Height = 38;
- HeadLights:Visible = TRUE;
- HeadLights:RightAction = NULL;
- HeadLights:Action = Process;
- HeadLights:FileName = NULL;
- HeadLights:ShowBorder = FALSE;
- ResetImage ( HeadLights );
-
- /*************************************
- **** INSTANCE: RearWheel
- *************************************/
- MakeInstance( RearWheel, Button );
- RearWheel:X = 2;
- RearWheel:Y = 162;
- RearWheel:Title = "Rear Wheel";
- RearWheel:Width = 150;
- RearWheel:Height = 38;
- RearWheel:Visible = TRUE;
- RearWheel:RightAction = NULL;
- RearWheel:Action = Process;
- RearWheel:FileName = NULL;
- RearWheel:ShowBorder = FALSE;
- ResetImage ( RearWheel );
-
- /*************************************
- **** INSTANCE: SideVents
- *************************************/
- MakeInstance( SideVents, Button );
- SideVents:X = 2;
- SideVents:Y = 202;
- SideVents:Title = "Side Vents";
- SideVents:Width = 150;
- SideVents:Height = 38;
- SideVents:Visible = TRUE;
- SideVents:RightAction = NULL;
- SideVents:Action = Process;
- SideVents:FileName = NULL;
- SideVents:ShowBorder = FALSE;
- ResetImage ( SideVents );
-
- /*************************************
- **** INSTANCE: Windshield
- *************************************/
- MakeInstance( Windshield, Button );
- Windshield:X = 2;
- Windshield:Y = 242;
- Windshield:Title = Windshield;
- Windshield:Width = 150;
- Windshield:Height = 38;
- Windshield:Visible = TRUE;
- Windshield:RightAction = NULL;
- Windshield:Action = Process;
- Windshield:FileName = NULL;
- Windshield:ShowBorder = FALSE;
- ResetImage ( Windshield );
-
- /*************************************
- **** INSTANCE: Exit
- *************************************/
- MakeInstance( Exit, Button );
- Exit:X = 2;
- Exit:Y = 302;
- Exit:Title = Exit;
- Exit:Width = 150;
- Exit:Height = 58;
- Exit:Visible = TRUE;
- Exit:RightAction = NULL;
- Exit:Action = ExitKappaAndToolBook;
- Exit:FileName = NULL;
- Exit:ShowBorder = FALSE;
- ResetImage ( Exit );
-
-
-
- /*********************************************************/
- /** ALL RULES ARE SAVED BELOW **/
- /*********************************************************/
-
-
-
- /*********************************************************/
- /** ALL GOALS ARE SAVED BELOW **/
- /*********************************************************/
-