Salesforce

How Do I Make a Control Transparent? (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

How Do I Make a Control Transparent? (Magic xpa 4.x)

Usually, the background color of a control is opaque, or else it is a 3-D color inherited from Windows. There are circumstances though, where you will want the background color to be transparent, as in this case, where we want the background image to show through.

The first Text control, “My Vacation” is a 2D Text control with a white background. The second two both have transparent backgrounds, and different color foreground texts.

How do we do this? Basically all we do is select a color for the control which has a transparent background color. Below we will show you how to do that.

Setting a transparent color

  1. Go to Options->Settings->Colors.

  2. Click on the color you want to change, or press F4 at the end of the color table to create a new color.

  3. Zoom on the foreground or background color.

  4. Set the system color to blank. You do this by selecting the empty line at the top of the drop-down list.

  5. Check the Transparent box.

  6. Click OK.

  7. When you get back to the color list, you can set the foreground color the same way, except do not check the Transparent box. Instead, select the color you want the text to be (black or white, usually).

  8. Click OK to exit the Application Colors dialog box.

Now, whenever you use this color on a 2D control, the background will be transparent.

See also

How Do I Make a Control Semi-Transparent?

The Online and Rich Client Samples projects (program TS26 and RTS26)

Reference
Attachment 
Attachment