From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Touch screen + Menubar lead to unwanted Callback calls

Today I found a strange behavior using the menu bar of my program with a touch screen. Under every menu item I have child items as you can see in the screenshots.

 

The bug is: Let's say if I click (with my finger on the touch screen) on the menu item "Edit" and after that directly on the menu item "File", the callback function of the menu bar is called with menu item "Close order" even when it is dimmed.

Marc1234_1-1642673268853.png

 

Marc1234_0-1642673141756.png

 

My callback function starts like this:


void CVICALLBACK MAIN_CALLBACK_Menuebar(int menubar, int menuItem, void *callbackData, int panel)
{
switch (menuItem)
{

}

}

 

Did anyone ever experienced this behavior?

 

My System is Windows 10 with CVI 20.0.0

0 Kudos
Message 1 of 1
(690 Views)