try this:<br><br>:opts=>FRAME_LINE | BUTTON_TOOLBAR<br><br><div class="gmail_quote">On Mon, Oct 27, 2008 at 10:53 AM, William Blum <span dir="ltr"><<a href="mailto:wblum@pacbell.net">wblum@pacbell.net</a>></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'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 "causes the edge of the button to be raised when the cursor<br>
moves over it." What I'm getting is buttons without any frame, but they do<br>
not change appearance when the cursor moves over them. I'm running Ruby<br>
1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] on Microsoft Windows Vista<br>
[Version 6.0.6001]. Here's my code:<br>
<br>
require 'fox16'<br>
include Fox<br>
<br>
class MainWindow < FXMainWindow<br>
def initialize(app)<br>
super(app, "Toolbar Example",<br>
:width => 485, :height => 300)<br>
tool_bar_shell = FXToolBarShell.new(self)<br>
top_dock_site = FXDockSite.new(self,<br>
:opts => LAYOUT_FILL_X|LAYOUT_SIDE_TOP)<br>
tool_bar = FXToolBar.new(top_dock_site, tool_bar_shell,<br>
:opts => PACK_UNIFORM_WIDTH|FRAME_RAISED|LAYOUT_FILL_X)<br>
new_button = FXButton.new(tool_bar,<br>
"New File", :opts => BUTTON_TOOLBAR)<br>
open_button = FXButton.new(tool_bar,<br>
"Open File", :opts => BUTTON_TOOLBAR)<br>
end<br>
<br>
def create<br>
super<br>
show(PLACEMENT_SCREEN)<br>
end<br>
end<br>
<br>
if __FILE__ == $0<br>
FXApp.new do |app|<br>
MainWindow.new(app)<br>
app.create<br>
app.run<br>
end<br>
end<br>
<br>
Doesn't work on Vista? I'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>