gpt4 book ai didi

delphi - Delphi对话框中的V形按钮

转载 作者:行者123 更新时间:2023-12-03 14:47:02 24 4
gpt4 key购买 nike

我想画一个 V 形按钮

enter image description here

在自定义对话框表单中,我想知道是否存在与 DrawThemeBackground 一起使用的 State 和 Part 常量函数还是我必须手动绘制这种按钮?

最佳答案

我能找到的最接近 XP 的是

ThemeServices.DrawElement(Canvas.Handle, GetElementDetails(tebNormalGroupExpandNormal),
矩形(10, 100, 100, 200));

enter image description here

EBP_NORMALGROUPEXPAND 直接使用 DrawThemeBackground。然而,这会绘制一个双箭头(至少在 XP 上)

但是更高版本的 Windows 版本也有 TDLG_EXPANDOBUTTON,这正是您想要的,通过 Where do I find the icons / animations recommended in the Windows 7 UX guide? 处的图像来判断。

感谢Andreas (与主题和客户绘图相关问题一样)

另请参阅他的实用程序 Windows Visual Themes: Gallery of Parts and States?

理想情况下,如果可用,我会使用第二个版本,但在 XP 上回退到第一个版本。

关于delphi - Delphi对话框中的V形按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7264484/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com