Before there is any misunderstanding, let me first explain that I know how to use PostDeferredCall, and I also understand *why* I need to use it.
So my question is two-fold:
A.) is there any documentation on which control-type/event-type combinations require it (to avoid having to always figure it out empirically, that is)?
or
B.) is there a way to always get around it, either right now in existing versions of CVI, or with some internal tweak inside a future release of the CVI libraries?
For example, in a table control, if I set up its callback to use GetActiveTableCell in one or more of the event-branches, I would need to pair the PostDeferredCall function along with it for an EVENT_KEYPRESS, but not for EVENT_ACTIVE_CELL_CHANGE, in order to get the actual active cell that I really want to operate on. Similarly, EVENT_COMMIT doesn't need it but EVENT_LEFT_CLICK does.
I can infer that this event-handling discrepancy has to do with the control's focus (am I correct?), but is there any way to permanently over-ride this? If so, think of the coding and debugging time we could all save, especially for the complex controls like tables and trees...
For example (as a possible answer to my question "B" above), could we say that if you force the control to have focus when you mouse-hover over it (using the new CVI 8 "EVENT_MOUSE_POINTER_MOVE" event in the control's callback) before you mouse-click or keypress any succeeding event into it, that you can therefore disregard the need to use PostDeferredCall in your callback?
(Yes, I'm sniffing for tricks from CVI power-users again!)
In a similar topic, it seems to me that is not always obvious which control-events are "swallowable" unless you dig through the CVI help. But I do admit I can usually find this info if I really look hard enough.
I searched the CVI help and forums already looking for the answers to these. Maybe what we all need is a look-up table in the CVI Help that collects all this event/control info in one place. Just a thought...
Thanks in advance if you can pass along what you know...
JB
--
To whom it may concern: My alias is also my nickname, I've had it since I was a (very) skinny basketball-playing teen. OK, so I've got a 38 inch waist now, but my hometown friends haven't shaken that appellation for me. I trust that you will someday be OK with that alias, as I have been with that nickname.