Excel and FxRuby windows

D

djlewis

I have a ruby app on Windows, with an FxRuby UI that opens up Excel
using Win32OLE. The Excel window obscures the UI at one point. How
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).

Thanks. --David.
 
L

Lyle Johnson

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.
 
D

David Lewis

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

That did it -- thanks! I was looking for that function in the rdoc but
did not know what it was called. Searching for "window" got too many
hits.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top