Jump to content
mje

Busy Cursor for Subpanels

Recommended Posts

Is it possible to set the cursor for a VI which is embedded in a subpanel? I keep getting a null window error. Example code attached.

I know I can set the cursor on the parent VI, but that's not what I'm after, I'd like to localize the busy state if possible? Something tells me I'm out of luck...

SubPanelCursor.zip

Share this post


Link to post
Share on other sites

I know I can set the cursor on the parent VI, but that's not what I'm after, I'd like to localize the busy state if possible? Something tells me I'm out of luck...

I had a desperate hope that the subpanel itself would have a mouseover event, but alas. Have you tried making the child VI set its mouse cursor and see if that has the desired effect?

Share this post


Link to post
Share on other sites

Is it possible to set the cursor for a VI which is embedded in a subpanel? I keep getting a null window error. Example code attached.

I know I can set the cursor on the parent VI, but that's not what I'm after, I'd like to localize the busy state if possible? Something tells me I'm out of luck...

If you use a reference to the subpanel with a register for events node, you can switch the state when the mouse enters and leaves the subpanel. But when I tried it with the busy state on the leave event was only triggered when I left the vi and not the subpanel. Which I think is a bug in LabVIEW, but I'm not certain how the busy state is supposed to affect events.

Edited by Matt W

Share this post


Link to post
Share on other sites

Hi,

It seams that you have to use the dynamic registration terminals to get the appropriate events on your event structure. It seams like the Front Panel of the embedded VI is not accessable to windows, or whatever code LV uses in the set cursor primitive. Using this current vi ref like this allows for "localization" ....sort of.

post-17903-0-59180700-1293001750_thumb.p

I hope this is what you wanted. It is very late, and I am seeing doubles.

Edited by SuperS_5
  • Like 1

Share this post


Link to post
Share on other sites

Thanks for the feedback!

SuperS_5, your idea definitely works. The unfortunate side is far as that example goes, it requires the parent VI to be aware of the state of the contained VI. Adapting it to hugo's idea though should make everything work the way I'd like. Good ideas, thanks again.

-m

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.