Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utcs!mnetor!seismo!mcvax!cernvax!marchesi From: marchesi@cernvax.UUCP Newsgroups: net.micro.mac Subject: Re: problems with displaying PICT's in dialogs. Message-ID: <349@cernvax.UUCP> Date: Fri, 18-Jul-86 11:07:40 EDT Article-I.D.: cernvax.349 Posted: Fri Jul 18 11:07:40 1986 Date-Received: Sat, 19-Jul-86 00:00:43 EDT References: <2752@sdcc6.ucsd.EDU> Reply-To: marchesi@cernvax.UUCP (PUT YOUR NAME HERE) Organization: CERN, Geneva/Switzerland Lines: 33 Keywords: dialogs & PICT's In article <2752@sdcc6.ucsd.EDU> ir551@sdcc6.UUCP writes: >I've had problems getting a dialog to display a picture resource >attached to it. It looks fine in the resouce editor (eg the picture >displays when I open up the DITL or the DLOG) but when I use >getnewdialog it displays the dialog window without any picture. >I know it loads in the picture because I can hear it being read in >from the disk, but it just doesn't display. > >Any clue to what is going wrong? >Cris Rys Do you allow for an *update* of the dialog window? -> a mere _GetNewDialog will just display the window and draw the buttons, but any additional items (such as editText,...) will not be drawn. _ModalDialog, for instance, deals with update events reguarding the active dialog window (and hence draws EditTexts, Pictures, etc.). Thus, if you are using _GetNewDialog *only*, try adding a _ModalDialog call... (you can also check by adding an EditText item with ResEdit - if this does not show up, too, then my diagnosis should be correct). hope this helps, ciao Paolo ------------------------------------------------------------------------------ Paolo Petta p-mail: DD Division CERN CH-1211 Geneva 23 Switzerland e-mail: ...{seismo,philabs,decvax,...}!mcvax!cernvax!marchesi