Adding a Button Bar, a Ruler Bar and a Status Bar

The Button Bar, Ruler and Status Bar are used in a special way in this sample program. If you run the program and click on various fields you will notice that the tools automatically switch to the text field which has been clicked on. This switching is done internally by Text Control, so no programming is required for it. Each control is simply connected to the status bar, etc. when it's created.