Exemplo n.º 1
0
        /// <summary>
        /// SendEvent - sends sinking/bubbling event to the child/parent chain of element element.
        /// First event will be send in SINKING mode (with SINKING flag) - from root to element element itself.
        /// Then from element element to its root on parents chain without SINKING flag (bubbling phase).
        /// </summary>
        public bool SendEvent(Element he, BehaviorEventType eventCode, IntPtr reason, Element source)
        {
            var handled = default(bool);

            CheckResult(SciterSendEvent(he.Handle, (int)eventCode, source != null ? source.Handle : he.Handle, reason, out handled));

            return(handled);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Post event by sinking/bubbling on the parent/child chain of this element
        /// </summary>
        public void PostEvent(BehaviorEventType eventCode, Element source)
        {
            var reason = default(IntPtr);

            SciterDomApi.PostEvent(this, eventCode, reason, source);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Send event by sinking/bubbling on the parent/child chain of this element
        /// </summary>
        public bool SendEvent(BehaviorEventType eventCode, Element source)
        {
            var reason = default(IntPtr);

            return(SciterDomApi.SendEvent(this, eventCode, reason, source));
        }
Exemplo n.º 4
0
 /// <summary>
 /// PostEvent - post sinking/bubbling event to the child/parent chain of element element.
 /// Function will return immediately posting event into input queue of the application.
 /// </summary>
 public void PostEvent(Element he, BehaviorEventType eventCode, IntPtr reason, Element source)
 {
     CheckResult(SciterPostEvent(he.Handle, (int)eventCode, source != null ? source.Handle : he.Handle, reason));
 }
Exemplo n.º 5
0
 /// <summary>
 /// Send event by sinking/bubbling on the parent/child chain of this element
 /// </summary>
 public bool SendEvent(BehaviorEventType eventCode, Element source)
 {
     var reason = default(IntPtr);
     return SciterDomApi.SendEvent(this, eventCode, reason, source);
 }
Exemplo n.º 6
0
 /// <summary>
 /// Post event by sinking/bubbling on the parent/child chain of this element
 /// </summary>
 public void PostEvent(BehaviorEventType eventCode, Element source)
 {
     var reason = default(IntPtr);
     SciterDomApi.PostEvent(this, eventCode, reason, source);
 }
Exemplo n.º 7
0
        /// <summary>
        /// SendEvent - sends sinking/bubbling event to the child/parent chain of element element.
        /// First event will be send in SINKING mode (with SINKING flag) - from root to element element itself.
        /// Then from element element to its root on parents chain without SINKING flag (bubbling phase).
        /// </summary>
        public bool SendEvent(Element he, BehaviorEventType eventCode, IntPtr reason, Element source)
        {
            var handled = default(bool);
            CheckResult(SciterSendEvent(he.Handle, (int)eventCode, source != null ? source.Handle : he.Handle, reason, out handled));

            return handled;
        }
Exemplo n.º 8
0
 /// <summary>
 /// PostEvent - post sinking/bubbling event to the child/parent chain of element element.
 /// Function will return immediately posting event into input queue of the application. 
 /// </summary>
 public void PostEvent(Element he, BehaviorEventType eventCode, IntPtr reason, Element source)
 {
     CheckResult(SciterPostEvent(he.Handle, (int)eventCode, source != null ? source.Handle : he.Handle, reason));
 }