Product : Engine, Version : 5.0.1.1036, ArticleID : 41023912

HowTo : Switch between many different cursors

Article41023912
TypeHowTo
ProductEngine
Version5.0.1.1036
Date Added4/6/2005
Submitted byHans Leirvik
Keywords

Subject

Switch between many different cursors

Summary

I want to switch between many different MouseIcons cursors and was thinking maybe it was better to store the icons in memory instead of specifying a file with the MouseIconFile property.

Or do you store it in memory inside VectorDraw to avoid reading the file many times ?

Solution

You can use a ListImage control and place there in the Design-time the cursors you want.

Then you can use the MouseIcon of VDPro (see our help) to load any cursor that is in the ImageList, like : (VisualBasic 6 Source code)
Dim b As IPictureDisp
   VDPro1.MousePointer = 99
   Set b = ImageList1.ListImages(1).Picture
   Set VDPro1.MouseIcon = b