home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14725 < prev    next >
Encoding:
Text File  |  1992-08-29  |  1.7 KB  |  46 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. 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
  3. From: sold@kit.uni-kl.de (Christoph Sold)
  4. Subject: Re: associating a TDialogBehavior with a window in ViewEdit.
  5. Message-ID: <sold.86.715104841@kit.uni-kl.de>
  6. Lines: 33
  7. Sender: news@rhrk.uni-kl.de
  8. Organization: Universitaet Kaiserslautern
  9. References: <poon.714867450@roo>
  10. Date: Sat, 29 Aug 1992 16:14:01 GMT
  11. Lines: 33
  12.  
  13. In article <poon.714867450@roo> poon@parc.xerox.com (Alex Poon) writes:
  14. >Subject: associating a TDialogBehavior with a window in ViewEdit.
  15. >From: poon@parc.xerox.com (Alex Poon)
  16. >Date: 26 Aug 92 22:17:30 GMT
  17. >According to my MacApp 3.0 manual,
  18. >
  19. >"To make a dialog window modal, you need to associate a TDialogBehavior
  20. >object with it, which you can do with ViewEdit."
  21. >
  22. >Does anybody know how to do this?
  23. >
  24. >Thanks,
  25. > Alex Poon
  26. This seems to be an error in either ViewEdit 3.0 or the manual, I stumbled 
  27. over it, too. I worked anround it this way:
  28.  
  29.     fDialogView = newDialog->FindSubView('dlog');
  30.     fDialogView->AddBehaviour(newDialogBehaviour);
  31.  
  32. which was created just before. You see, do it manually, and it works. Should 
  33. be changed really soon, I think (either the manaual :-( or ViewEdit :-) ).
  34.  
  35. -Christoph
  36.  
  37. P.S: above code comes from my brain, since here at the U only DOS boxes are 
  38. around me. Don't type it in literally, look up the methods using MacBrowse.
  39.  
  40. Christoph P. Sold                   CATS Software GmbH
  41.                                     Mussbacher Landstr.2
  42. sold@kit.uni-kl.de                  W-6730 Neustadt (Weinstrasse)
  43. ger.xse0035@applelink.apple.com     Germany
  44.  
  45. "If an apple is fun, what the heck is an appletree?"
  46.