Flashing black background when resizing a form

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #37534
    Lasse
    Participant

    Use your demo:

    1. Set MainUnit's PanelContainer.Align = alClient

    2. Set UnitFrameTabControl's frame Align = alClient

    3. Run the demo.

    4. Go to Examples of components -> Inherited from VCL -> Tabbed controls

    5. Resize the application, everything is smooth

    6. Change Extended borders mode to false

    7. Now that same resizing (5) is flashing black background

    Can I avoid this somehow when not using extended borders mode?

    #56893
    Support
    Keymaster

    Hello

    These black rectangles are shown when but size of the control is changed, background is not rendered yet.

    Extended borders solves this issue.

    #56911
    Lasse
    Participant

    I managed to solve this when not using extended borders mode:

    Code:
    procedure TBaseForm.FormCreate(Sender: TObject);
    begin
    inherited;

    SetClassLong(Handle, GCL_HBRBACKGROUND, GetSysColorBrush(COLOR_WINDOW));
    end;

    #56913
    Support
    Keymaster

    Thank you, I didn't knew this feature.

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