How to paint form's background when Form.BorderStyle is bsNone?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #35324
    Robovideo
    Participant

    Hello,

    I'm using AC 7.34 on Delphi XE.

    Form's background (graphic jpg or gradients) is not painted when Form.BorderStyle is bsNone;

    Setting Form.BorderStyle to any other value turns on Form's background painting.

    Please help

    TIA

    Angelo

    #48872
    Support
    Keymaster

    Hello Angelo

    I not quite understand what you mean. Form is not skinned?

    Try to place the TsSkinProvider component to this form.

    #48878
    Robovideo
    Participant

    Hello,

    form is skinned and a TsSkinProvider component is on the form.

    I'm able to reproduce it with LiteDemo project, by

    setting MainForm's BorderStyle:=bsNone and selecting AfterBurner skin.

    Form's graphic background won't be painted, however I noticed this does not occur with all skins having a graphic image as background.

    [attachment=5824:Image2.png]

    [attachment=5823:Image1.png]

    I realize it's not such a big issue; I was just wondering whether it was a wrong setting or else.

    Thanks

    #48881
    Support
    Keymaster

    Some skins (like Afterburner) will not have background image when BorderStyle is bsNone because this image was defined in the BorderMask property (not as background of window).

    This skin should be changed for drawing a background.

    #48913
    Robovideo
    Participant

    Hello,

    I didn't get into skin building so far, since I'm new to AC.

    I Thank you very much for the explanation.

    Regards

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