/// <summary> /// SciterCallMethod - calls behavior specific method. /// </summary> public bool CallBehaviorMethod(Element he, BehaviorMethods methodId, out object result) { result = null; switch (methodId) { case BehaviorMethods.DoClick: var methodParam = new METHOD_PARAMS() { methodID = (int)METHOD_PARAMS.BEHAVIOR_METHOD_IDENTIFIERS.DO_CLICK }; var res = SciterCallBehaviorMethod(he.Handle, ref methodParam); if (res == ScDomResult.SCDOM_OK_NOT_HANDLED) return false; CheckResult(res); return true; } return false; }
/// <summary> /// SciterCallMethod - calls behavior specific method. /// </summary> public bool CallBehaviorMethod(Element he, BehaviorMethods methodId, out object result) { result = null; switch (methodId) { case BehaviorMethods.DoClick: var methodParam = new METHOD_PARAMS() { methodID = (int)METHOD_PARAMS.BEHAVIOR_METHOD_IDENTIFIERS.DO_CLICK }; var res = SciterCallBehaviorMethod(he.Handle, ref methodParam); if (res == ScDomResult.SCDOM_OK_NOT_HANDLED) { return(false); } CheckResult(res); return(true); } return(false); }
private static extern ScDomResult SciterCallBehaviorMethod(IntPtr he, ref METHOD_PARAMS param);
private static extern ScDomResult SciterCallBehaviorMethod(IntPtr he, ref METHOD_PARAMS param);