---===ObjectGraph Example===--- This is a very simple example of how you can use the ObjectGraph widget. For a more in depth example, see the included ST filein called "GrfBrows.st". ---STEP 1--- Install ObjectGraph (see installation instructions for more information). ---STEP 2--- Open a new canvas and the palette tool. ---STEP 3--- Put a button on the canvas. Put an ObjectGraph on the canvas (make it at least a couple inches wide and tall). Open the Properties Tool on the ObjectGraph you just placed on the canvas. Set the aspect to be "graphModel", change the orientation to "Horizontal", and make the ID "#theGraph". Apply the changes and click the "Details" section of the Properties Tool. Change the Get Name Msg to "#printString". Apply those changes. Open the Properties Tool on the button you added. Change the label to "Flip" and the action to "#flipButton". Install the canvas as a subclass of ApplicationModel with the name ObjectGraphTest. Then go to the definer and add the initializations for flipButton and graphModel. ---STEP 4--- Open a System Browser (or your favorite method browser) on the newly created ObjectGraphTest class (make sure you are viewing the Instance methods). Change flipButton to: flipButton "Flip the orientation of the graph" (self builder componentAt: #theGraph) widget flip. Create a new method in the protocol "interface opening": postOpenWith: aBuilder "Build the graph" self graphModel value buildTreeFrom: (Array with: Number). ---STEP 5--- Open the new application. This is a simple hierarchy browser on the Number class. ---STEP 6--- See the file README.TXT for legal information and pointers on how to get started using ObjectGraph. For a better example, see the section in README.TXT on getting started. Good Luck, Chris Penney penney@cps.msu.edu