LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Weird CVI Behaviour in CWGraph Vs tab panels

Hi,

I'm using Labwindows CVI 6.0 FULL and win 2K, I have weird paranormal behaviour from CVI in my application.

Here is the problem, I have several panels in a tab control format. One of those tabs contains a CWgraph, and in that panel the user can right click to display a popup menu wich gives him the choice to set the cursor ON, or to use the ZOOM Area in that graph. The problem is that after he pick an option all the tabs are freezed after, he can only work in the current CWGraph panel. But here is the Weird behaviour, if he right click (don't ask me why, I have no code for managing the right click) everything is unfreezed. What can I do to stop my app freezing my tabs ?, or is their a way to simulate a right click by p
rogramming ?.

If somebody have seen something like that, please help.

Thank you,
0 Kudos
Message 1 of 3
(2,891 Views)
Hi gasma1975,

After considering the scenario you presented, I decided to make a quick example to try and reproduce the issue. I didn't see the behavior you described.

The application has several panels in an easy_tab control with one panel containing a CWGraph control that I have a callback function for that handles right-click events. Upon a right-click on the graph a popupmenu is produced with RunPopupMenu(), the item in the popupmenu plots a random data array to the graph. After clicking the menu selection you can successfully click any of the other tabbed panels or do whatever else you want, indicating the program works normally.

I have attached this example to this post for you to try out as well (it is actually an altered version of the si
mpdemo.prj example that ships with CVI). Please give it a try and tell me if it works or not. If you can see nothing from this example to help you make yours work, please submit a narrowed-down example that only exhibits the behavior you are describing in an email support request at www.ni.com/ask and we will try to work with it in house. Thanks!

Jason F.
Applications Engineer
National Instruments
www.ni.com/ask
0 Kudos
Message 2 of 3
(2,891 Views)
Its not exactly what I was saying, here is your demo with my Popup menu, in the graph right click and select the Zoom or span, and then try to change the tabs it will freeze... in my application I also have menus on the top that are freezing, maybe I'm doing something wrong (I hope). Take a look.

Thank you for your help, I really appreciate.
0 Kudos
Message 3 of 3
(2,891 Views)