Microsoft KB Archive/130130

= How to Customize Class Icons =

Article ID: 130130

Article Last Modified on 2/9/2000

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition

-



This article was previously published under Q130130



SUMMARY
When making your own classes that will be stored in a .VCX file, you can can also use your own bitmaps to identify your class object on a toolbar. This article shows you how.



Step-by-Step Example
The following steps show you how to change the bitmap that a class object uses on the toolbar.

 From the file Menu, choose New File, and then select Class. Enter a Class Name, such as MyCommandButton, and base it on the CommandButton class. Enter mylib in the Store In section, and Click OK. From the Class menu, choose Class Info, and complete these steps:

 On the Class Tab, click the button with three dots on it next to the Toolbar icon. Go to the SAMPLES\MAINSAMP\BITMAPS Directory, and select SAVE.BMP. From the File menu, choose Save.</li></ol> </li> Close the Class Designer.</li> From the File menu, choose New File, and then select Form.</li> In the Forms Controls toolbar, click the View Classes icon, and choose Add.</li> In the Open Dialogue box, select MYLIB.VCX.</li></ol>

The Form Control toolbar now shows you the control inside the MYLIB.VCX file. The Control for MyCommandButton will have the SAVE.BMP on it. To choose between standard or custom controls on the Form Control toolbar, click the View Classes button and choose the controls you want.

Additional query words: VFoxWin

Keywords: KB130130

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.