I wonder, if there is any way to either contol (hide / show) the menu suite from within Navision code or get it´s status to be able to control it by something like Keysend(ALT + F1).
What we basically want is the menu to be hidden on startup of the client.
I read all threads about the menu suite but couldn´t fing anything about this.
Thanks in advance for any hint
Pidi
Michael Peters
Bos Fod GmbH Düsseldorf
+49 2132 139-0
0
Comments
Have a look at this thread how to use SendKeys: http://www.mibuso.com/forum/viewtopic.php?t=4934
wscript Automation Windows Script Host Object Model'.WshShell";
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
I know Sendkeys and I´m using it already (incedentliy I mention "keysend" in my first message - sorry).
SendKeys is exactly what I would use for switching off the menu, but to do that, I would need it´s status - othweise I might switch it on, when it´s off already.
The On/Off status of the menu seems to be stored within the .ZUP file, so it can be either on or off on startup.
Pidi
Bos Fod GmbH Düsseldorf
+49 2132 139-0
LSRetail Screen Control (Landsteinar Strengur)
Here is how you use it.
Screen.HideToolbar;
It handles both scenarios.
I don't know don't how they get the state, but it's a hack, or they have special connection with developers of Navision.
I can send it to you if you like. I believe it requires MFC libraries.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Any idea how they acheived what they do with it? I could do with doing the same thing and hiding the menu bar.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Just a quick hint to get you going.
If you know visual basic 6 i have samplecode of how to obtain window handles of all different windows (controls) within navision which currently has the active focus.
I programmed this years ago so i hope the copied code parts are complete. - probably it won't compile as variable and functions are missing but it is just to get an idea -
You have to do 2 things:
- add code to obtain window handle of the menu (use program spy that ships with visual studio to obtain window name). If you don't get a window handle probably this window is closed.
- send a WM_CLOSE to this handle (google for WM_CLOSE) (or use sendkeys ALT+F1)