Reputation: 1
Is it somehow possible to set other/ custom cursors in Labview without loading them from a path? I would love to be able to expand the list of cursors if that's possible? All cursors included with LabVIEW
For example, many cursors that I would like to use are already included in the User32.dll, but LabVIEW does not recognize the change in cursor and then tries to overwrite the cursor during mouse events! Call User32
I don't want to load the cursors from paths because otherwise I always have to make sure that this path exists! It works that way, but it has too many disadvantages. I would like these cursors to exist in every application (.exe) and on different Windows PCs
Upvotes: 0
Views: 46
Reputation: 1
I found a solution that works for me! To do this, I use the cursors that are already available on every Windows system (C:\Windows\Cursors):
Read Cursor from C:\Windows\Cursors
Upvotes: 0
Reputation: 2276
I haven't used custom cursors in LV, but it's fairly clear that LabVIEW always does its own cursor management, and I doubt there's any way to disable that. You could try to fight it by setting your own cursor, but you see that it fights back.
You could just configure your build spec to include the cursors in a folder and use a relative path to find them (see the Application Directory VI in the palette) and I have seen various applications written in different languages over the years do that, so it's a reasonable solution.
If you don't want that, you could read the binary data of the cursor files, embed that in your EXE (for instance, as a constant in a VI) and then when the EXE runs, save that data to a file in the temporary folder and load the cursor from there.
Upvotes: 0