KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: How to produce transparent rectangles
PRODUCT: 4D | VERSION: | PLATFORM: Mac & Win
Published On: February 7, 2003

Compatibility: Version 6.7.x and 6.8.x

Although the example illustrated here covers rectangles, this tech tip also applies to ovals and matrices.

To create a transparent rectangle:


  1. While designing a form, make sure the tools palette is visible.
  2. Click on the rectangle tool.
  3. Create a rectangle on the form.
  4. Open the property list.
  5. Make sure the rectangle is selected.
  6. In the property list, Expand the "Appearance" item.
  7. Click on "Fill Pattern".
  8. Select "N".

As you can see below, on Windows XP when the rectangle is placed on the default background the transparency attribute makes no difference. However, on Mac OS X, a rectangle that is not set to be transparent will hide the striped pattern of the background, as shown below:



This is one of the many reasons why we always recommend testing your application and interface on the platform on which it will be used.