home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!math.fu-berlin.de!news.uni-stuttgart.de!rz.uni-karlsruhe.de!stepsun.uni-kl.de!oinone.e-technik.uni-kl.de!sold
- From: sold@kit.uni-kl.de (Christoph Sold)
- Subject: Re: associating a TDialogBehavior with a window in ViewEdit.
- Message-ID: <sold.86.715104841@kit.uni-kl.de>
- Lines: 33
- Sender: news@rhrk.uni-kl.de
- Organization: Universitaet Kaiserslautern
- References: <poon.714867450@roo>
- Date: Sat, 29 Aug 1992 16:14:01 GMT
- Lines: 33
-
- In article <poon.714867450@roo> poon@parc.xerox.com (Alex Poon) writes:
- >Subject: associating a TDialogBehavior with a window in ViewEdit.
- >From: poon@parc.xerox.com (Alex Poon)
- >Date: 26 Aug 92 22:17:30 GMT
- >According to my MacApp 3.0 manual,
- >
- >"To make a dialog window modal, you need to associate a TDialogBehavior
- >object with it, which you can do with ViewEdit."
- >
- >Does anybody know how to do this?
- >
- >Thanks,
- > Alex Poon
- This seems to be an error in either ViewEdit 3.0 or the manual, I stumbled
- over it, too. I worked anround it this way:
-
- fDialogView = newDialog->FindSubView('dlog');
- fDialogView->AddBehaviour(newDialogBehaviour);
-
- which was created just before. You see, do it manually, and it works. Should
- be changed really soon, I think (either the manaual :-( or ViewEdit :-) ).
-
- -Christoph
-
- P.S: above code comes from my brain, since here at the U only DOS boxes are
- around me. Don't type it in literally, look up the methods using MacBrowse.
-
- Christoph P. Sold CATS Software GmbH
- Mussbacher Landstr.2
- sold@kit.uni-kl.de W-6730 Neustadt (Weinstrasse)
- ger.xse0035@applelink.apple.com Germany
-
- "If an apple is fun, what the heck is an appletree?"
-