i am not sure it is right or not?
thanks in advance
I don't see the problem, as you already have the idea for a solution.
You just need a control to open the "next" vi (maybe a button??).
it is just an idea, actually, i dont know how to implement it, in this way, you need to coordinate mouse events which belong to different vi, is different from handling events which belong to same vi.
i am not sure it is a right way?
not by click, but mouse move enter, then pop-up subpalette, when should we close subpalette, which subpalette to close if there are several popup subpalette?
I assume you don't like it, but I think this is up to you, as it is the logic of your program.
By the way - there is the possibility to create runtime menus on controls. So you can have nice context menus in your app. Maybe this could also be a way to go.
I am not sure I understand what you mean by "trace the current status." Could you explain a little more your thought process?
I believe we might be over-thinking this. If you treat each sub-palette as it's own VI, you can pop them up with a mouse-enter event from a button on the "owning" parent palette. Then, when your mouse leaves the subpalette you can close it. VI Server is an easy way to accomplish this sort of behavior -- again, this depends on exactly what you want to do. As has already been stated, there are probably several ways you could make this menu system happen.
I have attached a VERY simple example below in LV 8.0. When you move your mouse into the button of the parent.vi, the child VI appears. The child VI will disappear when the mouse leaves it's front panel. I did not actually use VI server to implement any of this (just sub-vi node setup), but that's not to say that you couldn't. It's not a fancy VI by any means, but it at least demonstrates the concept.
Hope this helps!
i will use the grobal array to coordinate all vi.
the behaviors of the control palette are different from your description.
for example, there are two buttons in parent vi, button1,button2, when you move mouse over the two buttons, what happen? if in control palette, have the following behavior
if use subvi, not dynamic vi, how can you do that?
moreover, we should not use mouse leave event to close vi window, observe the behavior of the control palette, even mouse leave out all pop-up winodw, these windows remain same, window title changes only.
i want to know whether there is a "vi lost focus" event, when a vi lost focus, i will search the global array, if i find all of the current pop-up vis have no focus, then close all pop-up vis.
thanks for reply