Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Modifying main menu programmatically.
Message
 
 
To
18/11/2002 09:43:10
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00723837
Message ID:
00723848
Views:
19
>Hello everybody,
>I have a little problem and I was wondering if has anybody done the same thing.
>We have an application with define main menu. From within this application, let's call it MAIN, user can go to a different packages and every package has it's own main menu. Because all menu pads for all packages are the same except popup we are actually removing several pads and adding pads that belong to this particular package with they own popup. It works pretty well so far, the problem however is that new pads showing up you can actually see them appear, one by one. Because setting _SCREEN.LOCKSCREEN = .T. and .F. works only with forms and can't come with anything to prevent this behavior. The reason why we are changing pads and not the menu is because we are working with MM FrameWork and change pads is easier then the menu.
>Does anybody have any advice how to do if it possible, of course?
>Regards
>Igor
****** DLLS declaration ************************
DECLARE INTEGER GetDesktopWindow IN WIN32API
DECLARE INTEGER LockWindowUpdate IN WIN32API INTEGER lnHandle

hWin = GetDeskTopWindow()
LockWindowUpdate(m.hWin) && Lock window

** Your code
LockWindowUpdate(0) && Unlock the window
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform