Venga, vamos a intentar solucionar esto ahora

Gracias!
Code: Select all
FUNCTION SetScrollBar()
LOCAL oVScroll
LOCAL nPageZugabe := 392
if !empty( oMainWnd:oWndClient:oVScroll )
oMainWnd:oWndClient:oVScroll:SetRange( 0, 100 )
//oMainWnd:oWndClient:oVScroll:SetRange( 0, nTotalHeight )
oMainWnd:oWndClient:oVScroll:bGoUp = {|| ScrollVertical( .T. ) }
oMainWnd:oWndClient:oVScroll:bGoDown = {|| ScrollVertical( , .T. ) }
oMainWnd:oWndClient:oVScroll:bPageUp = {|| ScrollVertical( ,, .T. ) }
oMainWnd:oWndClient:oVScroll:bPageDown = {|| ScrollVertical( ,,, .T. ) }
oMainWnd:oWndClient:oVScroll:bPos = {| nWert | ScrollVertical( ,,,, .T., nWert ) }
oMainWnd:oWndClient:oVScroll:nPgStep = nPageZugabe //392
oMainWnd:oWndClient:oVScroll:SetPos(0)
endif
if !empty( oMainWnd:oWndClient:oHScroll )
oMainWnd:oWndClient:oHScroll:SetRange( 0, 100 )
//oMainWnd:oWndClient:oHScroll:SetRange( 0, nTotalWidth )
oMainWnd:oWndClient:oHScroll:bGoUp = {|| ScrollHorizont( .T. ) }
oMainWnd:oWndClient:oHScroll:bGoDown = {|| ScrollHorizont( , .T. ) }
oMainWnd:oWndClient:oHScroll:bPageUp = {|| ScrollHorizont( ,, .T. ) }
oMainWnd:oWndClient:oHScroll:bPageDown = {|| ScrollHorizont( ,,, .T. ) }
oMainWnd:oWndClient:oHScroll:bPos = {| nWert | ScrollHorizont( ,,,, .T., nWert ) }
oMainWnd:oWndClient:oHScroll:nPgStep = 602
oMainWnd:oWndClient:oHScroll:SetPos(0)
endif
RETURN (.T.)