Adds a button to the action bar (its width is automatically computed) Icon = optional bitmap or drawable (if Null, Text must be set) Text = optional text (if "", Icon must be set) TextPosition: 1 = at the very top (icon is reduced) 2 = at the very bottom (icon is reduced) 3 = over the icon top 4 = over the icon bottom 5 = centered 6 = on the left 7 = on the right ButtonPosition = position in the action bar, starting from the left if positive (1 = leftmost position) or from the right if negative (-1 = rightmost position) OnClickSub = name of the sub to call in your module when the button is pressed OnLongClickSub = name of the sub to call in your module after a long click Returns the new button
AsPanelAsPanelWrapper
Gets the action bar panel
Class_GlobalsAsString
Version 1.4
FillParentAsString
Changes the dimensions of the action bar to fill completely its parent.
GetLeftCountAsString
Gets the number of buttons stacked to the left
getLeftPosition (BtnAsConcreteViewWrapper) AsInt
Returns the button position in the left stack 0 = not found
GetRightCountAsString
Gets the number of buttons stacked to the right
getRightPosition (BtnAsConcreteViewWrapper) AsInt
Returns the button position in the right stack 0 = not found
Initializes the action bar Parent = activity or panel holding the action bar TopMost = if True, the action bar is placed at the very top of its parent; if False, it is placed at the very bottom DarkTheme = if True, the action bar has a dark background and bright texts; if False, it has a bright background and dark texts Module = Me
InvalidateAsString
Redraws the action bar You must call this function if you change the action bar width (all buttons will be resized accordingly).
Moves a button to another position NewPosition = position in the action bar, starting from the left if positive (1 = leftmost position) or from the right if negative (-1 = rightmost position)
Sets the button width and centers its content This new width is temporary. It will be reset if you call Invalidate or a function modifying the button content. This function is ignored if SameWidthForAll has been enabled.
SetIconAsWideAsText (EnabledAsBoolean) AsString
Enlarges the icon to fit the text width This function is ignored by buttons with no text and buttons with a text on the left/right side.
Starts a drag&drop operation Btn = the button to move ViewToBlock = if your button is in a scrollable container (ScrollView, AHViewPager, etc.), set ViewToBlock to this container to prevents it from intercepting the Touch events OnAfterDropSub = name of the sub handling the AfterDrop event This function should be called after a long click event.
Adds a custom button in the title bar Icon = a valid bitmap or drawable Position = position in the title bar, starting from the right (1 = rightmost position) OnClickSub = name of the sub to call in your module when the button is pressed OnLongClickSub = name of the sub to call in your module after a long click Returns a pointer on the new button
AddDockingArea (DockRectAsRectWrapper) AsString
Adds a docking area If a window enters a docking area, the area becomes visible. If the window is still in the area when the move ends, it is moved and resized to fit the area.
AddStickyEdge (EdgeAsInt, SizeAsInt) AsString
Creates a sticky area near an edge. If the window enters the sticky area, the area becomes visible. If the window is still in the area when the move ends, it is sticked against the edge. Edge: 0 = Left 1 = Top 2 = Right 3 = Bottom
Adds a view to the window DelegateTouchEvent: if True, the Touch event is handled by the class and allows to move the window. Some views like ListView or ScrollView need DelegateTouchEvent=False if their content is not fully displayed (that allows to scroll their content but prevents from moving the window by moving the view).
AsPanelAsPanelWrapper
Gets the window panel
BringOnTopAsString
Brings the window to the front
ChangeCloseIcon (NewIconAsObject) AsString
Changes the close button icon Icon = a valid bitmap or drawable
ChangeMaximizeIcon (NewIconAsObject) AsString
Changes the maximize button icon Icon = a valid bitmap or drawable
ChangePinIcon (NewIconAsObject) AsString
Changes the pin button icon Icon = a valid bitmap or drawable
ChangeResizeIcon (NewIconAsObject) AsString
Changes the resize button icon Icon = a valid bitmap or drawable
Shows/Hides the close button in the title bar HideOnly = if True, closing the window just hides it OnCloseSub = name of the sub to call in your module before the window is closed
Moves the window If a position is set to -1, it is left unchanged. IgnoreSpecialAreas = if True, docking areas and sticky edges are ignored.
PinnedWindowMsgAsString
RemoveDockingAreasAsString
Removes all docking areas
RemoveStickyEdgesAsString
Removes all sticky areas
Resize (NewWidthAsInt, NewHeightAsInt) AsString
Resizes the window If a dimension is set to -1, it is left unchanged.
SelectedAreaAsInt
SetBackground (BackgroundAsObject) AsString
Changes the main content background Background = a valid drawable
SetBorder (ColorAsInt, WidthAsInt) AsString
Draws a colored frame around the window
SetOnDockListener (SubNameAsString) AsString
Adds a listener for the events OnDock (fired after docking) Your listener must be declared like this: myListener(Window As ClsFloatingWindow, DockRect As Rect)
Adds a listener for the events OnEnterDockArea (fired when entering a docking area) Your listener must be declared like this: myListener(Window As ClsFloatingWindow, DockRect As Rect)
SetOnMoveListener (SubNameAsString) AsString
Adds a listener for events onMove (fired after a move) Your listener must be declared like this: myListener(Window As ClsFloatingWindow)
SetOnResizeListener (SubNameAsString) AsString
Adds a listener for events onResize (fired after a resize) Your listener must be declared like this: myListener(Window As ClsFloatingWindow)
SetOnStickListener (SubNameAsString) AsString
Adds a listener for events OnStick (fired after sticking to an edge) Your listener must be declared like this: myListener(Window As ClsFloatingWindow, Edge As Int) Edge: 0 = Left 1 = Top 2 = Right 3 = Bottom
SetOnUndockListener (SubNameAsString) AsString
Adds a listener for the events OnUndock (fired after leaving a docking area) Your listener must be declared like this: myListener(Window As ClsFloatingWindow)
SetSelectedArea (AreaAsInt) AsString
SetTag (NewValueAsObject) AsString
Sets the tag value
SetTitleBackground (BackgroundAsObject) AsString
Changes the title background Background = a valid drawable