This can be wildly different on other systems, or different profiles on the same system, as people can select their own system cursors/schemes. Do note that VB uses the system cross hair cursor when you set MousePointer = 2. When leaves hotspot, change MousePointer = 2Įdited. When cursor is over hotspot, change MousePointer = 99. Note: It's not the bit depth that decides how it is drawn. Now run project and see how it changes when the cursor is over those shape controls. For example, add 2 shape controls on your form, one filled solid with black and another with white. The cross-hairs cursor used by VB is a black/white cursor which changes its color based on the color it is over. The new cursor should be 4bit or better to guarantee stays color you want. In either method, load the new cursor into your MouseIcon property at design time. Simply create different color cross-hairs cursor (.cur) file using any decent icon/cursor editing tool. In code at project startup, create an HCURSOR using different color, wrapped in a stdPicture object. Get the current cross-hair icon from the system (assuming it is a system cursor, unsure). Or you can use another custom cursor that you design ahead of time and add to your project. This can be done in code, but would be a bit of code. You'd need a 2nd cursor, color of your choice.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |