I've done commit 655 about use of "__cActiveWindow", THISWINDOW, THIS.
Now we also have "s_oTopParent" (it's hmgapp), this object have its QtObject( it's Desktop() ).
To have compatibility with HMG4 parent system I must add something in hmgapp.
I compile and check "samples/window.main/demo3.prg". I think work fine.
This is changelog
Best regards2011-07-03 15:00 UTC+0100 Luigi Ferraris ( <luigi at l3w.it> )
! check and fixed source code
! fixed THISWINDOW in according with current usage
! fixed THIS in according with current usage
! Fixed a little problem within focusedcontrol caused by previous commit
* when create a new window without parent and it's not a child,
his parent now it's "s_oTopParent"
- removed "__cActiveWindow"
+ add "oQtObject", "aControls" data var to have compatibility with HMG parent system
+ add AddData() method to have compatibility with HMG parent system
* activate use of "s_oTopParent" and "oQtObject"
+ CurrHmgWin() method to know current Hmg window
* add "s_oCurWindow", "s_oTopParent" shared vars