473,396 Members | 1,671 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,396 software developers and data experts.

MENU HELP AGAIN....

The contextmenu I have created has many levels. Like on the main level
there are 15 menuitems. Then for each 15 menuitems there are at least 2
menuitems and then for each of these menu items there are further
sub-levels. And this process go on for a few more levels. I am accessing
this menu from the click of a command button. My form has only this button.
Now when I put this form (which is exactly as the size of defaut command
button) on the Bottom Right corner of the screen and try to navigate in the
Menu then it all gets messed up first leve sub-menu opens at the right then
next-level sub-menu opens at left etc. However, everything work smooth when
you put the form in the leftside because every sub-menu opens at the
right-side of it's parent menu.

Nov 20 '05 #1
3 1430
"Sender" <us**@domain.com> schrieb
The contextmenu I have created has many levels. Like on the main
level there are 15 menuitems. Then for each 15 menuitems there are at
least 2 menuitems and then for each of these menu items there are
further sub-levels. And this process go on for a few more levels. I
am accessing this menu from the click of a command button. My form
has only this button. Now when I put this form (which is exactly as
the size of defaut command button) on the Bottom Right corner of the
screen and try to navigate in the Menu then it all gets messed up
first leve sub-menu opens at the right then next-level sub-menu opens
at left etc. However, everything work smooth when you put the form in
the leftside because every sub-menu opens at the right-side of it's
parent menu.


What do you expect? The (sub)menu to be displayed outside the visible
screen?

The Windows start menu behaves the same way: sub menus not fitting on the
screen when displayed on the right side of the parent menu are displayed on
the left side.
--
Armin

Nov 20 '05 #2
Hello,

"Sender" <us**@domain.com> schrieb:
The contextmenu I have created has many levels.
Like on the main level there are 15 menuitems. Then
for each 15 menuitems there are at least 2 menuitems and
then for each of these menu items there are further sub-
levels. And this process go on for a few more levels.
I am accessing this menu from the click of a command
button. My form has only this button. Now when I
put this form (which is exactly as the size of defaut
command button) on the Bottom Right corner of the
screen and try to navigate in the Menu then it all gets
messed up first leve sub-menu opens at the right then
next-level sub-menu opens at left etc. However,
everything work smooth when you put the form in
the leftside because every sub-menu opens at the
right-side of it's parent menu.


Menus are not shown outside the visible area of the desktop. Menus will
open on the left side if there is not enough space for displaying them on
the right side. This is by design.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #3
Hey Armin... don't you think it would would have been better if the menu is
smart enough to know its location so that it could know that it has no space
on the right side to open all submenus then it should start opening the menu
from left sides right from the beginning (starting from the main-level). You
know when you open a menu then there are arrows (filled triangles icons) on
the right-side.....those could be on left-side when the menu is placed on
the right-side.

I know this is the default behavious / design of Menu/Context Menu. I was
thinking may be someone might have created an custom control.
"Armin Zingler" <az*******@freenet.de> wrote in message
news:uk**************@tk2msftngp13.phx.gbl...
"Sender" <us**@domain.com> schrieb
The contextmenu I have created has many levels. Like on the main
level there are 15 menuitems. Then for each 15 menuitems there are at
least 2 menuitems and then for each of these menu items there are
further sub-levels. And this process go on for a few more levels. I
am accessing this menu from the click of a command button. My form
has only this button. Now when I put this form (which is exactly as
the size of defaut command button) on the Bottom Right corner of the
screen and try to navigate in the Menu then it all gets messed up
first leve sub-menu opens at the right then next-level sub-menu opens
at left etc. However, everything work smooth when you put the form in
the leftside because every sub-menu opens at the right-side of it's
parent menu.
What do you expect? The (sub)menu to be displayed outside the visible
screen?

The Windows start menu behaves the same way: sub menus not fitting on the
screen when displayed on the right side of the parent menu are displayed

on the left side.
--
Armin

Nov 20 '05 #4

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

Similar topics

3
by: John Pote | last post by:
I have a menu bar in a top level window as follows menuBar = Menu(rootWin) menuBar.add_command( label='Quit', command=rootWin.quit) configMenu = Menu(menuBar, tearoff=0)...
5
by: Rob Mayo | last post by:
How can I force a MeasureItem message for an owner-dramn menu item? Here is the dilemma. I wrote a lovely little Component for owner-drawing all the menus on a form and making them look like...
5
by: Andy | last post by:
Hi I am writing a small calculator program using switch() for a menu. The menu is presented at first, selection read in via scanf(), and calculation is executed. At the end of the operation, the...
7
by: VB Programmer | last post by:
How do I create a submenu so that I can only check ONE of the values? Example: Menu --> Color SubMenu --> Red Value 1 --> Yellow Value 2 --> Green Value 3 Thanks....
2
by: Edward K. Ream | last post by:
Hi, I've spent a pleasant hour or so trying to bring up a top-level Tk menu at the same spot as it would appear if I had actually clicked the menu. That is, I want to bring up a menu from...
8
by: gs | last post by:
I was able to set tooltips on objects other than main menu. I would like to get the effect of tooltip or microhelp in the bottom status bar when the mouse is hovering over a submenu item. How do...
2
by: Gary Wessle | last post by:
Hi I need help organizing this program in the right way. I included the code below which compiles and runs and gives the desired effect to a certain point, but I don't know what the next step...
14
namcintosh
by: namcintosh | last post by:
Hello, everyone. Well, let me cut to the chase and explain my problem. I am trying to devise a menu plan that uses the if/else if and the while loop. The program calculates the user's weight...
4
by: Karl | last post by:
Hi all, I want to write an application that is launched from the context menu in Windows Explorer/Computer. That is to say, when I am browsing around my hard drive and get to any location I...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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,...

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.