Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Swallowing Events

LabWindows/CVI 8.5 Help
November 2007

NI Part Number:
370051K-01

»View Product Info

User callbacks must always return 0 unless they intend to swallow the event to which they are responding. To swallow the event, the callback should return 1.

Only user input, such as mouse click and keypress events, and commit events can be swallowed. If swallowed, no more callbacks are called for that event. If a user input event is swallowed, the user’s mouse click or keypress is ignored. If a commit event is swallowed, it is not placed into the GetUserEvent queue.

Note  The following events can be swallowed:

EVENT_COMBO_BOX_INSERT

EVENT_COLLAPSE

EVENT_COMMIT

EVENT_DRAG

EVENT_DROP

EVENT_END_TASK

EVENT_EXPAND

EVENT_HSCROLL (Swallowable for tabs only.)

EVENT_KEYPRESS

EVENT_LEFT_CLICK

EVENT_LEFT_DOUBLE_CLICK

EVENT_MARK_STATE_CHANGE

EVENT_MOUSE_WHEEL_SCROLL

EVENT_RIGHT_CLICK

EVENT_RIGHT_DOUBLE_CLICK

EVENT_SELECTION_CHANGE (Swallowable for trees only.)

EVENT_SORT


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit