Esempio n. 1
0
    /// <summary>
    /// Called when [window state event].
    /// </summary>
    /// <param name="evnt">The evnt.</param>
    /// <returns></returns>
    protected override bool OnWindowStateEvent(Gdk.EventWindowState evnt)
    {
        bool result = base.OnWindowStateEvent(evnt);

        if (evnt.NewWindowState == Gdk.WindowState.Withdrawn ||
            evnt.NewWindowState == Gdk.WindowState.Iconified)
        {
            this.waveWidget.isMinimized = true;
        }
        else
        {
            this.waveWidget.isMinimized = false;
        }

        return(result);
    }
Esempio n. 2
0
    protected override bool OnWindowStateEvent(EventWindowState evnt)
    {
        if((evnt.ChangedMask & (Gdk.WindowState.Maximized | Gdk.WindowState.Fullscreen )) !=0)
            statusbar1.HasResizeGrip = (evnt.NewWindowState & (Gdk.WindowState.Maximized | Gdk.WindowState.Fullscreen )) !=0 ;

        return false;
    }