Maximizar y Minimizar ventana GTK#

Alexis Araya <[email protected]>
Newsgroups gmane.comp.gnome.mono.hispano
Message-ID <[email protected]>
hola,

estoy haciendo unas pruebas en monodevelop 2.2 en windows7.

intento hacer un simple ejemplo de minimizar y maximizar una ventana.
pero no me resulta.

solo maximiza, nunca miniza.

aca les envio el codigo.

Gracias.


static bool maximized = false;

protected virtual void OnKeyPressEvent (object o, Gtk.KeyPressEventArgs
args)
     {
         if    (args.Event.Key == Gdk.Key.F11)
            {

                if (!maximized)

                {

                    this.Fullscreen();
                    maximized = true;

                }

                else

                {

                    this.Unmaximize();
                     maximized = false;

                }

            }

        }

-- 
Alexis Araya S.
http://aarayas.blogspot.com
/* La Amistad se Pierde, Cuando la Envidia Crece */



-- 
Alexis Araya S.
http://aarayas.blogspot.com
/* La Amistad se Pierde, Cuando la Envidia Crece */

_______________________________________________
Mono-hispano mailing list
[email protected]
https://listas.hispalinux.es/mailman/listinfo/mono-hispano
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.