Prima::MDI how to get reference to active child window

From: David Christensen <dpchrist_at_holgerdanske.com>
Date: Tue, 15 Apr 2008 21:34:45 -0700
To: <prima_at_BSD-Dk.dk>

Dmitry Karasik wrote:
> There is no such thing as active window for MDIs. Technically, active
> window is a window that either itself, or one of its children has the
> focus. However, when the main MDI container window doesn't have the
> focus itself, the meaning of active MDI window is lost.

Thank you for you reply, and the explanation. :-)

> You can try "currentWidget" property instead, that points to the
> immediate child that either has the focus now, or will have it when
> the parent becomes focused. Note that this property won't necessarly
> point to an MDI window.
> Another approach would be to write a function that traverses Z-order,
> getting to the topmost MDI window. See in MDI.pm, on_translateaccel,
> lines 774-778, how searching for the next or previous MDI window in
> the window stack is implemented.

Ouch. I'd like use Prima, rather than be faced with extending it after
only scratching the surface.

Is there a feature wish list for Prima? Can I request a function
"currentMDI"?

David
Received on Wed 16 Apr 2008 - 06:34:52 CEST

This archive was generated by hypermail 2.2.0 : Sat 19 Mar 2011 - 18:35:06 CET