try this:<br><br>:opts=&gt;FRAME_LINE | BUTTON_TOOLBAR<br><br><div class="gmail_quote">On Mon, Oct 27, 2008 at 10:53 AM, William Blum <span dir="ltr">&lt;<a href="mailto:wblum@pacbell.net">wblum@pacbell.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi, folks. I&#39;m trying to make a toolbar with buttons that change appearance<br>
when hovered over with the mouse. The docs on FXButton say that using<br>
BUTTON_TOOLBAR &quot;causes the edge of the button to be raised when the cursor<br>
moves over it.&quot; What I&#39;m getting is buttons without any frame, but they do<br>
not change appearance when the cursor moves over them. I&#39;m running Ruby<br>
1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] on Microsoft Windows Vista<br>
[Version 6.0.6001]. Here&#39;s my code:<br>
<br>
require &#39;fox16&#39;<br>
include Fox<br>
<br>
class MainWindow &lt; FXMainWindow<br>
 &nbsp;def initialize(app)<br>
 &nbsp; &nbsp;super(app, &quot;Toolbar Example&quot;,<br>
 &nbsp; &nbsp; &nbsp;:width =&gt; 485, :height =&gt; 300)<br>
 &nbsp; &nbsp;tool_bar_shell = FXToolBarShell.new(self)<br>
 &nbsp; &nbsp;top_dock_site = FXDockSite.new(self,<br>
 &nbsp; &nbsp; &nbsp;:opts =&gt; LAYOUT_FILL_X|LAYOUT_SIDE_TOP)<br>
 &nbsp; &nbsp;tool_bar = FXToolBar.new(top_dock_site, tool_bar_shell,<br>
 &nbsp; &nbsp; &nbsp;:opts =&gt; PACK_UNIFORM_WIDTH|FRAME_RAISED|LAYOUT_FILL_X)<br>
 &nbsp; &nbsp;new_button = FXButton.new(tool_bar,<br>
 &nbsp; &nbsp; &nbsp;&quot;New File&quot;, :opts =&gt; BUTTON_TOOLBAR)<br>
 &nbsp; &nbsp;open_button = FXButton.new(tool_bar,<br>
 &nbsp; &nbsp; &nbsp;&quot;Open File&quot;, :opts =&gt; BUTTON_TOOLBAR)<br>
 &nbsp;end<br>
<br>
 &nbsp;def create<br>
 &nbsp; &nbsp;super<br>
 &nbsp; &nbsp;show(PLACEMENT_SCREEN)<br>
 &nbsp;end<br>
end<br>
<br>
if __FILE__ == $0<br>
 &nbsp;FXApp.new do |app|<br>
 &nbsp; &nbsp;MainWindow.new(app)<br>
 &nbsp; &nbsp;app.create<br>
 &nbsp; &nbsp;app.run<br>
 &nbsp;end<br>
end<br>
<br>
Doesn&#39;t work on Vista? I&#39;m doing something wrong?<br>
<br>
_______________________________________________<br>
fxruby-users mailing list<br>
<a href="mailto:fxruby-users@rubyforge.org">fxruby-users@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/fxruby-users" target="_blank">http://rubyforge.org/mailman/listinfo/fxruby-users</a><br>
</blockquote></div><br>