[Lazarus] TForm.CreateNew - form hides not immediately

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Lazarus] TForm.CreateNew - form hides not immediately

Free Pascal - Lazarus mailing list
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

--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] TForm.CreateNew - form hides not immediately

Free Pascal - Lazarus mailing list
On Sun, 16 Feb 2020 22:56:46 +0300
"Alexey Tor. via lazarus" <[hidden email]> wrote:

> 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

--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus