make vba emulator wait until text is done drawing

Also, this fixes some bugs related to how button presses are handled.