06-28-2006 06:21 PM
06-28-2006 07:32 PM
case EVENT_GOT_FOCUS:
if (!editMode)
SetActiveCtrl (panel, PNL_SOME_OTHER_CONTROL);
break;
06-28-2006 11:43 PM
One other way is to swallow mouse events if in indicator mode. To swallow events you can simply trap them in the control callback and exit the callback immediately with return 1. This has the effect of acting as if the mouse action on the control had never take place.
The possibility to click and highlight control text even if in indicator mode is provided essentially to let the user copy control contents in the clipboard in order to paste it elsewhere: if you don't mind loosing this facility swallowing the event is your better choice.
06-29-2006 09:07 AM