i want to change the cursor associated with a hotspot.
i tried this example :
- Code: Select all
Similar to the Action.LoadAPicture command, but for more advanced users. It loads a graphic file from the "Areas" sub-folder of the project folder into a property. For example, to change the cursor that is associated with the hotspot number 5, you should type:
Hotspot(5).MouseIcon = LoadGraphicFile("FILENAME")
Hotspot(5).MousePointer = 99
where FILENAME is the name of the graphic file, located inside the "Hotspot Graphic Files" sub-folder of the "Project Resources", which corresponds to the directory "c:\...\PROJECTNAME\Areas". The supported graphic types are: BMP, JPG, GIF (not animated), WMF, EMF, ICO and CUR. Replace FILENAME with an empty string to unload the picture.
if i try :
- Code: Select all
Hotspot(2).MouseIcon=Action.LoadGraphicFile("mypointer.ico")
AM error is "object action required"
if i try
- Code: Select all
Hotspot(2).MouseIcon=LoadGraphicFile("mypointer.ico")
AM error is : typeMismatch "LoadGraphicFile"
(mypointer.ico is in project's areas folder.
help !