home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Demos / Codeworks 0.94b3 / Codeworks® WWW Demo Doc. / Scripting Manual.doc / Scripting Manual.doc.rsrc / TEXT_139.txt < prev    next >
Encoding:
Text File  |  1995-05-01  |  1.1 KB  |  13 lines

  1. Writing Message Scripts
  2.  
  3.     When you add a button to an object, you are adding a script for a message that takes no arguments.  Often objects need to understand messages that take arguments.  In this chapter you‚Äôll write scripts that take arguments and write messages to run them.
  4.  
  5.     When you tap a button in an object that you created, a message is sent to your object.  That message takes no arguments.  Typically, the script for the button then sends the object more messages to do the bulk of the work.  These messages are not associated with a button: the object understands them, but they are only sent from other scripts.  This will become more clear as you read this chapter.
  6.  
  7.     In this chapter, you‚Äôll need the cash-register object built in the chapter above.  You should have its form view open and in author-mode.  You will also need to have a browser view of the cash-register open and the workspace open.
  8.  
  9.     To open the browser view of cash-register:
  10. 1.    Double-tap on the title bar of the cash-register window.  A pop-up menu appears.
  11. 2.    Tap on Open Browser in the Object Development section of the menu.  The browser appears.
  12.  
  13.