How to Create Raised or Recessed Buttons

Last reviewed: April 29, 1996
Article ID: Q107609
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5, 2.5a, and 2.5b

SUMMARY

In the FoxPro for Windows sample applications (for example, CLIENT.APP in the FOXPROW\SAMPLE\ORGANIZE directory), the push buttons appear to be raised or recessed. To create these buttons, follow the procedure described below.

NOTE: These buttons can be created only in FoxPro for Windows.

MORE INFORMATION

The buttons appear to be raised or recessed because they are surrounded by boxes in which the top and bottom and left and right sides of the box are in contrasting colors. The best colors for making a box have a raised or recessed look are white and dark gray with a light gray background.

To create a raised or recessed box:

  1. Open a screen in FoxPro for Windows.

  2. From the Screen menu, choose Layout. Choose the Color button and select light gray. Click OK twice.

  3. In the toolbox, select the Line tool.

  4. Draw a box on the screen using four lines.

  5. Click the top side of the box. From the Object menu, choose Pen Color, and select white to create a raised box or dark gray to create a recessed box.

  6. Click the left side of the box and follow the same procedure as above, choosing the same color.

  7. Click the right side of the box and follow the same procedure as above but choose the color (white or dark gray) opposite to the one used for the left and top sides.

  8. Do the same for the bottom side, making it the same color as the right side.

The box will now appear to be raised if the top and left sides are white and the bottom and right sides are dark gray. If the colors of the sides are reversed, the box will appear to be recessed.

To make the box appear raised or recessed to a greater or lesser degree, choose Pen from the Object menu and change the thickness of the lines.


Additional reference words: FoxWin 2.50 2.50a 2.50b shadow 3D
KBCategory: kbprg
KBSubcategory: FxtoolGeneral


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" 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.

Last reviewed: April 29, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.