LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

parent steals event before child ?

Dear all,

I have a parent panel in which I load all my child panels. The parent has a menu with a help option, which I 'short-keyed' to F1.
I made a callback function for my child panel-events which checks for key press F1.
When I run the program and click the child panel (such that it becomes active/selected) and then press F1,
the event is not processed to the callback function of child (which is the case with keys like F2, F3 etc),
but the callback function of the parent is called.
Does anyone knows have I prevent the parent from 'stealing' the event from the child ?
Thanks in advance,
1emm
0 Kudos
Message 1 of 3
(3,311 Views)
Hi 1emm,
 
Is this problem still actual?
Could you please post some code?

Thanks in advance,
Bas van Dijke
AE, Netherlands
0 Kudos
Message 2 of 3
(3,204 Views)
Dear Bas,

Since there was a deadline for my application to be finished I created a workaround.
I used the F1 button to load up the typical html-help thing. Since the panels I
wanted to react on the F1 button all had a menu of there own as well,
I create a new menu item and add the F1 button there as a short-key.
This worked out just fine.

After all of this I heard a newer version of LabWindows has been releashed and
maybe the problem I had is gone with it, but I had no time to test it.

The problem I had then and now is that I used the panels of LabWindows itself
to create the panels and set the callback events on some buttons for them.
This means that posting code is not much of a use I suppose, since
all I did was creating one parent panel with a callback function for the F1 key and
on this panel I loaded a child panel with a callback function for the F1 key.

I wished I could have been more of a help here, but I'm sorry to say
I haven't had the time to test my case under the new LabWindows and
investigate it a little a more.
Since nobody seems to run in the problem I had, I'm still wondering to maybe
I messed up somewhere.

Kind regards,
Bas



([dutch] Ps. Leuk om hier een naamgenoot te vinden 🙂 [/dutch] )
0 Kudos
Message 3 of 3
(3,186 Views)