Use the function SetCtrlAttribute to set the attribute ATTR_CTRL_MODE to either VAL_INDICATOR or VAL_HOT.
For example,
SetCtrlAttribute (hMyPanel, MYPANEL_MYTEXTBOX,ATTR_CTRL_MODE, VAL_INDICATOR);
See the function help in the fuction panel for SetCtrlAttribute.