MENU HELP AGAIN....

  • Thread starter Thread starter Sender
  • Start date Start date
S

Sender

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.
 
Sender said:
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.
 
Hello,

Sender said:
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.
 
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.
 
Back
Top