[comp.sys.atari.st.tech] Need help with windows

D.M.Johnson@newcastle.ac.uk (Dave Johnson) (11/30/90)

Okay,
	This may sound a bit basic but I still (after trying several times)
can't get the windows to open correctly (well I lest I think so):

What I do is this 

------------
	
main()
{
	int pipeid,handle;

	pipeid = appl_init();
	handle = wind_create(NAME,x,y,w,h);  /* replace with window coords */
	wind_set(handle,NAME,"test",0,0);    /* this might be the wrong syntax but I
						don't have a problem here */
	wind_open(handle,x,y,w,h);
	
	....etc...
--------------

So I can get the title bar to appear and the outline of the window. What
I would like to know, Have I missed anything out when setting up the
windows as the background in the window is grey (I use a high rez
monitor) and not the white which I was expecting.

Any help, tips, general comments most useful

Dave Johnson

D.M.Johnson@uk.ac.newcastle

	

domen@wiener.crin.fr (Eric Domenjoud) (12/03/90)

In article <1990Nov30.125209.13531@newcastle.ac.uk> D.M.Johnson@newcastle.ac.uk (Dave Johnson) writes:

	......

   What I do is this 

   ------------

   main()
   {
	   int pipeid,handle;

	   pipeid = appl_init();
	   handle = wind_create(NAME,x,y,w,h);  /* replace with window coords */
	   wind_set(handle,NAME,"test",0,0);    /* this might be the wrong syntax but I
						   don't have a problem here */
	   wind_open(handle,x,y,w,h);

	   ....etc...
   --------------

   So I can get the title bar to appear and the outline of the window. What
   I would like to know, Have I missed anything out when setting up the
   windows as the background in the window is grey (I use a high rez
   monitor) and not the white which I was expecting.

   Any help, tips, general comments most useful

   Dave Johnson

   D.M.Johnson@uk.ac.newcastle

After openning the window with window_open, you should get a message
WM_REDRAW, telling you to draw the content of your window. The AES
only draws the frame of the window, and it is your own responsability
to fill it with whatever you want. Anyway, as far as I remember, the
first parameter of wind_create is not the name of the window but the
kind of window you want.

Eric Domenjoud
e-mail: domen@loria.crin.fr