Getting colour of skinned TPanel

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #42749
    Support
    Keymaster

    Hello

    You can try this code

    CODE
    Color := TColor(SendMessage(Panel.Handle, SM_ALPHACMD, MakeWParam(0, AC_GETCONTROLCOLOR), 0))


    (!) uses sMessages;

    But using TsPanel is always more preferably, this control especially optimized for work with AlphaSkins.
    For the TsPanel may be used this function : Color := GetBGColor(sPanel1.SkinData, 0); (uses sCommonData)

    #42778
    ael
    Participant

    Hello,

    QUOTE
    You can try this code

    It works perfectly, thanks a lot !

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