This is the "easy" part. Decompilers can extract the exact positions of buttons, labels, and panels.
Knowing this will help me recommend the specific you need! borland delphi 7 decompiler
You can see which procedure is called when a user clicks a specific button. This is the "easy" part