1. RE: Win32lib modal window
- Posted by Derek Parnell <ddparnell at bigpond.com> Apr 22, 2002
- 389 views
akusaya at gmx.net wrote: > I open a modal window with openDialog() > and the modal window has properties WS_DLGFRAME only (generated by > IDE) so does not have Close button, > but I still can close the window by pressing ALT+F4 or by EndTask in > ctrl+alt+del. > > I have tried it using version 0.55 and 0.57 but in both version the > modal window can be closed. > > Please help me... > > Thank you. > > You will need to use a onClose handler to trap close attempts, and return the code to deny Windows the permission to close it. Something like... procedure onClose_modwin() returnValue(0) end procedure onClose[modwin] = routine_id("onClose_modwin") Check the docs for exact syntax. ----- Derek.