/// <summary>process "selection" event</summary> /// <param name = "val">the value of the control </param> /// <param name = "guiMgCtrl">the control </param> /// <param name = "line"> the line of the multiline control </param> /// <param name = "produceClick">TODO </param> internal void processSelection(String val, GuiMgControl guiMgCtrl, int line, bool produceClick) { var mgControl = (MgControl)guiMgCtrl; if (mgControl.Type == MgControlType.CTRL_TYPE_BUTTON && mgControl.getForm().getTask().getLastParkedCtrl() != mgControl) { produceClick = true; } var rtEvt = new RunTimeEvent(mgControl, line, true); rtEvt.setInternal(InternalInterface.MG_ACT_SELECTION); rtEvt.setValue(val); rtEvt.setProduceClick(produceClick); ClientManager.Instance.EventsManager.addToTail(rtEvt); }
/// <summary>process "click" event</summary> ///<param name = "guiMgCtrl">the control</param> /// <param name = "line"> the line of the multiline control</param> /// <param name = "value">the value of the control</param> internal void processMouseUp(GuiMgControl guiMgCtrl, int line) { var mgControl = (MgControl)guiMgCtrl; var rtEvt = new RunTimeEvent(mgControl, line, true); bool produceClick = true; if (mgControl.Type == MgControlType.CTRL_TYPE_BUTTON && ((CtrlButtonTypeGui)mgControl.getProp(PropInterface.PROP_TYPE_BUTTON_STYLE).getValueInt()) == CtrlButtonTypeGui.Hypertext) { produceClick = false; } rtEvt.setProduceClick(produceClick); rtEvt.setInternal(InternalInterface.MG_ACT_CTRL_MOUSEUP); ClientManager.Instance.EventsManager.addToTail(rtEvt); }