Getting the color of a component

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #36155
    alexhaifa
    Participant

    Hello

    I have a component that is not skinned for alphacontrol, but I'd like to get the color of my speedbutton and use it to apply in my component.

    Well, how can I get the color of a certain skindata, for example: SPEEDBUTTON ?

    How to do that?

    thanks

    Alexandre

    #51979
    Support
    Keymaster

    Hello

    You can receive a color of parent control using this code:

    Code:
    c := GetControlColor(SpeedButton1.Parent);

    uses sVCLUtils;

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.