FXRuby always on top

Does anyone know how to keep an FXRuby main window the topmost window in the
stacking order.
I’m running Ruby 1.68 on Windows XP pro.

Here’s a little code that I’m trying to get to work to keep the Main window
always on top. This program will actually stay on top when it is first
started. However, as soon as the application recieves focus, (say by
clicking on it with the mouse, the behavior stops. i.e., it no longer stays
on top.

require 'fox’
include Fox
class TestWindow < FXMainWindow
def initialize(app)
super(app, “Test Window”, nil, nil, DECOR_ALL, 0, 0, 512, 300)
@contents = FXHorizontalFrame.new(self,
LAYOUT_SIDE_TOP|LAYOUT_FILL_X|LAYOUT_FILL_Y, 0, 0, 0, 0, 0, 0, 0, 0)

  # the following proc should keep the window on top

  @contents.connect(SEL_UPDATE) do |sender, sel, event|
           self.raise()  #self is the main window
   end

      @canvas = FXCanvas.new(@contents, nil, 0,

(FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_TOP|LAYOUT_LEFT))
end

def create
super
show(PLACEMENT_SCREEN)
end
end

application = FXApp.new(‘TopTest’, ‘FoxTest’)
test = TestWindow.new(application)
application.create
application.run