The first method we will work on is the open method. This method is responsible for opening the calculator window and setting up the widgets needed to implement the user interface.
open "Open a new instance of STCalculator." | shell form | shell := CwTopLevelShell createApplicationShell: 'Calculator' argBlock: nil. shell realizeWidget.
![]() | If syntax error or a similar phrase is displayed, check for a
misspelled word, a missing word, or missing punctuation. (Ensure you
erase the phrase.)
If a debugger window opens, read the message in its top pane. It should indicate how you can correct the method open. Make any needed corrections in the method; then pop up the menu and select Save again. For more information on the debugger, see Debugging code. |