[Gtk-sharp-list] Gtk.Button: resize internal padding

andy at brdstudio.net andy at brdstudio.net
Wed Jun 24 09:26:19 EDT 2009


I'm sorry to say I have never been able to completly get rid of the button 
border no matter what I tried. I would suggest creating a custom widget 
inherited from Gtk.DrawingArea add your image on the onexpose event and 
override the button click event. This would give you a much greater control 
over the size of the widget.
I'm trying to remember this from memory but if you would like me to try to 
explain it further I'll see if I can find an example.
SpoodyGoon

----------------------------------------
From: "alessiofachechi" <alessio.fachechi at gmail.com>
Sent: Wednesday, June 24, 2009 8:21 AM
To: gtk-sharp-list at lists.ximian.com
Subject: Re: [Gtk-sharp-list] Gtk.Button: resize internal padding 

No Chris.. I tried that property but it didn't worked.. >-(

Chris Howie wrote:
> 
> On Tue, Jun 23, 2009 at 9:53 AM,
> alessiofachechi wrote:
>> Hi, I'm creating a notebook widget with custom tab in which there is a
>> close
>> button. The problem is that there is a padding between button border 
and
>> the
>> contained icon image. How can I set it? This is my code:
> 
> Try CloseButton.BorderWidth = 0;
> 
> -- 
> Chris Howie
> http://www.chrishowie.com
> http://en.wikipedia.org/wiki/User:Crazycomputers
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Gtk.Button%3A-resize-internal-padding-tp24166514p24183
723.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.

_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20090624/e6edef88/attachment.html 


More information about the Gtk-sharp-list mailing list