- This topic has 13 replies, 2 voices, and was last updated 12 years ago by Support.
-
AuthorPosts
-
October 31, 2012 at 11:03 am #35432alessandroParticipant
Is it possible to achieve the effect I drawed with GIMP in this picture, i.e. a semi transparent label (alpha=70) on a background image ?
Thanks in advance!
November 1, 2012 at 3:14 pm #49260SupportKeymasterHello, alessandro
We can have semi-transparent buttons, except a texts in them.
November 1, 2012 at 3:20 pm #49261alessandroParticipantIt's a starting point… how can I made one ?
November 1, 2012 at 5:46 pm #49265SupportKeymasterTransparency of control may be defined in the ASkinEditor skin while skin is in developing.
You are making own skin?
November 1, 2012 at 7:20 pm #49267alessandroParticipantNo, i would like to set it at runtime on existing skins. Is it possible ?
November 2, 2012 at 11:39 am #49288SupportKeymasterIt's possible, but only if skin is active.
Can you prepare a demo? I'll add required changes there.
November 2, 2012 at 11:12 pm #49300alessandroParticipant'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!
November 3, 2012 at 7:16 am #49301SupportKeymasterThank 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?
November 3, 2012 at 11:18 pm #49304alessandroParticipant'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 ?
November 9, 2012 at 1:28 pm #49326SupportKeymasterButtons 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.
November 9, 2012 at 2:02 pm #49329alessandroParticipant'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 🙂
November 9, 2012 at 3:23 pm #49334SupportKeymasterI 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?
November 10, 2012 at 12:15 am #49339alessandroParticipantUnlucky no, it also works only with non-bitmap skins
November 22, 2012 at 8:47 am #49418SupportKeymasterReally, buttons in some skins are designed for using without transparency and can be changed in a skin editor only.
-
AuthorPosts
- You must be logged in to reply to this topic.