On Wed, Dec 16, 2009 at 10:50 PM, djlewis <djlewis / triadic.com> wrote:

> I have a ruby app on Windows, with an FxRuby UI that opens up Excel
> using Win32OLE. =A0The Excel window obscures the UI at one point. =A0How
> can I programmatically send the Excel window to the back and/or bring
> the FxRuby UI to the front. I know I can just not display the the
> Excel window at all, but I'd like to leave it open, just behind the
> UI, as if the user clicked on the ruby app's tray icon (which they can
> always do manually, if necessary).

See if calling raiseWindow() on your FXRuby app's main window brings
it to the front.