Javier Tarí 23 Posted 19 hours ago 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 19 hours ago (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 19 hours ago by PeterBelow Share this post Link to post