admin管理员组文章数量:1220790
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
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
- https://learn.microsoft.com/en-us/windows/win32/menurc/about-cursors
- https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-loadcursora
- https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setcursor
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
Share Improve this question edited 16 hours ago DarkBee 15.6k8 gold badges70 silver badges115 bronze badges asked 2 days ago Robin FauserRobin Fauser 11 bronze badge New contributor Robin Fauser is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.1 Answer
Reset to default 0I 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.
版权声明:本文标题:labview - Is it somehow possible to set other custom cursors without loading them from a path? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1739247777a2154767.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论