Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Come on guys... someone's gotta know this (I hope)
Message
From
18/11/1998 11:08:14
 
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00158066
Message ID:
00158814
Views:
10
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
Map
View

Click here to load this message in the networking platform