Outline Transparent in 3D Command Button when Outline=False

ID Number: Q82160

1.00

WINDOWS

buglist1.00

Summary:

If you set the Outline property of a 3D Command Button custom control

to False, the outline will be transparent. Unless the 3D Command

Button control has the focus, it does not receive all the necessary

paint events (such as when the form is minimized then maximized), and

thus is not painted correctly. Whatever is behind the form containing

the 3D Command Button control (usually the Windows desktop) may show

through the one pixel area where the outline would normally be when

the outline of the control becomes transparent.

Microsoft has confirmed this to be a problem with the 3D Command

Button custom control provided with Microsoft Professional Toolkit for

Microsoft Visual Basic programming system version 1.0 for Windows. We

are researching this problem and will post new information here as it

becomes available.

More Information:

Steps to Reproduce Problem

--------------------------

1. Run Visual Basic, or from the File menu, choose New Project (ALT,

F, N) if Visual Basic is already running. Form1 is created by

default.

2. From the File menu, choose Add File. In the Files box, select the

THREED.VBX custom control file. The 3D Command Button tool appears

in the toolbox.

3. Add a 3D Command Button control (Command3D1) to Form1.

4. Add another 3D Command Button control (Command3D2) in a different

location.

5. Set the Outline property to False for both controls.

6. Minimize Form1.

7. Maximize Form1.

Note that the control without the focus has a transparent outline

until you select the control and it receives focus.

8. Press F5 to run the program.

9. Minimize, then maximize Form1. This produces the same results.

Additional reference words: 1.00