home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!apple!jkc
- From: jkc@Apple.COM (John Kevin Calhoun)
- Newsgroups: comp.sys.mac.hypercard
- Subject: Re: Storing window name?
- Message-ID: <75954@apple.apple.COM>
- Date: 26 Dec 92 18:06:28 GMT
- References: <bobjen-171292160238@bobjenner.ntu.edu.au>
- Organization: Apple Computer Inc, Cupertino, CA
- Lines: 26
-
-
- In article <bobjen-171292160238@bobjenner.ntu.edu.au>
- bobjen@darwin.ntu.edu.au (Bob Jenner) writes:
- >I wish to save the name of a window opened using the "picture" command for
- >further manipulation.
- >
- >Can anyone tell me how to get the name of a picture window opened using the
- >"picture" command.
-
- When a new picture window is opened, the Picture XCMD sends the message
- "openPicture" to the current card. The first parameter to the openPicture
- message is the name of the new picture window. In HyperCard 2.1, the
- openPicture message has a second parameter as well, which is the id of the
- new picture window. So, you can capture the name of the window as follows:
-
- on openPicture name,id
- global listOfPictureNames
- put the number of items in listOfPictureWindows into numPictures
- put name into item (numPictures + 1) of listOfPictureWindows
- end openPicture
-
- When a picture window is closed, the Picture XCMD sends a closePicture
- message to the current card.
-
- Kevin Calhoun
- jkc@apple.com
-