Transparency problem with TImage

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #33557
    alessandro
    Participant

    I was evaluating Alphacontrols and i'm stuck with this scenario
    – a form with a with skinmanager and skinprovider
    – a TsPanel with a TImage on it

    I've noticed that some controls aren't painted correctly if put them over the TImage
    Examples:
    – a TsLabelFX with transparent=true is drawn like the the TImage doesn't exists, it shows the panel background “under” it
    – a TsBitButton or a TsButton with skinsection=BUTTON_HUGE (rounded frame) show a little extra border around the frame where i can see the panel as background instead of the image (if i put one of them over the panel caption position I can read some letters)

    Bug or feature ? Or I have to use another control instead of TImage ?

    #41702
    Support
    Keymaster

    Hello
    I can repeat described effect with huge buttons only (that can't be changed now).
    Labels was transparent.

    #41708
    alessandro
    Participant

    QUOTE (Support @ Feb 15 2010, 12:47 PM) <{POST_SNAPBACK}>
    Hello
    I can repeat described effect with huge buttons only (that can't be changed now).
    Labels was transparent.

    Is there any component or combination of components I can use instead of TImage to avoid this problem ? The effect I would like to achieve is a picture (runtime loaded) as a background of the form

    #41709
    Support
    Keymaster

    You can paint on the form or on the sPanel directly.. (using OnPaint event).

    #41721
    alessandro
    Participant

    QUOTE (Support @ Feb 15 2010, 01:10 PM) <{POST_SNAPBACK}>
    You can paint on the form or on the sPanel directly.. (using OnPaint event).

    Perfect! Exatcly what i wanted to do.
    Thank you very much!

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