Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2020-02

TForm.CreateNew - form hides not immediately

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Alexey Tor.

Linux gtk2.

   Form:= TForm.CreateNew(Application.MainForm);
   Form.Visible:= FOption;

if FOption=False, form flickers! it appears for 0.2sec and hides. Can we avoid flicker and just hide?
Maybe AVisible param can be added to CreateNew?

It is so on all widgetsets?

Regards, Alexey

Reply by email

Mattias Gaertner
to Alexey Tor.
Linux gtk2.   Form:= TForm.CreateNew(Application.MainForm);   Form.Visible:= FOption;
  Form:=TForm1(TForm1.NewInstance);
  Form.DisableAutoSizing;
  Form.CreateNew(Application.MainForm);
  Form.Visible:=FOption;
  Form.EnableAutoSizing;

Mattias

Reply by email