Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OO Menus anyone?
Message
From
27/01/2006 09:19:24
 
 
To
27/01/2006 08:37:14
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01090850
Message ID:
01090883
Views:
14
>Hi Sergey,
>
>It's been awhile :-)
>
>I agree, to me too, but I've had a lot of problems with VFP running out of memory after a while.
>
>This is most likely because I am inept at programming, because I have been unable to figure out how to release the menus when a form lose the focus, and load them again when a form gets the focus.
>
>If you recall, we had a discussion a while back about this issue of pushing / popping menus.
>
>Basically I'm using the same menu "MainMenu" in all the forms of an application, the idea being that the user can access everything from everwhere.
>
>Anyway, I thought I had it licked, but it seems there is a memory issue somewhere, because at some point the program crashes with a "not enough memory to complete this operation" error.
>
>So, if you know of any product...? Or a fix for my problem?
>
>BR
>

You cannot share the same menu "mainMenu" in two forms;
you have to build a "mainmenu1","mainmenu2".... ( in Load )
and release everyone when the form is destroyed ( in Unload )

>
>>>I've just had a post about the CommandBars library and Tore Bleken kindly pointed out a couple of threads that discouraged me from trying this product.
>>>
>>>Does anyone know of a similar product that would let me replace the VFP menu with OO menus?
>>>
>>>Only, they must have the look and feel of real Windows menus.
>>
>>VFP menus look real to me. < gd&r >
Previous
Reply
Map
View

Click here to load this message in the networking platform