main/fpicker/source/office/iodlg.cxx
//-----------------------------------------------------------------------------
// move the control with the given offset
move the control with the given offset
move the control with the given offset
void lcl_MoveControl( Control* _pControl, sal_Int32 _nDeltaX, sal_Int32 _nDeltaY, sal_Int32* _pMaxY = NULL )
	{
		if ( _pControl )
		{
			Point aNewPos = _pControl->GetPosPixel();
			aNewPos.Y() += _nDeltaY;
			if ( _pMaxY && ( aNewPos.Y() > *_pMaxY ) )
				*_pMaxY = aNewPos.Y();
			aNewPos.X() += _nDeltaX;
			_pControl->SetPosPixel( aNewPos );
		}
	}
void lcl_MoveControl ( Control * _pControl , sal_Int32 _nDeltaX , sal_Int32 _nDeltaY , sal_Int32 * _pMaxY = NULL ) { if ( _pControl ) { Point aNewPos = _pControl -> GetPosPixel ( ) ; aNewPos . Y ( ) += _nDeltaY ; if ( _pMaxY && ( aNewPos . Y ( ) > * _pMaxY ) ) * _pMaxY = aNewPos . Y ( ) ; aNewPos . X ( ) += _nDeltaX ; _pControl -> SetPosPixel ( aNewPos ) ; } }
move the control with the given offset
move the control with the given offset
// adjust the vertical position // adjust the horizontal position