Creating the Second Panel Class
You are now going to build the panel class for the instance of the Second Panel class illustrated below. (This is the Results Panel in .)
Creating the Panel Data File
-
Open a new Gadgets buffer window. In the Main window, choose New from the File menu and then Gadgets in the submenu that appears.
-
Edit the new buffer to create the panel illustrated above.
-
Choose Save As… from the File menu to save it as class2.ilv in the directory of your choice.
Setting Up the Panel Class
To set up the panel class:
-
Make sure that class2 is the current buffer.
-
Select Panel Class Palette in the Application menu to open the Panel Class palette (if it isn’t already open).
-
Click the New Panel Class icon in the Panel Class palette tool bar to create the panel class.
An icon representing the new panel class, with the title Class2 appears in the palette.
-
Select the class2 panel class and click the Panel Class Inspector icon in the Panel Class palette to examine it.
The Panel inspector appears.
-
On the General page of the Panel inspector, type SecondPanelClass in the Class field.
-
Click Apply, then Close.
Creating the Second Panel
-
Click the Edit Application icon in the Main window toolbar to edit the application.
The current Application buffer window is opened and the Panel Class palette is displayed (if it isn’t already open).
-
To create an instance of the second panel, drag the SecondPanelClass icon from the Panel Class Palette to the Application buffer window.
An instance of SecondPanelClass appears in the Application buffer window.
-
Double-click the SecondPanelClass title bar.
The Panel Instance inspector appears.
-
In the General page of the Panel Instance inspector, type Result in the Name field.
This name can be used to retrieve this panel.
-
Change the other fields in the appropriate inspector page as follows:
-
Title: Result Panel
-
Destroy Callback: Exit
-
x: 200
-
y: 650
The inspector should look like this:
-
-
Click Apply to validate the options, then click Close to close the inspector.