[Lazarus] Patch for fixing the window resizes when switching components

Marc Weustink marc at dommelstein.nl
Thu May 18 13:38:37 CEST 2017


zeljko via Lazarus wrote:
> On 18.05.2017 01:43, Kostas Michalopoulos via Lazarus wrote:
>
> if GDK_IS_WINDOW(PGtkWindow(OurWidget)^.window) and
> (gdk_window_get_state(PGtkWindow(OurWidget)^.window) =
> GDK_WINDOW_STATE_MAXIMIZED) then
>   gtk_window_unmaximize() ...
> Same for unfullscreen and other "un" routines which we use inside that
> procedure.
>
> What other devels think about this ? Should I correct that patch in this
> way and fix future problems with eg gtk_window_unfullscreen() which
> isn't covered by this patch atm ?

I prefer using the gtk/gdk functions and avoid getting (win)controls 
from the widgetsets

Marc



More information about the Lazarus mailing list