Can't force refresh of TsPanel on a Frame

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #35929
    ralfiii
    Participant

    I want to force that a TsPanel that resides on a Frame to be repainted (because it would change its look)

    But the OnPaint-Method of the TsPanel is not called, no matter what I try.

    The only dirty workaround I found was to resize the panel. But there must be a nicer way.

    Pic and demo app attached

    Btw: Would be cool if I could attached 7zip files. (*.7z) They compress a bit better than .zip

    #51128
    Support
    Keymaster

    Hello!

    Skin cache should be updated in panel and child button.

    Shortest code:

    Code:
    uses sMessages;

    SendMessage(fra.pnlPaint.Handle, SM_ALPHACMD, MakeWParam(0, AC_REFRESH), LPARAM(fra.pnlPaint.SkinData.SkinManager));
    #51148
    ralfiii
    Participant

    Works.

    Thanks!

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