IonicWind Software

IWBasic => GUI Central => Topic started by: billhsln on January 25, 2013, 10:11:12 PM

Title: Window kept open
Post by: billhsln on January 25, 2013, 10:11:12 PM
Is there a way to Open a secondary window and keep it open til I am finished writing info to it and then letting the user close it?

I want to write info to the window, until I run out of data.  But I don't want the user to be able to close the window until I am done writing to screen (hit end of file on the file I am processing).

Thanks,
Bill
Title: Re: Window kept open
Post by: LarryMc on January 25, 2013, 10:25:39 PM
sure, just disable the window until you're ready for it to be closed.

declare import,EnableWindow(uint hWnd, int bEnable), int

window win
....
'to disable it
if win.hwnd
EnableWindow(win, false)
endif

'to enable it
if win.hwnd
EnableWindow(win, true)
endif
Title: Re: Window kept open
Post by: billhsln on January 25, 2013, 11:00:46 PM
Thanks Larry, that should do what I am trying to do.  Will run a few thousand records thru a test and see what happens.

Thanks again,
Bill