Kbase P85921: How buttons work with 3D Image behavior
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  16/10/2008 |
|
Status: Unverified
GOAL:
How buttons work with 3D Image behavior
GOAL:
In the following example code, New Button 1 does not have a 3-D effect whilst the second button does. The only difference between the two buttons is that New Button 2 does not have a down image so why the difference in 3-D effect?
CAUSE:
This is expected behavior. If a button has only an up-image, Progress draws the 3D edge for the button. The up-image is also used as the down-image, shifted by a pixel, and Progress draws the 3D effects to make the button appear to be depressed. This is why the top button appears as 3D.
If the button has both an up-image and a down-image (like 'New Button 1', the button lower on the frame), the images themselves must have the 3D edge if that is what is desired. The responsibility for providing the 3D effects in this case is left up to the programmer, to provide more flexibility. In the case of propath.bmp there is no edge so the button appears flat. This is why this button appears flat.
FIX:
Ensure the correct technique is chosen based on the images to be used on the button