473,398 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Modifying the Window menu

I'm trying to have a menu item in a custom menu that serves the same
purpose as the standard Windows built in menu with respect to the list
of forms that are open. However, I don't want to let the users have
access to menu items such as, for example:

Hide - someone will hide the main menu form by accident when poking
about and panic.

Unhide - I have one major form with hundreds of bizarre text boxes which
stores setings on various forms, criteria chosen on other forms, etc. I
definitely don't want to give users a heart attack if they accidentally
unhide this.

I can bring a copy of the Windows menu (holding ctrl key and dragging it
from the main built in menu bar or be dragging it from the commands tab
of the custom9ize dialog, but whenever I modify this, the changes appear
on the main Access menu bar. Using a couple of commands like (where
position 7 is the position of the windows menu on custom menu mnuC):

commandbars("mnuC").Controls(7).controls(8).visibl e = false

Results in the same thing, ie, the menu item in the windows menu being
invisible in all further instances of Access opened.

Any suggestions? What I'm looking for is a menu that lists all open,
visible, non-dialog forms that can be used to chage the focus to the
forms listed.

TIA
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Jun 28 '06 #1
2 2577
Tim Marshall wrote:
I'm trying to have a menu item in a custom menu that serves the same
purpose as the standard Windows built in menu with respect to the list
of forms that are open. However, I don't want to let the users have
access to menu items such as, for example:

Hide - someone will hide the main menu form by accident when poking
about and panic.

Unhide - I have one major form with hundreds of bizarre text boxes which
stores setings on various forms, criteria chosen on other forms, etc. I
definitely don't want to give users a heart attack if they accidentally
unhide this.

I can bring a copy of the Windows menu (holding ctrl key and dragging it
from the main built in menu bar or be dragging it from the commands tab
of the custom9ize dialog, but whenever I modify this, the changes appear
on the main Access menu bar. Using a couple of commands like (where
position 7 is the position of the windows menu on custom menu mnuC):

commandbars("mnuC").Controls(7).controls(8).visibl e = false

Results in the same thing, ie, the menu item in the windows menu being
invisible in all further instances of Access opened.

Any suggestions? What I'm looking for is a menu that lists all open,
visible, non-dialog forms that can be used to chage the focus to the
forms listed.

TIA


You'll have to make your own menu bar w/ a Windows item and only the sub
menu items you want. Then attach that menu bar to all visible forms.
When the application closes, Access' menu bar should reappear.

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
Jun 28 '06 #2
MGFoster wrote:
You'll have to make your own menu bar w/ a Windows item and only the sub
menu items you want. Then attach that menu bar to all visible forms.
When the application closes, Access' menu bar should reappear.


That's the unfortunate thing - I'm doing this, but for the sub menu item
that shows open forms, I can't seem to find it anywhere on either the
customise dialog or the actual built-in windows menu when I'm in
customize menus mode...
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Jun 28 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tom Dacon | last post by:
"Open .Net Command Window Here" context menu for Windows Explorer: The reg file described below adds a new menu item to Windows Explorer's context menu when you right-click over a folder (or the...
1
by: Peter D. Dunlap | last post by:
Hello, I realize that this may not be the best place to ask this question, through the application is asp.net. I also realize that questions about disabling the back button are generally met...
0
by: Steve Barnett | last post by:
I've created a simple MDI application and have designated the Window menu to keep track of the mdi children. When I first load an mdi child, it's caption consists of "File: no file loaded" and this...
16
by: MLH | last post by:
If I give someone a runtime app, they can open the database window by pressing the F-11 key. How to prevent???
3
by: Jon Slaughter | last post by:
I'm tryign to display my own title bar. I've created a window without one but with a menu. The menu though is located in the upper left corner and I need to move it down. I need to set the client...
7
by: joecap5 | last post by:
I have a main window from which I want to open a separate side menu window. I then want to create a list of items on that side menu by clicking on the item names in the main window. So far I am...
1
by: cnsabar | last post by:
Hi I am having a problem in closing a menu window using TK module dynamically. I use the following program. use Tk; $mw = MainWindow->new; $mw->geometry("1024x768");
4
by: raj.indian.08 | last post by:
Hi all, I am trying to modify the system menu of all the applications in my machine. For example say - I am creating multiple desktops for windows - and I want to give every application the...
2
by: afromanam | last post by:
Hi I've been setting up a custom toolbar on start up for the application via VBA code. I've generated, for the custom menu bar, the drop-down menus File, Edit, Window and Help and successfully...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.