Example #1
0
 protected override void SetVisibleCore(bool visible)
 {
     base.SetVisibleCore(visible);
     if (visible)
     {
         XplatUI.SetTopmost(this.Handle, true);
     }
 }
Example #2
0
            protected override void OnCreateControl()
            {
                base.OnCreateControl();
                XplatUI.SetTopmost(this.window.Handle, true);

                // Workaround for missing support of WM_MOUSEACTIVATE that causes ToolTip to eat mouse clicks for controls beneath.
#if MONOMAC
                ((MonoMac.AppKit.NSView)MonoMac.ObjCRuntime.Runtime.GetNSObject(this.Handle)).Window.IgnoresMouseEvents = true;
#elif XAMARINMAC
                ((AppKit.NSView)ObjCRuntime.Runtime.GetNSObject(this.Handle)).Window.IgnoresMouseEvents = true;
#endif
            }
Example #3
0
            private void ToolTipWindow_VisibleChanged(object sender, EventArgs e)
            {
                Control control = (Control)sender;

                if (control.is_visible)
                {
                    XplatUI.SetTopmost(control.window.Handle, true);
                }
                else
                {
                    XplatUI.SetTopmost(control.window.Handle, false);
                }
            }
Example #4
0
 protected override void OnCreateControl()
 {
     base.OnCreateControl();
     XplatUI.SetTopmost(this.window.Handle, true);
 }