How to Make a Day Date SpinnerID: Q136666 The information in this article applies to:
SUMMARYThe "Using Spinners" section in chapter 11 of the Visual FoxPro Developer's Guide gives the following incorrect information:
It is not possible to size a spinner so that only the buttons are visible.
The example in this article shows how to make a Day Date spinner and make
it appear to be a single control.
MORE INFORMATION1. Create a new class called DayDateSpin based on Container. 2. Store it in MyLib.vcx. 3. Set the following properties for the DayDateSpin container:
4. Add a text box to the container, and set these properties:
5. In the Init event procedure of the text box, add this code:
6. Add a spinner to the container and set these properties:
7. On the Format menu, click Send to Back
8. Add the following code to the spinner's DownClick event procedure:
9. Add the following code to the spinner's UpClick event procedure:
10. Save and close the class.
11. Create a new form. Then click the View Classes Icon on the Form 12. Pick the DayDateSpin class from the Form Controls toolbar, and place it
13. Save and run the form. Click the up arrow or down arrow to see the day
REFERENCESFor more infromation about creating classes and working with Visual FoxPro controls, please see chapters 10 and 11 in the Developer's Guide. Additional reference words: 3.00 VFoxWin KBCategory: kbui kbprg kbcode kbdocerr KBSubcategory: FxprgGeneral |
Last Reviewed: September 14, 1995 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |