Chevron button in delphi dialog

I want to draw a Chevron button

enter image description here

in a custom dialog form, and I wonder if there is a state constant and a part to be used with DrawThemeBackground , or should I draw this button manually?

+8
windows-7 winapi delphi
source share
2 answers

The closest I can find for XP is

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

enter image description here

or

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

However, in later versions of Windows there is also TDLG_EXPANDOBUTTON, what do you want to judge by the image in Where can I find the icons / animations recommended in the Windows 7 UX manual?

Thanks Andreas (as usual for questions related to topics and customer comments)

See also his utility in Windows Visual Themes: Gallery of parts and states?

Ideally, I would use the second version if it was available, but returned to the first in XP.

+12
source share

You can not find it in the list of parts and states? Then this does not exist. http://msdn.microsoft.com/en-us/library/bb773210(v=vs.85).aspx

0
source share

All Articles