Hm, I never used SCX.
An idea from MSKB#
232130?
It's for VFP 5 and 6 but one never know.
llOldCloseable = _Screen.Closable
messagebox(....)
_Screen.Closable = .F.
_Screen.Closable = llOldCloseable
Agnes
>I use DO FORM .... Alwaysontop = .F.
>
>
>>Do you open the modal form via DO FORM?
>>Mine is created like oForm = CREATEOBJECT(..) and shown via oForm.SHOW().
>>
>>What is your forms AlwaysOnTop?
>>
>>Agnes
>>
>>
>>
>>>I dont see that behaviour at all. I can open a modal form , I can interact with it, resize it, move it around, click buttons on it, use the pageframe, etc, and the main application close button is still working perfectly. I can click it and close the entire app even while the modal form is open on the screen.
>>>
>>>If the form displays a messagebox(), however, then the main app's close button is disabled. It does not re-enable until I close the model form. You cannot click on it because it is not enabled, hence closing the modal form does not immediately fire the main application window close button.
>>>
>>>>If a form is modal you can not interact with anything other then that form. If I have a modal form open and press apps closebutton, the app will close immediately after the form is closed.
>>>>
>>>>Agnes
>>>>
>>>>>After the messagebox closes the main application close button is still not working and stays not working until I close my form. My form is modal. Is this the cause?
>>>>>
>>>>>>Hi Jos,
>>>>>>
>>>>>>if the messagebox is active the app will normaly not close. The messagebox is modal.
>>>>>>
>>>>>>Agnes
>>>>>>>Hi
>>>>>>>
>>>>>>>What causes the main application close button to sometimes not be available, not function? If I open a form the main application close button sometimes stops working. What are the conditions that cause this and is there a way to always have the main application close button function?
>>>>>>>
>>>>>>>It seems to be related to when I pop up a messagebox because immediately upon a message box being called by the form the close button on the main application deactivates.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]