Microsoft KB Archive/95003

{|
 * width="100%"|

PRB: Apply Default Does Not Change Height or Width of Labels
'Article ID: Q95003

Creation Date: 28-JAN-1993

Revision Date: 19-SEP-1996' The information in this article applies to:


 * Microsoft Access versions 1.0, 1.1, 2.0

SYMPTOMS

Novice: Requires knowledge of the user interface on single-user computers.

An existing label control's Height and Width property settings are not affected when you select the control in the Form or Report window's Design view and then choose Apply Default from the Format menu. Instead, the size of the label adjusts to fit the text in that control.

STATUS

This behavior is by design. The default height and width only affects the size of a box created for a new label. Labels that already contain text are not affected.

MORE INFORMATION

When you are creating a new report or form or modifying an existing one, you can change the default properties for any type of control. Default properties are the ones that determine the general appearance and behavior of a control.

To display the default properties for a particular control type in a form or report, switch to Design view and display the toolbox and property sheet. To display the toolbox, choose Toolbox from the View menu. To display the property sheet, click the Properties button on the toolbar, or choose Properties from the View menu. Select any tool in the toolbox to see the default properties for that type of control.

Once you change the default properties for a particular control type, you can choose Apply Default from the Format menu to apply the new defaults to existing controls of that type on a form or report. For most control types, all properties listed in the default property box will be applied to the selected control. However, for Label controls, the Width and Height settings are not reset to match the defaults. Instead, the size of the label adjusts to fit the existing text in that control.

Steps to Reproduce Behavior:

 Create a new form. Add a label to the form and type in the text &quot;Label 1&quot; (without the quotation marks.) Display the property sheet and the toolbox. Select the label control on the toolbox.  Enter the following properties for the default label: Width: 1 in     Height: 1 in      BackColor: 255  Add another label and type in the text &quot;Label 1&quot; (without the quotation marks.) Select the label that you created in step 2 and choose Apply Default from the Format menu. Note that the BackColor of Label 1 is set to Red, but the height and width do not change. Select the label that you created in step 6 and choose Apply Default from the Format menu. Note that the height and width of Label 2 shrinks to fit the number of characters that you typed in.</li></ol>

REFERENCES

Microsoft Access &quot;User's Guide,&quot; version 1.0, Chapter 12, &quot;Using Special Design Effects on Forms and Reports,&quot; page 312, and Chapter 18, &quot;Designing Reports,&quot; page 430

For more information, search for &quot;default properties,&quot; and then &quot;Changing Default Property Settings for Controls&quot; using the Microsoft Access Help menu.

For more information, search for &quot;label properties,&quot; and then &quot;Label Control Properties&quot; using the Microsoft Access Help menu.
 * }

-

"THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED &quot;AS IS&quot; WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY." '' ©1997 Microsoft Corporation. All rights reserved. Legal Notices.

''

Additional reference words: 1.00 1.10 2.00

KBCategory: kbusage

KBSubcategory: FmsHowto