菜单项太多。 [英] Too many menu items.

查看:92
本文介绍了菜单项太多。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些包含许多菜单项的菜单。鼠标滚轮不会滚动它们。我必须使用键盘箭头或单击顶部和底部的箭头。是否可以使用鼠标滚轮滚动工具条菜单项?在vb.net中感谢

I have some menus that contain many menuitems. Mouse wheel doesn't scroll them. I have to use the keyboard arrows or click the arrows at top and bottom. Is it possible to use the mouse wheel to scroll toolstrip menu items? in vb.net Thanks

推荐答案

这是Windows控件的工作方式:您将在每个其他Windows窗体中看到相同的内容(例如,收藏夹菜单中的一个带有大量书签的IE浏览器。)除非你编写自己的菜单控件来实现你想要的东西,否则你不能覆盖这种行为。这是一个非常复杂的情况。



一个更好的解决方案 - 也就是微软以他们的方式实现菜单的原因 - 是将事物组织成子菜单。再看一下IE,你有顶级的视图菜单,然后有几个子菜单,比如文字大小。如果你必须实现一个任意长的菜单项列表,你唯一的选择是到期或自己编写。
This is the way the Windows controls work: you will see the same thing in every other Windows form (for example, the Favorites menu in an IE browser with a large number of bookmarks.) You cannot override this behavior unless you write your own menu controls to implement what you want, and that is a very complex situation.

A much better solution -- and probably why Microsoft implemented menus the way they did -- is to organize things into sub-menus. Looking again at IE, you have the top-level View menu, then several sub-menus such as Text size. If you must implement a list of menu items that are arbitrarily long, your only options are to make due or write your own.


这篇关于菜单项太多。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆