General information
Category:
Menus & Menu designer
The sub-form is modal but the menu only applies to the first form, the sub-form issues a SET SYSMENU TO then when control is returned to the first form, that form's PAINT method rebuilds the menu...
thanks for all your attention... I haven't been able to duplicate this behavior in a QD ( it works correctly in my test.prg ), but I'll keep trying.
>If the sub-form is also modal, you may run into problems. Are you executing the menu program again - for the sub-form?? You may need to do this...
>
>
>>John,
>>
>>The sub-form is also modal. And I've discovered a new twist too. The modal form which initializes the menu contains a grid based on a temporary cursor... When the cursor has one or more records, the menu is enabled. If the cursor is empty, the menu is disabled???
>>
>>I'm building the menu in the PAINT method of the modal form which *should* make it available when the form is active.
>>
>>I'm working on a "small" .prg to demonstrate this behavior, I'll post it when it's ready.
>>
>>Thanks
>>
>>
>>>Hi Larry ---
>>>
>>>OK, you're not supposed to have access to any other forms, menus, etc. from a modal form and this would explain why it won't fire off unless you launch a sub-form. Is the sub-form modal? If not, launching it might "break" the modality when you return to the first form.
>>>
>>>
>>>>I'm still having a wrestling match with the menu which is not accessible from a modal form *unless you first run, then close a sub-form* then the menu is enabled and accessible
>>>>
>>>>Any ideas???
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only