How to Create Hot Spots on Top of a Picture in a FormID: Q133287 The information in this article applies to:
SUMMARYThis article shows by example how programmers can use Visual FoxPro's Invisible button style or Square shape to emulate a hot spot on top of a picture object.
MORE INFORMATION
Code Sample
ofrmMyform=CREATEOBJECT("frmMyform")&& Create an instance the object
DEFINE CLASS frmMyform AS form
ENDDEFINE
What the Code DoesThe code creates an instance of a class called frmMyform, and frmMyform define three objects:
Steps to Recreate Code Sample by Using the Form Designer1. On the File menu, click New and then Form. Click the New File button. 2. In the Properties window, select the Caption property. Type "Invisible 3. In the Properties window, select the Movable property, and change it to
4. From the Form Control toolbar, select the Image button. Click the
5. From the Properties window, select the picture property, and click the
6. From the Form Control toolbar, select the command button, and create a
7. From the Properties window, select Style, and change it to Invisible.
8. From the Properties window, double-click the Click event. Type the 9. From the Form Control toolbar, select the Shape button. Create a shape
10. From the Properties window, select the BackStyle property, and change
11. From the Properties window, select the BorderStyle property, and change
12. From the Property tab, double-click the Click event. Type the following
13. Save and run the Form.
Additional reference words: 3.00 VFoxWin KBCategory: kbgraphic kbprg kbcode KBSubcategory: FxotherGraphic |
Last Reviewed: August 2, 1995 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |