Microsoft KB Archive/255094
Article ID: 255094
Article Last Modified on 8/5/2004
- Microsoft Visual FoxPro 6.0 Professional Edition
This article was previously published under Q255094
Slidebar.exe is a sample that translates the Visual Basic code examples in the SliderBar control's Help file into Visual FoxPro code. This article provides an example of using the control in a Visual FoxPro form.
The following file is available for download from the Microsoft Download Center:
Release Date: Apr-12-2000
For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:
119591 How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file. These forms demonstrate how to use the SliderBar ActiveX control. The code examples provided in the SliderBar Help file are written in Visual Basic. These forms translate the Visual Basic code into Visual FoxPro code. The essential functionality of the original examples has not changed, but some additional code was added to more clearly demonstrate certain functionality.
To see the example, do the following:
- Download and unzip the Slidebar.exe
- Run the Slidebar1.scx form.
- Click on the form to change the orientation of the sliderbar. This calls the Orientation method of the SliderBar object.
- Click on the slider bar and slide the pointer to the end of the control and notice the text box resizes when you release. Slide it back and the text box shrinks when you release. The text box does not shrink to less than one-third the size of the SliderBar control.
- Click the Do Sliderbar2 form command button.
- Hold down the Shift key while clicking on the pointer of the SliderBar control. Slide the pointer to the middle of the control and release. Notice the text boxes populate with the appropriate values.
- Hold down the Shift key while clicking on the pointer of the SliderBar control. Move the pointer out to the end of the control. Again, notice the text boxes populate with the appropriate values.
- Click the Do Sliderbar3 form button.
- Choose items from the combo box to change the TickStyle property.
- Hold down the Shift key while moving the SliderBar control to see the SelectRange demonstration.
- Move the SliderBar to see the GetNumTicks property demonstration.
- Press the Exit button to close the form.
Additional query words: Slidebar
Keywords: kbfile kbctrl KB255094