José Luis,
Add this new DATA in Class TAlbum:
DATA lExit INIT .F.
and modify this method this way:
Add this new DATA in Class TAlbum:
DATA lExit INIT .F.
and modify this method this way:
METHOD Activate() CLASS TAlbum
::CreateWindow()
::CreateControls()
::SetVScroll()
::oWnd:bResized := { |t,w,h| ::Resize( t, w, h ) }
if ::oWnd:IsKindOf( "MDICHILD" )
ACTIVATE WINDOW ::oWnd VALID ::lExit := .T.
else
ACTIVATE WINDOW ::oWnd CENTERED VALID ::lExit := .T.
endif
StopUntil( { || ::lExit } )
return Self