зеркало из https://github.com/mono/mail-archives.git
5 строки
3.9 KiB
HTML
5 строки
3.9 KiB
HTML
<tt>
|
|
<font style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt">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&nbsp;widget&nbsp;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.<div><br></div><div>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.</div><div><br></div><div>SpoodyGoon<br><br><font size="2" face="Tahoma, Arial, Sans-Serif"><hr size="2" width="100%" align="center"><strong>From</strong>: "alessiofachechi" &lt;alessio.fachechi@gmail.com&gt;<br><strong>Sent</strong>: Wednesday, June 24, 2009 8:21 AM<br><strong>To</strong>: gtk-sharp-list@lists.ximian.com<br><strong>Subject</strong>: Re: [Gtk-sharp-list] Gtk.Button: resize internal padding</font><br><br><br>No Chris.. I tried that property but it didn't worked.. &gt;-(<br><br><br>Chris Howie wrote:<br>&gt; <br>&gt; On Tue, Jun 23, 2009 at 9:53 AM,<br>&gt; alessiofachechi<alessio.fachechi@gmail.com> wrote:<br>&gt;&gt; Hi, I'm creating a notebook widget with custom tab in which there is a<br>&gt;&gt; close<br>&gt;&gt; button. The problem is that there is a padding between button border and<br>&gt;&gt; the<br>&gt;&gt; contained icon image. How can I set it? This is my code:<br>&gt; <br>&gt; Try CloseButton.BorderWidth = 0;<br>&gt; <br>&gt; -- <br>&gt; Chris Howie<br>&gt; http://www.chrishowie.com<br>&gt; http://en.wikipedia.org/wiki/User:Crazycomputers<br>&gt; _______________________________________________<br>&gt; Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com<br>&gt; http://lists.ximian.com/mailman/listinfo/gtk-sharp-list<br>&gt; <br>&gt; <br><br>-- <br>View this message in context: http://www.nabble.com/Gtk.Button%3A-resize-internal-padding-tp24166514p24183723.html<br>Sent from the Mono - Gtk# mailing list archive at Nabble.com.<br><br>_______________________________________________<br>Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com<br>http://lists.ximian.com/mailman/listinfo/gtk-sharp-list<br><br></alessio.fachechi@gmail.com></div></font><br>
|
|
|
|
</tt>
|