Some of the control functions automatically force a redraw and some do not. For example, SetCtrlVal will always force a redraw, but if you use SetCtrlAttribute to set the value it will not. If there isn't a forced redraw, then the control will redraw with an event that will be processed along with the other events. The function InsertTextBoxLine doesn't force a redraw since you may want to call it multiple times before redrawing.
To force a redraw before you continue in the callback, insert a call to ProcessDrawEvents() after the InsertTextBoxLine call.
Best Regards,
Chris Matthews
National Instruments