Make TsPanel transparent/translucent?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #41037
    Support
    Keymaster

      Hello
      You must use TRANSPARENCY and HOTTRANSPARENCY (all reserved words may be found in sSkinProps.pas)
      Also I must say that empty item exists already in all skins. 'CHECKBOX' section will be empty and transparent always and you can use this section.

      #41316
      Alfatester
      Participant

        QUOTE (Support @ Nov 11 2009, 07:42 AM) <{POST_SNAPBACK}>
        Hello
        You must use TRANSPARENCY and HOTTRANSPARENCY (all reserved words may be found in sSkinProps.pas)
        Also I must say that empty item exists already in all skins. 'CHECKBOX' section will be empty and transparent always and you can use this section.

        Tried following:
        SkinManager.CommonSections.Add('[EMPTYITEM]');
        SkinManager.CommonSections.Add('TRANSPARENCY = 50');
        SkinManager.CommonSections.Add('HOTTRANSPARENCY = 50');
        sPanel1.SkinData.SkinSection := 'EMPTYITEM';

        Nothing helped.

        Do you have sample of working code?

        #41336
        Alfatester
        Participant

          Solved:

          Code works in case of lines without spaces:

          SkinManager.CommonSections.Add('[EMPTYITEM]');
          SkinManager.CommonSections.Add('TRANSPARENCY=50');
          SkinManager.CommonSections.Add('HOTTRANSPARENCY=50');
          sPanel1.SkinData.SkinSection := 'EMPTYITEM';

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