Forum: Ruby-Gnome 2 Window stacking order not changeable?

7e6cdf272a7177072fecd8e019bcf6f7?d=identicon&s=25 Chris Phoenix (chrisphoenix)
on 2014-04-30 09:22
I've got a bunch of non-modal windows that cause other windows to open -
sometimes via show(self) and sometimes via double-clicking in a
ListView.

The windows are stacked strangely - some of them open behind others.

More strangeness: When I click on a window, it does not come to the
front.

Yet more: For some windows, when I minimize and then restore, it does
come to the front; other windows don't.

Bonus strangeness: some windows can be individually minimized; some
windows take others with them when they are minimized.

Any thoughts on what could be causing any of this, or how to get control
of it?

Thanks,
Chris
0d130f179f85401f248e6ebc2ef8292f?d=identicon&s=25 Eric C. (eric_c)
on 2014-05-03 01:16
Refer to the example project child_window in visualruby.  That shows how
to open windows.

I'm guessing that you're calling the show() method twice in your code
because you're dealing with non-modal windows.


E
7e6cdf272a7177072fecd8e019bcf6f7?d=identicon&s=25 Chris Phoenix (chrisphoenix)
on 2014-05-03 03:18
No, actually I was passing in self to the show() method because that's
how it used to be done for non-modal windows. (Or something like that.)
Anyway, passing no parameters to show() fixed the problem.

Thanks!
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.