home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!hellgate.utah.edu!fcom.cc.utah.edu!quadra.chem.utah.edu!dmitry
- From: Dmitry Boldyrev <dmitry@chemistry.chem.utah.edu>
- Subject: Dialog & Window
- Message-ID: <1993Jan10.021218.29536@fcom.cc.utah.edu>
- X-Xxmessage-Id: <A5924FA81801C4C9@quadra.chem.utah.edu>
- X-Xxdate: Thu, 9 Jan 92 16:14:48 GMT
- Sender: news@fcom.cc.utah.edu
- Organization: University of Utah
- X-Useragent: Nuntius v1.1.1d16
- Date: Sun, 10 Jan 93 02:12:18 GMT
- Lines: 35
-
- Hi Folks,
- Does anyone know how to keep "Dialog" window and
- work window active ?
- For example:
- var
- MyWindow: WindowPtr;
- MyDialog: DialogPtr;
- ItemHit: Integer;
- begin
- MyWindow := GetNewWindow(128, nil, Pointer(-1));
- ShowWindow(MyWindow);
- SetPort(MyWindow);
-
- MyDialog := GetNewDialog(129, nil, Pointer(-1));
- While ItemHit<>ok do
- begin { MyDlgFilter is my Dialog Filter proc }
- ModalDialog(MyDlgFilter, ItemHit); { My Window became *INACTIVE* }
- case ItemHit of
- ......
- end;
- end;
-
- DisposeDialog(MyDialog);
- DisposeWindow(MyWindow);
- end.
-
-
- I would like to keep two windows "active" ..
- So that I'll be able to move them ... MyWindow and MyDialog's window..
-
- Any information will be very appreciated!
- My E-Mail: dmitry@chemistry.chem.utah.edu
-
- --- Thank you ---
- Dmitry.
-