- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我为 TPopUpMenu 分配了一些图标,但看起来它已更改为ownerdraw(它设置为 false)...我也使用 XP Manifest,但它看起来仍然很旧(Win2000 风格)...是否可以使其看起来像在 windows/explorer 中?也许是一个组件?
这是显示问题的图像:
感谢您的帮助。
最佳答案
这只是 Delphi 7 非常过时的问题。它在发布时非常棒,但现在已经有十年了,它的年龄已经显现出来。
您可能会发现 Toolbar2000有用。尽管名称如此,它确实包含了对 TMenu
和 TPopupMenu
功能的非常灵活的替代,使您可以使菜单看起来像 Office 2000 中的菜单。(请参阅有关注释带有项目符号项目 Office 2000 样式菜单
的链接页面,其中指出:
Office 2000-style menus There is no clear distinction between menus and toolbars, giving you the utmost in flexibility. Toolbars can contain menus, menu bars can contain buttons, and they can share the same items.
它已作为免费软件发布(带有源代码),因此可以使用,并且 AFAICT 它仍然支持 Delphi 7。如果不支持,Toolbar97
(可从同一 URL 获得)将提供类似的功能。
关于delphi-7 - 图标强制 TPopupMenu 为 OwnerDraw?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11661019/
我想将整个 TMenuItem 及其子项克隆到另一个 TPopupMenu。这是nice code : function CloneMenuItem(SourceItem: TMenuItem): T
我想要一个按钮上方的弹出菜单: Delphi 包装 Win32 菜单系统的方式似乎排除了底层 Win32 API 提供的每种模式或标志,而这些模式或标志当时不在 VCL 作者的脑海中。一个这样的例子似
TPopupMenu 如何与窗体的右侧对齐?问题是,在调用 Popup(X, Y: Integer) 之前,似乎没有办法获取弹出菜单的宽度。 我正在尝试获得与 Chrome 中的系统菜单类似的行为。
我将 WS_EX_LAYERED 样式添加到菜单窗口句柄,以使 TPopupMenu 透明,但代码不起作用,我的意思是菜单不透明。 这是我正在使用的代码 var hHookID: HHOOK; f
使用 Borland/CodeGear/Ebarcadero C++ Builder 2009。是否可以在 TPopupMenu 的第二列中右对齐显示快捷方式(或其他文本)? 例如: [image]
如何使 Tpopupmenu 支持 float ,以便用户可以将菜单项(子菜单)拖放到用户桌面的所有位置? 最佳答案 菜单不支持该功能。您想要执行的任何拖动都必须使用您自己的窗口来实现。 关于delp
我试图将 TPopupMenu 作为子组件包含到自定义组件中,如下所示: interface TComp1 = class(TComponent) private FMenu: TPo
创建 TMenuItem 运行时时如下所示: mi := TMenuItem.Create([所有者]); 并像这样添加到 TPopupMenu 中: PopupMenu1.Items.Add(mi)
应该很简单,但我看不到。 您可以通过以下方式找到右键单击以显示弹出菜单的组件: PopupMenu1.PopupComponent 但是如何找到包含依次单击该菜单的 TMenuItem 的弹出菜单呢?
我想在点击按钮时显示一个弹出菜单,但是这个过程在Delphi XE中出现错误。 procedure ShowPopupMenuEx(var mb1:TMouseButton;var X:integer
我在 Delphi XE2 应用程序中使用 vcl 样式,但是当我弹出 TPopupmenu 时,这是使用 native 窗口外观和感觉显示的,是否有任何方法将 vcl 样式颜色应用于 TPopUpM
TPopupMenu 中的项目可以用键盘或鼠标高亮/选择。使用键盘选择时,您可以使用箭头键在菜单中移动。 如何在不使用 VK_DOWN 模拟向下箭头按键的情况下将第一个菜单项标记为选中(蓝色)(参见下
TPopupMenu 中的项目可以用键盘或鼠标高亮/选择。使用键盘选择时,您可以使用箭头键在菜单中移动。 如何在不使用 VK_DOWN 模拟向下箭头按键的情况下将第一个菜单项标记为选中(蓝色)(参见下
启动一个新的多设备应用程序并在其上放置一个按钮。以 POP: TPopupMenu 形式声明一个成员变量。双击按钮并在事件中插入以下代码: var MI : TMenuItem; I
我为 TPopUpMenu 分配了一些图标,但看起来它已更改为ownerdraw(它设置为 false)...我也使用 XP Manifest,但它看起来仍然很旧(Win2000 风格)...是否可以
如何重置 PopupMenu 项目列表的最大宽度? 假设您在运行时将一些 TMenuItems 添加到弹出菜单中: item1: [xxxxxxxxxxxxxxxxxxx] item2: [xxxxx
我需要为 Delphi 的 TPopupMenu 和 TMenuItem 后代控件编写自定义组件编辑器。 找到 native 编辑器将使我的工作更容易,但在检查文件夹“\source\Property
我是一名优秀的程序员,十分优秀!