Sign in Join

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

Mailing lists / lazarus / 2017-05

Gtk2 ShowWindow(..SW_RESTORE)

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

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

Alexey

Hi. Maybe someone can implement it? Gtk2 misses it-

   case nCmdShow of
   SW_SHOWNORMAL:
     begin
       if B then
         gtk_widget_show(PGtkWidget(GtkWindow))
       else
       begin
         if not GTK_WIDGET_VISIBLE(PGtkWidget(GtkWindow)) then
           gtk_widget_show(PGtkWidget(GtkWindow));
         gtk_window_deiconify(GtkWindow);
         gtk_window_unmaximize(GtkWindow);
         gtk_window_unfullscreen(GtkWindow);
       end;
     end;
   SW_HIDE:
       gtk_widget_hide(PGtkWidget(GtkWindow));
   SW_MINIMIZE:
     if not B then
       gtk_window_iconify(GtkWindow);
   SW_SHOWMAXIMIZED:
     if B then
       gtk_widget_show(PGtkWidget(GtkWindow))
     else
     begin
       gtk_window_deiconify(GtkWindow);
       gtk_window_unfullscreen(GtkWindow);
       gtk_window_maximize(GtkWindow);
     end;
   SW_SHOWFULLSCREEN:
     if B then
       gtk_widget_show(PGtkWidget(GtkWindow))
     else
       gtk_window_fullscreen(GtkWindow);
   end;
Regards, Alexey

Reply by email