Translucent labels/buttons

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #49260
    Support
    Keymaster

      Hello, alessandro

      We can have semi-transparent buttons, except a texts in them.

      #49261
      alessandro
      Participant

        It's a starting point… how can I made one ?

        #49265
        Support
        Keymaster

          Transparency of control may be defined in the ASkinEditor skin while skin is in developing.

          You are making own skin?

          #49267
          alessandro
          Participant

            No, i would like to set it at runtime on existing skins. Is it possible ?

            #49288
            Support
            Keymaster

              It's possible, but only if skin is active.

              Can you prepare a demo? I'll add required changes there.

              #49300
              alessandro
              Participant
                'Support' wrote:

                It's possible, but only if skin is active.

                Can you prepare a demo? I'll add required changes there.

                Sure here is a simple sample with a button on an image. Thanks in advance!

                #49301
                Support
                Keymaster

                  Thank you

                  See the sSkinManager1.CommonSections property.

                  New “BUTTON_TRANSP” section was added here. This section is inherited from “BUTTON”, but additional transparency added.

                  sButton1.SkinData.SkinSection property is defined to “BUTTON_TRANSP”

                  BG Image is drawn on the panel because is not included into skin.

                  This solution was useful for you?

                  #49304
                  alessandro
                  Participant
                    'Support' wrote:

                    Thank you

                    See the sSkinManager1.CommonSections property.

                    New “BUTTON_TRANSP” section was added here. This section is inherited from “BUTTON”, but additional transparency added.

                    sButton1.SkinData.SkinSection property is defined to “BUTTON_TRANSP”

                    BG Image is drawn on the panel because is not included into skin.

                    This solution was useful for you?

                    This is the effect I was looking for, but why it doesn't work with other skins like i.e. WMP 2008 and Vienna ?

                    #49326
                    Support
                    Keymaster

                      Buttons are defined only as images in some skins. Such properties as colors, gradients and transparency are not used there and can't be used for a changing of a controls looking.

                      #49329
                      alessandro
                      Participant
                        'Support' wrote:

                        Buttons are defined only as images in some skins. Such properties as colors, gradients and transparency are not used there and can't be used for a changing of a controls looking.

                        I understand.

                        Three more question:

                        – do you know which skins doesn't use images for buttons or have I to go look inside every one ?

                        – is it possible to define a button using an image with an alpha channel or a predefined fixed transparency level ?

                        – is it possible to have a button with round corners without using images ?

                        Thank you for your patience 🙂

                        #49334
                        Support
                        Keymaster

                          I have an idea, you can change the Button.SkinData.SkinSection property to 'SPEEDBUTTON', this section will draw a semi-transparent button in all skins, if I'm not wrong. This solution is useful for you?

                          #49339
                          alessandro
                          Participant

                            Unlucky no, it also works only with non-bitmap skins

                            #49418
                            Support
                            Keymaster

                              Really, buttons in some skins are designed for using without transparency and can be changed in a skin editor only.

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