Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!ig!arizona!gerhard From: gerhard@cs.arizona.edu (Gerhard Mehldau) Newsgroups: comp.sys.mac.programmer Subject: Help! Keywords: MoveControl(), CopyBits() Message-ID: <16747@megaron.cs.arizona.edu> Date: 11 Jan 90 04:02:51 GMT Organization: U of Arizona CS Dept, Tucson Lines: 31 I have two (unrelated) problems that I hope someone out there can help me solve: (1) I'm trying to use the same DLOG/DITL resource for several related dialogs. This requires that a button be shifted slightly before the dialog is displayed. I'm calling GetNewDialog(...) to read in the resources, then GetDItem(...) to get the button's handle and MoveControl(...) to move the button, and finally ShowWindow(...) to display the dialog. The button is drawn in the correct location, but when I do a ModalDialog(NULL,...) and try to click on the button, the Dialog Manager only reacts if the mouse is in the *intersection* of the old and new rectangles. What am I doing wrong? (2) I would like to print the contents of a CGrafPort by using CopyBits(). However, IM-II has the printer grafport's pixels defined as a bitmap, rather than a pixmap, and I couldn't find an update on this in IM-V. So, how do I go about this? Any ideas? Any help would be greatly appreciated! - Gerhard -- -> Gerhard Mehldau Dept. of Computer Science internet: gerhard@cs.arizona.edu University of Arizona uucp: {cmcl2,noao,uunet}!arizona!gerhard Tucson, AZ 85721, U.S.A. at&t: +1 (602) 621-4632