如何改变菜单的高度 [英] how to change the height of menu

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

问题描述

我发现在菜单问题中,没有人考虑如何更改菜单的高度。

我的意思是如何设置。有人有什么好主意吗?

I have found that among the menu questions, none consider how to change the height of menu.
I do mean how to set.Do anybody have any good ideas??

推荐答案

菜单的高度完全取决于菜单的内容(以及菜单项的字体大小等)。



这与列表框或组合框的最大高度不同。这可以在资源编辑器中的UI设计时确定,也可以在运行时设置。如果最大尺寸大于内容,则内容确定显示的尺寸(即,列表框/组合框不会在短项目列表下方显示空白区域)。
The height of a menu is solely determined by the content of the menu (and font size etc of the menu items).

This differs from the max height of a listbox or combobox. This can be determined at UI design time in the resource editor, or set at runtime. If the max size is larger than the content, the content determines the displayed size (ie. listbox/combobox will not display blank space below a short list of items).


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

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