Ejemplo n.º 1
0
        /// <summary> Handle the FocusOut event. </summary>
        /// <param name="e"> The event data. <see cref="XawFocusChangeEvent"/> </param>
        /// <remarks> Set XawFocusChangeEvent. Set result to nonzero to stop further event processing. </remarks>
        internal virtual void OnFocusOut(XrwFocusChangeEvent e)
        {
            FocusOutDelegate focusOut = FocusOut;

            if (focusOut != null)
            {
                focusOut(this, e);
            }
        }
Ejemplo n.º 2
0
        /// <summary> Handle the FocusIn event. </summary>
        /// <param name="e"> The event data. <see cref="XawFocusChangeEvent"/> </param>
        /// <remarks> Set XawFocusChangeEvent. Set result to nonzero to stop further event processing. </remarks>
        internal virtual void OnFocusIn(XrwFocusChangeEvent e)
        {
            FocusInDelegate focusIn = FocusIn;

            if (focusIn != null)
            {
                focusIn(this, e);
            }
        }
Ejemplo n.º 3
0
        /// <summary> Handle the FocusOut event. </summary>
        /// <param name="source"> The widget, the FocusOut event is assigned to. <see cref="XrwRectObj"/> </param>
        /// <param name="e"> The event data. <see cref="XawFocusChangeEvent"/> </param>
        /// <remarks> Set XrwFocusChangeEvent. Set result to nonzero to stop further event processing. </remarks>
        void HandleFocusOutDefault(XrwRectObj source, XrwFocusChangeEvent e)
        {
            XrwApplicationShell appShell = ApplicationShell;

            if (appShell != null)
            {
                appShell.RemoveChild(this);
                _parent = appShell;
            }
            else
            {
                Console.WriteLine(CLASS_NAME + "::HandleFocusOut () ERROR. Can not investigate application shell.");
            }

            if (this._shown)
            {
                this.Hide();
            }
            e.Result = 1;
        }
Ejemplo n.º 4
0
 /// <summary> Handle the FocusIn event. </summary>
 /// <param name="source"> The widget, the FocusIn event is assigned to. <see cref="XrwRectObj"/> </param>
 /// <param name="e"> The event data. <see cref="XawFocusChangeEvent"/> </param>
 /// <remarks> Set XrwFocusChangeEvent. Set result to nonzero to stop further event processing. </remarks>
 void HandleFocusInDefault(XrwRectObj source, XrwFocusChangeEvent e)
 {
     e.Result = 1;
 }