The information in this article applies to:
SUMMARYA Visual FoxPro form contains several properties that make it easy to customize icons and mouse pointers displayed when a form is running. MORE INFORMATION
NOTE: For backward compatibility, Visual FoxPro still supports FOXTOOLS.FLL
(included in earlier FoxPro versions), the Visual FoxPro API library that
allows calls to 16-bit .DLL functions. However, in Visual FoxPro, the
DECLARE command is the preferred method for calling .DLL functions.
Mouse PointersThere are two properties (DragIcon and MousePointer) that control mouse pointers:
The DragIcon property controls the shape of the mouse pointer while an
object is being dragged to a new location. The MousePointer property
controls the shape of an object while the mouse is located over that
object. These two properties may be set in tandem to achieve a desired
effect.
For example, in an object that may be dragged, set the following properties through the Forms Designer Properties Sheet:
After the object is dropped, all controls on the form are set back to the default. IconsThere are two properties (Icon and Picture) that control icons:
The Icon property controls the icon displayed when a form is minimized. The
Picture property controls the icon displayed for the following controls
contained within a formset: check box, CommandButton, Form, Image,
OptionButton, and Page.
The Form.Picture property acts as a wallpaper behind all the controls placed on a form. The Form.PageFrame.Page.Picture property creates a wallpaper effect for a specific page within a pageframe. Version 2.x CompatibilityThe following compares the version 3.0 property functionality with the functionality available in FoxPro version 2.x commands.
Advantages of Version 3.0 FunctionalityVisual FoxPro offers the advantage of built-in mouse pointer functionality. You can easily change the shape of the mouse pointer without using Windows API calls or loading the FOXTOOLS.FLL file with its memory overhead.In version 2.x, the developer had to be familar with a number of different commands to control the image displayed. In Visual FoxPro, these capabilities are consistently under the control of the picture property. In some cases in version 2.x, bitmaps were not refreshed if the image was changed in Paintbrush during an application session. An undocumented sys function was used to reorganize memory and cause the bitmap to be reread from disk. The image.picture property eliminates this problem in Visual FoxPro version 3.0. Sample FilesVisual FoxPro version 3.0 offers a large number of sample cursor (.CUR), bitmap (.BMP), and icon (.ICO) files in \VFP\SAMPLES\GRAPHICS.Additional query words: VFoxWin
Keywords : FxtoolFormdes |
Last Reviewed: August 18, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |