1.05 b4a.flm.overlaywdw.OverlayWindow OverlayWindow process Touch(Action As Int, X As Float, Y As Float, ScreenX As Float, ScreenY As Float) Click LongClick android.permission.SYSTEM_ALERT_WINDOW android.permission.SYSTEM_ERROR_WINDOW Initialize2 Creates an empty overlay window at the specified position. The window is displayed after calling Open. The window has a panel which can contain child views. Note that these views cannot acquire the focus. The window can be placed or moved over the status and notification bars. Starting from Android 8 (Oreo), it always appears under critical system windows. Width: Width of the window. Height: Height of the window. EventPrefix: Prefix of the Touch, Click and LongClick events. void ba anywheresoftware.b4a.BA X int Y int Width int Height int EventPrefix java.lang.String SetPosition void X int Y int Close Closes this window. The bound buttons are removed, if any. void IsInitialized boolean SetSize void Width int Height int Initialize Creates an empty overlay window at the specified position. The window is displayed after calling Open. The window has a panel which can contain child views. Note that these views cannot acquire the focus. The window cannot be placed or moved over the status and notification bars. Width: Width of the window. Height: Height of the window. EventPrefix: Prefix of the Touch, Click and LongClick events. void ba anywheresoftware.b4a.BA X int Y int Width int Height int EventPrefix java.lang.String Open Opens this window. The bound buttons are added, if any. void IsOpen Returns True if the window was opened by a call to Open. boolean Panel anywheresoftware.b4a.objects.PanelWrapper Returns the window panel. KeepScreenOn boolean KeepScreenOn boolean Gets or sets whether the screen is kept turned on and bright as long as the window is visible. Default = False. Should be set only after the window is opened. Visible boolean Visible boolean Gets or sets the window visibility. The bound buttons, if any, are shown or hidden accordingly. X int X int Y int Y int Height int Height int Width int Width int TouchMode int TouchMode int Gets or sets the touch mode (one of the TOUCH_ constants). Default = TOUCH_INSIDE. Should be set only after the window is opened. TOUCH_NONE The window does not receive touch events. int TOUCH_ALL The window receives all touch events. int TOUCH_INSIDE The window receives touch events inside the window. int b4a.flm.overlaywdw.OverlayPermission OverlayPermission process DrawPermission(Allowed As Boolean) RequestPermission Requests the permission to draw overlays over applications for Android versions >= 23. Returns whether a permission is required or not. boolean ba anywheresoftware.b4a.BA EventPrefix java.lang.String IsAllowed Returns whether this application is allowed to draw overlays over applications. boolean ba anywheresoftware.b4a.BA b4a.flm.overlaywdw.OverlayButton OverlayButton process Click LongClick Add Adds this button to the screen. void IsAdded Returns True if the button was added by a call to Add (or a call to Open if bound). boolean BindTo Associates this button with the given overlay window so the button is automatically added or removed when the window is opened or closed, and automatically shown or hidden according to the window visibility. void Window b4a.flm.overlaywdw.OverlayWindow UnbindFrom Breaks the association between this button and the given overlay window. void Window b4a.flm.overlaywdw.OverlayWindow Initialize2 Creates a button at the specified position. The button is displayed after calling Add. The button can be placed or moved over the status and notification bars. Starting from Android 8 (Oreo), it always appears under critical system windows. Width: Width of the button. Height: Height of the button. EventPrefix: Prefix of the Click and LongClick events. void ba anywheresoftware.b4a.BA X int Y int Width int Height int EventPrefix java.lang.String SetPosition void X int Y int SetStateImages Sets the images for the Up, Down and Disabled states. Pass Null if you do not want to set an image. void Up android.graphics.drawable.Drawable Down android.graphics.drawable.Drawable Disabled android.graphics.drawable.Drawable IsInitialized boolean Remove Removes this button from the screen. void SetSize void Width int Height int Initialize Creates a button at the specified position. The button is displayed after calling Add. The button cannot be placed or moved over the status and notification bars. Width: Width of the button. Height: Height of the button. EventPrefix: Prefix of the Click and LongClick events. void ba anywheresoftware.b4a.BA X int Y int Width int Height int EventPrefix java.lang.String Button anywheresoftware.b4a.objects.ButtonWrapper Returns the wrapped button. X int X int Y int Y int Height int Height int Width int Width int 1.2 F.Leneuf-Magaud/Informatix