Skinning problem when using TGridPanel

Tagged: 

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #70462
    bruno
    Participant

    When a TsBitButton is inserted in a TGridPanel, its corners are not properly skinned.
    I join a test application that shows the problem.

    Attachments:
    You must be logged in to view attached files.
    #70464
    Support
    Keymaster

    Hi! Thank you for the demo.
    Reason of the issue – your gridpanel is not skinned.
    Try to add “TGridPanel” as “Panel” in the sSkinManager1.ThirdPartyList. Look the screenshot.

    Attachments:
    You must be logged in to view attached files.
    #70533
    bruno
    Participant

    Hi,
    I just discovered your message. It solved the problem indeed. Thanks !

    #70534
    bruno
    Participant

    I still have a problem though.
    When I insert a TGridPanel in a colored panel, the TGridPanel appears as it adopts the standard color of the current skin (which is Windows 11 dark in the attachment). Could it be transparent? Is there a way to solve the problem (programmaticaly?) ?

    Attachments:
    You must be logged in to view attached files.
    #70545
    Support
    Keymaster

    I think, Parent panel should be skinned too.
    If this parent panel will have changed color then children will have it too.
    I can change a test project if you upload it.

    #70647
    bruno
    Participant

    Hi
    Here is a sample program to show you what the problem is.
    I define custom sections (in the common sections) which I use for one panel and one button.
    The TGridPanel is placed on the panel that uses a custom section. This grid is black but it should be red as the panel.
    The button placed in the grid has not rounded corners as I hoped it would have.
    I hope my explanations are clear, but maybe the code will be clearer 🙂

    Attachments:
    You must be logged in to view attached files.
    #70653
    bruno
    Participant

    I’m not sure I did save the source properly before sending it. Here is the correct attachment.

    Attachments:
    You must be logged in to view attached files.
    #70660
    Support
    Keymaster

    Thank you, I will research it.

    #70670
    Support
    Keymaster

    Rounded corners in buttons will work at the nearest days, some other improvements will be added also.

    This grid is black but it should be red as the panel.

    Try this code, please:

    sVclUtils.TrySetSkinSection(grdpnl1, 'TRANSPARENT');

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