雪佛龙按钮在delphi对话框中 [英] Chevron button in delphi dialog form

查看:158
本文介绍了雪佛龙按钮在delphi对话框中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想画一个雪佛龙按钮





在一个自定义对话窗体中,我想知道是否存在一个状态和部分常量与



感谢 Andreas (像往常一样的主题和客户图纸相关的问题)



另请参阅他的实用程序 Windows视觉主题:零件和状态库



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


I want to draw a Chevron button

in a custom dialog form and I'm wondering if exist a State and Part constant to be used with the DrawThemeBackground function or I must draw this kind of button manually?

解决方案

The closest I can find for XP is

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

or

EBP_NORMALGROUPEXPAND using DrawThemeBackground directly. However this draws a double arrow (on XP at least)

However later windows versions also have TDLG_EXPANDOBUTTON, which is what you want judging by the image at Where do I find the icons / animations recommended in the Windows 7 UX guide?

Thanks to Andreas (as usual for theme and customer drawing related questions)

See also his utility at Windows Visual Themes: Gallery of Parts and States?

Ideally I would use the second version if available, but fall back to the first on XP.

这篇关于雪佛龙按钮在delphi对话框中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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