home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / mac / oop / macapp3 / 215 < prev    next >
Encoding:
Text File  |  1992-12-16  |  2.4 KB  |  74 lines

  1. Newsgroups: comp.sys.mac.oop.macapp3
  2. Path: sparky!uunet!spool.mu.edu!agate!apple!mumbo.apple.com!gallant.apple.com!wintermute.apple.com!user
  3. From: ksand@apple.com (Kent Sandvik )
  4. Subject: Re: TDialogView in Ad Lib
  5. Sender: news@gallant.apple.com
  6. Message-ID: <ksand-151292175325@wintermute.apple.com>
  7. Date: Wed, 16 Dec 1992 02:03:02 GMT
  8. References: <724462717.0501359@AppleLink.Apple.COM>
  9. Organization: (Evil Eye Creature from Mars, Inc.)
  10. Followup-To: comp.sys.mac.oop.macapp3
  11. Lines: 61
  12.  
  13. In article <724462717.0501359@AppleLink.Apple.COM>,
  14. BARBOSE@AppleLink.Apple.COM (Amoco Technology, Jeff Barbose,VAR) wrote:
  15. > Ken,
  16. >  
  17. > In the attribs window, make a window a Dialog by clicking the radiobutton
  18. > "Dialog".
  19. >  
  20. > This doesn't make it a TDialogView, but rather adds a TDialogBehavior to the
  21. > window's/view's behavior lists.
  22. >  
  23. > Voila!  Instant dialog.
  24.  
  25. Are we talking about Ad Lib, or ViewEdit 3.0? Nota bene, MacApp 3.0.1 won't
  26.  
  27. add in any TDialogBehaviors when creating TDialowViews inside the window.
  28. This is documented in MacApp 3.0.1 Bug Doc (the non Doc Viewer document). 
  29. The workaround is (for the N time):
  30. ----
  31.  1. Problem with displaying dialogs, especially if created
  32.   with ViewEdit.
  33.   
  34.   A drawback in ViewEdit 3.0.1 is that it does not provide
  35.   for behaviors and TDialogBehaviors in particular to be
  36.   specified. A work around for TDialogBehaviors is to fix
  37.   the bug in TWindow::PoseModally() that causes what would
  38.   otherwise be the automagic creation of the
  39.   TDialogBehavior not to take effect. If the following
  40.   lines in PoseModally
  41.   
  42.         TDialogBehavior* itsDialogBehavior = this-
  43.   >GetDialogBehavior();
  44.         IDType result = kNoIdentifier;
  45.         this->Open();
  46.         this->Select();
  47.   
  48.   are changed to
  49.   
  50.         TDialogBehavior* itsDialogBehavior;
  51.         IDType result = kNoIdentifier;
  52.         this->Open();
  53.         this->Select();
  54.         itsDialogBehavior = this->GetDialogBehavior();
  55.   
  56.   then the automagically created behavior is correctly
  57.   assigned to the window and functions correctly.
  58.   
  59.   Alternate  ways that you can get a behavior into a view
  60.   resource are to
  61.   - DeRez an existing view or create the view with Rez
  62.   initially; then specify a dialog behavior in the Rez text
  63.   format; then re-Rez, or
  64.   - create your TDialogBehavior or entire dialog
  65.   procedurally.
  66. ----
  67.  
  68.  
  69. Kent
  70. -------------------
  71. Kent Sandvik (UUCP: ....!apple!ksand; INTERNET: ksand@apple.com)
  72. DISCLAIMER: Private activities on the Net.
  73.