How to prevent skinning on specific component

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #34978
    Eric24
    Participant

    I need to create a “transparent” TPanel or TFlowPanel that's just there as a container, but should not get skinned. How do I prevent a specific component from getting skinned, or more specifically, how do I make a specific component transparent? My question applies only to TPanel and TFlowPanel, but perhaps the method is the same for any component?

    #47493
    Eric24
    Participant

    Note: I found that using a normal TPanel almost works. I can prevent it from being skinned, but then Alpha controls (like TsComboBoxEx) that are placed inside the TPanel have rendering problems when they get skinned (subtle pixel errors around the corners, that only appear if the Alpha control is inside the TPanel). So, as a solution to my initial post, the TPanel would work if it weren't for the rendering issues. But if there is another way, please let me know (such as using a TsPanel while making it “transparent”, if that's possible).

    #47496
    Eric24
    Participant

    I solved this by using a TsPanel and setting it's SkinSection to SPEEDBUTTON_SMALL, which is apparently “transparent” in its default state. That works by making the TsPanel transparent. I would request that a SkinSection of TRANSPARENT or PARENT could make sense, just so the intent is more clear than using SPEEDBUTTON_SMALL.

    #47523
    Support
    Keymaster
    'Eric24' wrote:
    I would request that a SkinSection of TRANSPARENT or PARENT could make sense, just so the intent is more clear than using SPEEDBUTTON_SMALL.

    I agree with you, it's not very clear, but this section is really excess… I will think about that.

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