![]() Listing 17.4 is the form you saw yesterday that displays the current date and time (seeįigure 17.4). When selected, these usually list a set of submenu items for At a minimum, there is generally aįile or a Help menu item. Windowed applications include a menu of some sort. Or, you can do a lot more.Ĭontrols are one way to make your forms functional. ![]() You can add logic to your form to make sure that a selection was made. You can create events to determine when a selection has changed or when the user has left the control. For the lboxAge box, the control is big enough, so no vertical scrollbar is needed.Įverything else about a list box is similar to the other controls. Because the items don’t fit in the size of the control, vertical scroll arrows are automatically added to the control. The lboxSex control can display only one option at a time because of its smaller vertical size. You can see the results of this on the displayed form (refer to Figure 17.3). For the lboxAge, the size was set to 100×60 (in Line 67). For the lboxSex control, the size was set to 100×20 (in Line 54). The second difference is in the size of the control. This determines which item is to be initially selected in the list box.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |