TsDBCtrlGrid PaintPanel problem

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #35397
    phil56
    Participant

    Hello,

    If in TsDBCtrlGrid.PaintPanel event, I change a TImage state (visible or not)

    the TImage is not repainted if the skin panel not have a gradient background (ie: Calcium skin)

    Code:
    void __fastcall TForm27::sdbctrlgrd1PaintPanel(TDBCtrlGrid *DBCtrlGrid, int Index)
    {
    if(Index % 2 ==0)
    {
    img1->Visible = false;
    }
    else
    {
    img1->Visible = true;
    }
    }

    C++ Builder XE, Windows 7, Alaph version 7.70

    See the test case in attachment

    Thanks in advance

    #49156
    Support
    Keymaster

    Hello!

    Try to change the spnl3.SkinData.BGChanged property to True before a showing of the image.

    #49160
    phil56
    Participant
    'Support' wrote:

    Hello!

    Try to change the spnl3.SkinData.BGChanged property to True before a showing of the image.

    Thanks for your reply,

    Where ? in TsDBCtrlGrid PaintPanel event ?

    I tried this but it didn't work…

    another idea ?

    thank you again

    #49193
    Support
    Keymaster

    Maybe this issue exists because your DataSet is empty?

    I have filled a DataSet and have good result..

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