I'll try it your way.
And with the second quetion that I had, I am having trouble calling events that have happend to events called from another created window.For example this is basically the problem
aboutwin=createwindow(0,0,100,100,"About",Window_Titlebar,0,1)
`parameters that I think at the moment
`(x,y,width,heighth,caption,style,extrastyle,childof)
`the constants may not be right I do not have the help files on hand so this is from memory
OKbutton=createbutton(0,0,12,12,"OK",1,Aboutwin)
`parameter that I think at the moment
`(x,y,width,heighth,caption,3D,parent gadget)
And I want to see if OKButton has been pushed and if it has close the window leacing the DBP window behind.
I've tried something like this
if eventtype()=mouse_click and eventdata()=OKButton
delete gadget yadda yadda
endif
Anxiously awaiting BlueGUI v2