Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!iuvax!purdue!ames!pacbell!well!odawa From: odawa@well.UUCP (Michael Odawa) Newsgroups: comp.sys.mac.programmer Subject: Re: Making a control in the Print Job Dialog inactive Message-ID: <12928@well.UUCP> Date: 30 Jul 89 18:05:08 GMT References: <56212@tut.cis.ohio-state.edu> Reply-To: odawa@well.UUCP (Michael Odawa) Distribution: all Organization: Simple Software, Mill Valley, CA Lines: 20 In article <56212@tut.cis.ohio-state.edu> Scott Sutherland writes: >Does anyone know of a reasonable way to call HiliteControl on an item in >the Printer Job Dialog. Since my application can't print in draft mode >on an ImageWriter, I'd like to dim the Draft radio button and make it >inactive if the chosen printer is an ImageWriter. We had to do the same thing in DocuComp, and we used the techniques outlined in Tech Note #95. The Draft Mode button is Item #8 in the ImageWriter PrJobDialog. Hilite it as Inactive. In the MyDlgInit procedure this would entail (in Pascal): if PrintHdl^^.PrStl.wDev = BitShift(bDevCItoh,8) { Imagewriter.. } then begin GetDItem(PrintDlg, 8, Junk, H, ItemRect); { Draft printing btn.. } HiliteControl(ControlHandle(H), Inactive); end; Michael Odawa Simple Software odawa@well.uucp