Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

OverlayWindowMBS class

Type Topic Version
class CoreGraphics 2.9
Function: A class for an overlay window.
Notes:
Please consider using OverlayMBS instead of OverlayWindowMBS. OverlayMBS is cross platform for Mac and Windows.
OverlayWindowMBS is not supported for 64 bit targets.

This window can be on top of all other windows or on some layer between. As it can be transparent you can use it to draw on it to draw on the screen.
(e.g. a ruler)

Some Realbasic versions block event handling on Realbasic windows which are behind the overlay window. RB 2006r5 does fix that.

Only supported on Mac OS X with 32 bit. Please use OverlayMBS windows for all new projects.

Feedback, Comments & Corrections

  • 12 events
    • event MouseDown(x as Double, y as Double, ModifierKeys as Integer, MouseButton as Integer, ClickCount as Integer) as boolean
    • event MouseDragged(x as Double, y as Double, ModifierKeys as Integer, MouseDeltaX as Double, MouseDeltaY as Double, MouseButton as Integer) as boolean
    • event MouseEnter(x as Double, y as Double, ModifierKeys as Integer) as boolean
    • event MouseExit(x as Double, y as Double, ModifierKeys as Integer) as boolean
    • event MouseMoved(x as Double, y as Double, ModifierKeys as Integer, MouseDeltaX as Double, MouseDeltaY as Double) as boolean
    • event MouseUp(x as Double, y as Double, ModifierKeys as Integer, MouseButton as Integer, ClickCount as Integer) as boolean
    • event MouseWheelMoved(x as Double, y as Double, ModifierKeys as Integer, axis as Integer, delta as Integer) as boolean
    • event WindowBoundsChanged
    • event WindowClosed
    • event WindowHidden
    • event WindowPaint
    • event WindowShown
  • 8 properties
  • 27 methods
    • method AttachToWindow(TargetWindow as window, LiveResize as boolean)
    • method AttachToWindow(TargetWindow as window, LiveResize as boolean, KeepEqualSize as boolean)
    • method AttachToWindow(TargetWindow as window, LiveResize as boolean, KeepEqualSize as boolean, OtherWindow as OverlayWindowMBS)
    • method close
    • method Context as CGContextMBS
    • method Create(left as Integer, top as Integer, width as Integer, height as Integer) as Integer
    • method Flush
    • method HasNoShadow as Boolean
    • method Hide
    • method HideOnFullScreen as Boolean
    • method HideOnSuspend as Boolean
    • method IgnoreClicks as Boolean
    • method InstallEventHandler
    • method RemoveEventHandler
    • method SetBounds(left as Integer, top as Integer, width as Integer, height as Integer)
    • method Show
    • method TransitionOverlay(parent as OverlayWindowMBS, effect as Integer, action as Integer) as Integer
    • method TransitionOverlay(parent as OverlayWindowMBS, effect as Integer, action as Integer, Async_ as boolean, duration as Double) as Integer
    • method TransitionOverlay(parent as OverlayWindowMBS, effect as Integer, action as Integer, left as Integer, top as Integer, width as Integer, height as Integer) as Integer
    • method TransitionOverlay(parent as OverlayWindowMBS, effect as Integer, action as Integer, left as Integer, top as Integer, width as Integer, height as Integer, Async_ as boolean, duration as Double) as Integer
    • method TransitionWindow(parent as window, effect as Integer, action as Integer) as Integer
    • method TransitionWindow(parent as window, effect as Integer, action as Integer, Async_ as boolean, duration as Double) as Integer
    • method TransitionWindow(parent as window, effect as Integer, action as Integer, left as Integer, top as Integer, width as Integer, height as Integer) as Integer
    • method TransitionWindow(parent as window, effect as Integer, action as Integer, left as Integer, top as Integer, width as Integer, height as Integer, Async_ as boolean, duration as Double) as Integer
    • method Transparency as Double
    • method UnAttachToWindow
    • method WindowLevelForKey(key as Integer) as Integer

This class has no sub classes.

Some examples which use this class:

Blog Entries



OverlayMBS   -   PacketSocketMBS




Links
MBS Xojo tutorial videos