Javier Tarí 23 Posted yesterday at 11:14 AM Any idea on how to get the colors used by a Vcl Theme to paint menu backgrounds? StyleServices.GetElementColor(Details,ecFillColor,vColor) does not return them for almost none of TThemedMenu values I can see a PopupMenu using a few background colors, depending on a combination of item selection and enabled state, but can't get them programmatically Share this post Link to post
PeterBelow 247 Posted yesterday at 11:22 AM (edited) From the help it looks like the StyleServices function can take a parameter that specifies the control you want the style info for. So, have you tried to pass a main menu instance as this parameter? Or look at the drawing code in vcl.menus.pas, that should show you how the vcl gets the colors to draw with. Edited yesterday at 11:23 AM by PeterBelow Share this post Link to post