Antonio Linares wrote:We use AMD 64 bits (3400+) and it works excellent with FWH, etc.
Do you have a demo of your app we may download to test it ?
Hello Antonio ! Sorry , but I can't to do demo . Of course , my mdichilds are related to my others functions . At first , in most of them I use browse ( Hernan's ) and then user close window , application is saving columns sizes and places of this browse for this user and windows coords . I have one a big class for my needs , where I'm openning mdichilds and browses , folders and browses in folders . My source of standard windows bValid looks that:
- Code: Select all Expand view RUN
::oWnd:bValid := { || ( ::End(), .t. ) }
METHOD End() CLASS TMyBasic
local cCrg := ::cCargo
local n := m := z := 0
local oWnd
local lRest := .f.
local aCols := {}
if ::bEnd !=NIL // own bEnd codeblock if it's needful to do something before
eval( ::bEnd )
endif
if ::oWnd != NIL
if ::lEnv
if wind_save( ::cCargo, ::oWnd ) // saving windows coords
for n := 1 to len( ::aBrwID ) // array of browse objects
aCols := {}
for m := 1 to len( ::aHdrs[ n ] )
z := ascan( ::aHdrs[ n ], ::aColHdr[ n ][ m ] )
aadd( aCols, { m, z } )
next
wbrw_save( ::cCargo, ::aBrwID[ n ], ::oBrw[ n ], aCols ) // saving columns places and sizes for browse and user
if ::aOrdCnd[ n ] # NIL .and. ::aOrdCnd[ n, 1 ]
::BrwOrdRem( n ) // removing temporary index filess
endif
next
endif
endif
if IsZoomed( ::oWnd:hWnd ) == .t. .and. ::lFld
lRest := .t.
::oWnd:Hide()
::oWnd:Restore()
endif
::LstFcs()
else
MsgInf( "Can't detec window !", 2 )
endif
if ::bEndPst !=NIL
eval( ::bEndPst )
endif
::lEnd := .t.
oApp:OpWd( cCrg,, 2 ) // removing mdi child object from object repository .
if ::nWd == 1 // if i's mdichild ( it can be also dialog )
do while PostMessage( ::oWnd:hWnd, WM_CLOSE ) # 1
enddo
endif
Self := NIL
if lRest .and. len( wndMain():oWndClient:aWnd ) > 0
wndMain():oWndClient:PrevWindow()
wndMain():oWndClient:GetActive():Maximize()
endif
return( NIL )
I can send to you the full source of and some data . So you can build appl. in your PC . Is that way fit to you ? It take about 1.5 Mb of zip .
With best regards ! Rimantas .
Rimantas U.