コード例 #1
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;
        }