Color coordination with CharImage colors Root › Technical support › Tricks This topic has 7 replies, 3 voices, and was last updated 6 years, 7 months ago by Support. Viewing 7 posts - 1 through 7 (of 7 total) Author Posts September 11, 2018 at 5:44 pm #58348 Stephane SenecalParticipant it seems to work that way. lfx.Kind.Color := $FFFFFF and slBtnGreenText; Stephane Senecal CIS Group Delphi programmer since 2001 September 11, 2018 at 5:47 pm #58349 HeDiBoParticipant 'Stephane wrote: it seems to work that way. lfx.Kind.Color := $FFFFFF and slBtnGreenText; Very nice, thank you. This solves one part of the problem. Now getting the color right for dark skins. September 12, 2018 at 9:17 am #58356 SupportKeymaster Will be better to use the acColorToRGB function. slBtnGreenText is not RGB color, this color should be converted to the current skin color: Code: lfx.Kind.Color := acColorToRGB(slBtnGreenText); Uses sVCLUtils; September 12, 2018 at 9:38 am #58358 HeDiBoParticipant 'Support' wrote: Will be better to use the acColorToRGB function. slBtnGreenText is not RGB color, this color should be converted to the current skin color: Code: lfx.Kind.Color := acColorToRGB(slBtnGreenText); Uses sVCLUtils; That's great! Now can you repair the missing OnAfterChange and OnActivate events. They are not fired if the application starts. Also OnDeactivate is not fired when the application closes. September 12, 2018 at 10:23 am #58359 SupportKeymaster OnAfterChange event should be fired when changed one activated skin to another. OnActivate and OnDeactivate will work in the v14.01 as expected. September 12, 2018 at 12:42 pm #58361 Stephane SenecalParticipant Much better! I was looking for something like this, but I couldn't find it. Thank you 'Support' wrote: Will be better to use the acColorToRGB function. slBtnGreenText is not RGB color, this color should be converted to the current skin color: Code: lfx.Kind.Color := acColorToRGB(slBtnGreenText); Uses sVCLUtils; Stephane Senecal CIS Group Delphi programmer since 2001 September 12, 2018 at 12:44 pm #58362 SupportKeymaster This function works with standard colors like clWindow, clBtnFace and others (returns color from the current skin). Author Posts Viewing 7 posts - 1 through 7 (of 7 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In Root › Technical support › Tricks