steve4king
IS-IT--Management
I see this issue all over this forum, but no definitive solutions.
Hoping someone has learned something since then, or clues from my scenario will aid in finding a better solution.
This is an old app I'm working with, but currently building with VFP9 sp1.
I launch a small procedure from a _screen menu bar item which does nothing but call a form using "do form &name".
The form is Modal, has nothing custom in the activate, or show methods. Also, nothing stands out in Init or Load. Yet it does not immediately disable _screen's close button as a modal child form should. Switching to another application and back or minimizing then maximizing _screen disables it. After the click method in this form, _screen's close button changes to disabled. But when the form closes.. it remains disabled. (Until switching apps, min>maximizing, or displaying a messagebox from _screen)
_Screen.closable is .T. and _screen.lockscreen is .F.
This appears to be a refresh issue, though neither _screen.refresh nor DOEVENTS work to update it.
Is there a setting that would affect _Screen's titlebar refresh or is there a different command that will work?
(I moved a messagebox from the unload of my form to the calling procedure as a quick fix)
-Stephen
Hoping someone has learned something since then, or clues from my scenario will aid in finding a better solution.
This is an old app I'm working with, but currently building with VFP9 sp1.
I launch a small procedure from a _screen menu bar item which does nothing but call a form using "do form &name".
The form is Modal, has nothing custom in the activate, or show methods. Also, nothing stands out in Init or Load. Yet it does not immediately disable _screen's close button as a modal child form should. Switching to another application and back or minimizing then maximizing _screen disables it. After the click method in this form, _screen's close button changes to disabled. But when the form closes.. it remains disabled. (Until switching apps, min>maximizing, or displaying a messagebox from _screen)
_Screen.closable is .T. and _screen.lockscreen is .F.
This appears to be a refresh issue, though neither _screen.refresh nor DOEVENTS work to update it.
Is there a setting that would affect _Screen's titlebar refresh or is there a different command that will work?
(I moved a messagebox from the unload of my form to the calling procedure as a quick fix)
-Stephen