Hi Gimmy;
I think that I see your dilemma better now that I have dome some more testing. Over the Christmas holidays I created three new functions in the Controller master Window. They are: of_get_docked_windows, of_get_document_windows and of_get_tabgroup_windows. These new methods return you an array of windows that were opened in those contexts. This functionality is not implemented in PB - just in my framework as an extension to the Window Manager feature that has been in the framework since (like forever - LOL).
Doing some experimentation last night to carry this feature further, I think that I can tweak the Controller Window to return the "active" sheet in each of the above categories. I just need to extend the Window Manager a little more to track which Window is currently the active one. Then I could give you something like an of_get_active_sheet replacement method that would return to you the active sheet no matter whether it was in a Sheet (MDI Child), TabGroup, Document or Docked open managed state by the MDIDock window.
PM me directly if you would like to experiment further with this direction. I am now having the same issues in my example OrderEntry App when drilling down to the active sheet within a particular grouping. Which I assume, is what you would like to be able to do as well.
Regards ... Chris
Thanks for replay
Yes, with your replay i see the sun.
i'll contact you for the detail of test.
=)
Gimmy