When the tab sheet is selected, you can see that its Name in the Properties window starts with TabCtlX. If you select the tab sheet and move it, the tab pages on it would move also. If you delete the tab sheet, its tab pages would be deleted also. For this reason, the tab sheet is considered their parent. As mentioned already, the tab pages you use are actually positioned on a tab sheet. Each tab page is considered on its own and its only relationship with the other tabs is that they belong to the same sheet. Based on this, each tab can be accessed separately. To manipulate the properties of a tab page, you should select it first. To do that, click its label (not necessarily its body). By default, after adding a new tab control to a form, it is equipped with two tab pages. To add a new tab, you can right-click one of the tabs or the area of the tab sheet and click Insert Page: ![]() To remove a tab page, you can click its tab and press Delete. Alternatively, you can right-click a tab and click Delete Page.
We stated that a tab control (property page) acts as a parent for other controls positioned on it. Based on its role, it should indicate its role. This is specified by a tab, which displays a caption. Therefore, after adding a tab control, one of the first actions you probably should take is to specify its role. This is specified by changing the value of its Caption in the Properties window.
After typing a string for the Caption of a tab, its width is adjusted to accommodate its string. This is done for each tab. Consequently, one tab with a Personal caption and another tab with Educational Experience as caption, would have different widths: ![]() Alternatively, you can give the same width to all tabs regardless of their different lengths of strings. To give the same width to the tabs, in the Format tab of the Properties window of the tab control (the tab sheet itself), change the value of the Tab Fixed Width property. The default value of 0" means that you let Microsoft Access determine the necessary width to contain the label on the tab. You can then change the value as you wish. Here is an example where all tabs share the same width after the tab control's Tab Fixed Width property has been set (to 1.65"): ![]()
In the same way, the Tab Fixed Height property can be used to control the height of the tabs or buttons.
You can display either or both a picture and a label on the tab. Although the picture can be any size, you should limit it to 16x16 pixels. Here are examples: ![]() To add a picture to the button, select the tab while in the Design View. In the Properties window, click the Picture property and click its ellipsis button. Locate and select a picture. It should be a bitmap (with bmp extension) or an icon (with ico extension). If you had specified a picture on a tab but don't want the picture anymore, access the Properties window for that tab. In the Format or the All tab, click Picture to select (Image) and press Delete.
By default, tab pages display their labels on a tab. If you don't like the tabs, you can use either a button or nothing. This characteristic is controlled by the Style property in the Properties window of the tab sheet. This property has three values: Tabs, which is the default, Buttons, and None: ![]() Like the Tabs value, the Buttons property allows each tab page to display a label that indicates its role. You can display a button with or without a picture: ![]() If you set the Style property to None, the tab sheet would appear as a simple rectangular box and the user would not be able to change the pages: ![]() Therefore, if you decide to use this option, unless you want to hide the other pages, make sure you provide the user with the means of switching to a different property page. Based on the role of the tab sheet, some properties of the tab sheet are also imposed on the tab pages. For example, in the Properties window, if you change the value of the Top or the Left properties, the tab sheet moves and at the same time, the corresponding values of the tab pages are changed.
By defulat, the tabs of a tab control appear as rectangular objects. Microsoft Access allows you to change their shapes. To do this, select the table control on the form in Design View. On the Ribbon, click Format. In the Control Formatting section, click Change Shape and click one of the options: ![]() Here is an example: ![]()
Databases are made of various objects and it is not unusual for one of these objects to contain various fields. If you try to create a form for such an object, you may encounter a space problem. Even if you decide to reduce the amount of information on a table, because you still need to follow your customer’s goal, you may not have this complete liberty. Therefore, instead of deleting necessary fields, you can use one of the various alternatives offered by Microsoft Access. When logistic becomes a problem for the amount of information you need to include on a form, you can divide the form into sections and allow the user to access only one section at a time, although still remaining in the same form. This is made possible by a special control called the page break.
To create sections on a form, in the Controls section of the Design tab of the Ribbon, click the Page Break ![]() To create the sections on a form, isolate different groups of controls. The groups should have the same height. After creating the page break(s), you should reduce the height of the form to the regular size you would like it to display to the user.
|
Tuesday, June 11, 2013
Other Windows Controls
Related Posts
Subscribe to:
Post Comments (Atom)
EmoticonEmoticon