[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

[XaraXtreme-dev] Re: Focus handling and wxAUI (idea)


What precisely is it you need to know? I'm wondering if we can
do a workaround simply by looking at GetTopLevelWindow() and
noticing it's not the mainframe.

I'm assuming you need to know when you've lost focus to a newly
created bar, or a newly undocked bar.

Can you not hang off the focus changing message in the /view/
window, and see if the new focus has gone to something which
has a wxTopLevelWindow that is not your own? And if so,
set it back?

Whilst you could hang of the Panel's create event (in
dlgevt.cpp's event handler), this would only help when
bars or galleries are first created. You would not
know when they are undocked, as the panel is simply