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

[XaraXtreme-dev] Active view problem



Alex,

I've just been looking into that problem where the cursor and status line flash back to "there's nothing under the pointer" values when two documents are open and you use the tabs to switch between them...

The previous thought was that the DocView::Selected was not being set properly but I've just found that that's not the problem. The problem is that DialogManager::GetWindowUnderPointer is returning a pointer to the same view window before and after clicking on the view tab. (That means wxChildWindowFromPoint is returning the wrong window pointer.)

It may be returning a pointer to the "topmost" view in the list of views.

Clearly when you click on the window this bad state gets cleared so there's probably something we can do in OnActivateView to overcome this. I'm investigating...

Phil