add global variable revMessageBoxLastObject

implement new global variable revMessageBoxLastObject available within
the development environment
Merge branch 'bugfix-10836' into release-6.0.1