March 28, 2024, 01:31:41 PM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Window kept open

Started by billhsln, January 25, 2013, 10:11:12 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

billhsln

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
When all else fails, get a bigger hammer.

LarryMc

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
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

billhsln

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
When all else fails, get a bigger hammer.