[Gtk-sharp-list] Custom little close button

Jon García de Salazar Bilbao j.garcia at ziv.es
Fri Jul 14 11:30:57 EDT 2006

I'd like to build a little custom CloseButton. A little fixed size 
button with an "x" or
and x-image inside. I've tried this:

class CloseButton : Button
            public CloseButton() : base()
                this.Label = "x";
                this.Relief = ReliefStyle.None;
                this.FocusOnClick = false;
                this.SetSizeRequest(10, 10);

But it doesn't work. I get to make my button bigger but I can't make it 
smaller than
the default size (and that's what I want). Any help?
Thanks, Jon. 
----------------------------------------- PLEASE NOTE -------------------------------------------
This message, along with any attachments, may be confidential or legally privileged. 
It is intended only for the named person(s), who is/are the only authorized recipients.
If this message has reached you in error, kindly destroy it without review and notify the sender immediately.
Thank you for your help.
µSysCom uses virus scanning software but excludes any liability for viruses contained in any attachment.
------------------------------------ ROGAMOS LEA ESTE TEXTO -------------------------------
Este mensaje y sus anexos pueden contener información confidencial y/o con derecho legal. 
Está dirigido únicamente a la/s persona/s o entidad/es reseñadas como único destinatario autorizado.
Si este mensaje le hubiera llegado por error, por favor elimínelo sin revisarlo ni reenviarlo y notifíquelo inmediatamente al remitente. Gracias por su colaboración.  
µSysCom utiliza software antivirus, pero no se hace responsable de los virus contenidos en los ficheros anexos.

More information about the Gtk-sharp-list mailing list