>>>>>>>Sure, you could write a wrapper around MODIFY FORM and MODIFY CLASS to set that flag, but what would you use to reset it?
>>>>>>
>>>>>>If you write a wrapper, can you add resetting of a flag in a wrapper? E.g. check window existance? Just an idea, haven't thought about it and besides, you can put some macro to reset the flag...
>>>>>
>>>>>I don't think so, because once you start the Designer, you wrapper would have finished. You'd need some kind of event handler for when the designer closed.
>>>>
>>>>MODIFY FORM [FormName | ?][NOWAIT][METHOD MethodName]
>>>> [NOENVIRONMENT][SAVE]
>>>> [[WINDOW WindowName1] [IN [WINDOW] WindowName2 | IN SCREEN]]
>>>>
>>>>Can you define a form as a window and reset the flag in form's destroy?
>>>
>>>MODIFY CLASS doesn't have that option.
Actually, I just tried it (despite what the documentation says) and yes, MODIFY CLASS does support the IN WINDOW clause.