Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5366

How do you de-select a numeric control?

$
0
0

CVI 2013SP1, Win7.

 

I have a touchscreen application with a bunch of numerics on the GUI.  The numeric control callback receives an EVENT_LEFT_CLICK when the operator touches a numeric.  The program pops up a keypad, operator enters a number, touches ENTER, the new value is sent to the numeric control, and the popup is dismissed. 

 

Problem is, the numeric control is still selected.  It resonds to mouse-over by selecting part of or all the numeric contents.  It requires another click, or a mouse-click on another control to de-select the numeric.  That's a problem.

 

I have tried all of the following, and the numeric is NOT de-selected:

   SetActiveCtrl to another control on the same panel.

   SetCtrlVal to another control on the same panel

   CallCtrlCallback to the numeric control with EVENT_COMMIT

 

Isn't there a simple way to de-select a control programmatically? 

 

(PS.  It would sure be nice to be able to disable mouse-over events.  Like an attribute, ATTR_DISABLE_MOUSE_OVER_EVENTS.  Mouse-over events are just a pain in a touch-screen only application.)


Viewing all articles
Browse latest Browse all 5366

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>