示例#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);
    }
示例#2
0
文件: MainWindow.cs 项目: moscrif/ide
    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;
    }