[comp.sys.mac.programmer] Creating dialogs on the fly

py198723@mtecv2.mty.itesm.mx (Jesus Eugenio Sanchez) (03/07/91)

	Hi. I'm a CS student in Mexico, and I'm trying to create a dialog
window without using 'DLOG' nor 'DITL' resources. I've using THINK C for
a while, and I'd like to get a small example about this; something that 
creates just a button will be OK.

		Thanks a lot!

------------------------------------------------------------------------------
Eugenio Sanchez			|  Todo lo que diga es responsabilidad de la
py198723@academ01.mty.itesm.mx	|  unica neurona que tengo trabajando.
jsanchez@roxette.mty.itesm.mx	|  'Si os dan papel pautado, escribid por el
jsanchez@foreigner.mty.itesm.mx	|   otro lado' - J. Ramon Jimenez
py198723@mtecv2.mty.itesm.mx	|  All opinions r mine; I try to be original.
-------------------------------------------------------------------------------

bin@primate.wisc.edu (Brain in Neutral) (03/08/91)

From article <3024@mtecv2.mty.itesm.mx>, by py198723@mtecv2.mty.itesm.mx (Jesus Eugenio Sanchez):
> 
> 	Hi. I'm a CS student in Mexico, and I'm trying to create a dialog
> window without using 'DLOG' nor 'DITL' resources. I've using THINK C for
> a while, and I'd like to get a small example about this; something that 
> creates just a button will be OK.

Although it's probably overkill just for what you want, you can ftp to
indri.primate.wisc.edu [128.104.230.11] and in ~ftp/pub/mac/TransSkel
get the file transedit2.0.c.hqx, which contains a file called FakeAlert.c,
which shows how to do what you want.

--
Paul DuBois
dubois@primate.wisc.edu