![]() In previous versions of the Windows operating system, or in XP and later versions that use the Classic visual style, the control that has the focus usually displays a dotted rectangle on its surface. For instance, the form shown in Figure 12-1 is designed to acquire the user's name, but instead of the more important text box, the Add button has the focus. When you add controls to the Designer Surface, the focus may be given to a control that doesn't need it at application startup. Only one control at a time can have the focus. When a control has focus, it can receive keyboard input. The ActiveControl property can be used to specify which control should have the focus. This part of the chapter deals with properties and events of the TForm class that enhance the quality of the user interface, either visually or practically. Delphi's TForm class is an extremely powerful class that encapsulates an enormous number of properties, methods, and events. Forms are the most important container controls in VCL Forms applications because they represent main or secondary application windows and contain all other controls like buttons, images, and menus.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |