mail-archives/gtk-sharp-list/attachments/20090624/e6edef88/attachment-0001.html

5 строки
3.9 KiB
HTML

<tt>
&lt;font&nbsp;style=&quot;font-family:&nbsp;Arial,&nbsp;Helvetica,&nbsp;sans-serif;&nbsp;font-size:&nbsp;10pt&quot;&gt;I'm&nbsp;sorry&nbsp;to&nbsp;say&nbsp;I&nbsp;have&nbsp;never&nbsp;been&nbsp;able&nbsp;to&nbsp;completly&nbsp;get&nbsp;rid&nbsp;of&nbsp;the&nbsp;button&nbsp;border&nbsp;no&nbsp;matter&nbsp;what&nbsp;I&nbsp;tried.&nbsp;I&nbsp;would&nbsp;suggest&nbsp;creating&nbsp;a&nbsp;custom&amp;nbsp;widget&amp;nbsp;inherited&nbsp;from&nbsp;Gtk.DrawingArea&nbsp;add&nbsp;your&nbsp;image&nbsp;on&nbsp;the&nbsp;onexpose&nbsp;event&nbsp;and&nbsp;override&nbsp;the&nbsp;button&nbsp;click&nbsp;event.&nbsp;This&nbsp;would&nbsp;give&nbsp;you&nbsp;a&nbsp;much&nbsp;greater&nbsp;control&nbsp;over&nbsp;the&nbsp;size&nbsp;of&nbsp;the&nbsp;widget.&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I'm&nbsp;trying&nbsp;to&nbsp;remember&nbsp;this&nbsp;from&nbsp;memory&nbsp;but&nbsp;if&nbsp;you&nbsp;would&nbsp;like&nbsp;me&nbsp;to&nbsp;try&nbsp;to&nbsp;explain&nbsp;it&nbsp;further&nbsp;I'll&nbsp;see&nbsp;if&nbsp;I&nbsp;can&nbsp;find&nbsp;an&nbsp;example.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;SpoodyGoon&lt;br&gt;&lt;br&gt;&lt;font&nbsp;size=&quot;2&quot;&nbsp;face=&quot;Tahoma,&nbsp;Arial,&nbsp;Sans-Serif&quot;&gt;&lt;hr&nbsp;size=&quot;2&quot;&nbsp;width=&quot;100%&quot;&nbsp;align=&quot;center&quot;&gt;&lt;strong&gt;From&lt;/strong&gt;:&nbsp;&quot;alessiofachechi&quot;&nbsp;&amp;lt;alessio.fachechi@gmail.com&amp;gt;&lt;br&gt;&lt;strong&gt;Sent&lt;/strong&gt;:&nbsp;Wednesday,&nbsp;June&nbsp;24,&nbsp;2009&nbsp;8:21&nbsp;AM&lt;br&gt;&lt;strong&gt;To&lt;/strong&gt;:&nbsp;gtk-sharp-list@lists.ximian.com&lt;br&gt;&lt;strong&gt;Subject&lt;/strong&gt;:&nbsp;Re:&nbsp;[Gtk-sharp-list]&nbsp;Gtk.Button:&nbsp;resize&nbsp;internal&nbsp;padding&lt;/font&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;No&nbsp;Chris..&nbsp;I&nbsp;tried&nbsp;that&nbsp;property&nbsp;but&nbsp;it&nbsp;didn't&nbsp;worked..&nbsp;&amp;gt;-(&lt;br&gt;&lt;br&gt;&lt;br&gt;Chris&nbsp;Howie&nbsp;wrote:&lt;br&gt;&amp;gt;&nbsp;&lt;br&gt;&amp;gt;&nbsp;On&nbsp;Tue,&nbsp;Jun&nbsp;23,&nbsp;2009&nbsp;at&nbsp;9:53&nbsp;AM,&lt;br&gt;&amp;gt;&nbsp;alessiofachechi&lt;alessio.fachechi@gmail.com&gt;&nbsp;wrote:&lt;br&gt;&amp;gt;&amp;gt;&nbsp;Hi,&nbsp;I'm&nbsp;creating&nbsp;a&nbsp;notebook&nbsp;widget&nbsp;with&nbsp;custom&nbsp;tab&nbsp;in&nbsp;which&nbsp;there&nbsp;is&nbsp;a&lt;br&gt;&amp;gt;&amp;gt;&nbsp;close&lt;br&gt;&amp;gt;&amp;gt;&nbsp;button.&nbsp;The&nbsp;problem&nbsp;is&nbsp;that&nbsp;there&nbsp;is&nbsp;a&nbsp;padding&nbsp;between&nbsp;button&nbsp;border&nbsp;and&lt;br&gt;&amp;gt;&amp;gt;&nbsp;the&lt;br&gt;&amp;gt;&amp;gt;&nbsp;contained&nbsp;icon&nbsp;image.&nbsp;How&nbsp;can&nbsp;I&nbsp;set&nbsp;it?&nbsp;This&nbsp;is&nbsp;my&nbsp;code:&lt;br&gt;&amp;gt;&nbsp;&lt;br&gt;&amp;gt;&nbsp;Try&nbsp;CloseButton.BorderWidth&nbsp;=&nbsp;0;&lt;br&gt;&amp;gt;&nbsp;&lt;br&gt;&amp;gt;&nbsp;--&nbsp;&lt;br&gt;&amp;gt;&nbsp;Chris&nbsp;Howie&lt;br&gt;&amp;gt;&nbsp;http://www.chrishowie.com&lt;br&gt;&amp;gt;&nbsp;http://en.wikipedia.org/wiki/User:Crazycomputers&lt;br&gt;&amp;gt;&nbsp;_______________________________________________&lt;br&gt;&amp;gt;&nbsp;Gtk-sharp-list&nbsp;maillist&nbsp;&nbsp;-&nbsp;&nbsp;Gtk-sharp-list@lists.ximian.com&lt;br&gt;&amp;gt;&nbsp;http://lists.ximian.com/mailman/listinfo/gtk-sharp-list&lt;br&gt;&amp;gt;&nbsp;&lt;br&gt;&amp;gt;&nbsp;&lt;br&gt;&lt;br&gt;--&nbsp;&lt;br&gt;View&nbsp;this&nbsp;message&nbsp;in&nbsp;context:&nbsp;http://www.nabble.com/Gtk.Button%3A-resize-internal-padding-tp24166514p24183723.html&lt;br&gt;Sent&nbsp;from&nbsp;the&nbsp;Mono&nbsp;-&nbsp;Gtk#&nbsp;mailing&nbsp;list&nbsp;archive&nbsp;at&nbsp;Nabble.com.&lt;br&gt;&lt;br&gt;_______________________________________________&lt;br&gt;Gtk-sharp-list&nbsp;maillist&nbsp;&nbsp;-&nbsp;&nbsp;Gtk-sharp-list@lists.ximian.com&lt;br&gt;http://lists.ximian.com/mailman/listinfo/gtk-sharp-list&lt;br&gt;&lt;br&gt;&lt;/alessio.fachechi@gmail.com&gt;&lt;/div&gt;&lt;/font&gt;<br>
</tt>