10-12-2012 09:02 AM
Hi I am trying to design a popup panel that has parameters calculated from a user moving a cursor on an XY graph. The popup panel is necessary due to teh amount of screen size that it takes to display the data based on the cursor position. I have tried many options from subpanels to regular VI panels popping up based on a cursor move event but I get memory crashes and slow operation issues. Anybody know how to do this to optimize speed of display and memory? Atatched are my simplified VIs to show what I am trying to accomplish.
10-12-2012 10:50 AM
Hi id
I came up with a quick solution of displaying the information of the x and y on another front panel by using the event handler VI as a sub VI. This panel however does not popup and I'm not sure as to how fast this is. Do you want the graph panel to be covered up by the pop up window, or do you still want to be able to move the cursor?
I hop the code I added gives you some ideas and post back if this isn't what you were looking for.
Thanks
Dan
10-12-2012 10:58 AM
Thanks. I want the graph cursor to be able to be moved while continuous updates are viewed on the popup panel
10-12-2012 11:18 AM
The problem is that the popup panel grabs the focus. There are probably ways around this, but I am not familiar.
Alternative solutions would be to show the current value in the cursor name or to have a temporary indicator that only shows if the cursor is moved. (see attached, LabVIEW 2012)
10-12-2012 12:21 PM - edited 10-12-2012 12:43 PM
I have done this exact same thing in the past. I used a subVI which was simply the display that I wanted. I manually opened (and closed) and repositioned the window to be in the corner opposite the direction of the mouse move. Additionally, for extra flair, I updated the plot images property with a rectangle showing the drag area.
I have attached a very quick and dirty example
(I haven't been able to look at any of the other code, so I hope I'm not too far off the objective here)
10-12-2012 01:27 PM
I cannot download your example...can you post a snippet for me to see please?
10-12-2012 01:35 PM
@id wrote:
I cannot download your example...can you post a snippet for me to see please?
Whuch example are you referring to, and what kind of problems do you have with downloading?
10-12-2012 01:39 PM
@elset191 wrote:
(I haven't been able to look at any of the other code, so I hope I'm not too far off the objective here)
You are showing a chart, which does not have cursors. Substituting a graph shows the same problem when moving the cursor. The popup grabs the focus.
10-12-2012 02:19 PM - edited 10-12-2012 02:25 PM
@altenbach wrote:
@elset191 wrote:
(I haven't been able to look at any of the other code, so I hope I'm not too far off the objective here)
You are showing a chart, which does not have cursors. Substituting a graph shows the same problem when moving the cursor. The popup grabs the focus.
Oh, that kind of cursor. I was reading this thread thinking mouse cursor.
Changing the Window Appearance->Window Behavior to Floating seems to make it not steal focus.
10-12-2012 03:48 PM
@elset191 wrote:
Changing the Window Appearance->Window Behavior to Floating seems to make it not steal focus.
Are you sure? That is already his setting and it steals the focus.