B4A Class VisualHelp_JE

The library displays local help above layout elements

vh.gif


VisualHelp_JE
Author: Jerryk
Version: 1.62


Properties
BackgroundColor (value As Int)sets and gets a semi-transparent background0x80808080
TextColor (value As Int)sets and gets the help text color0xFFF5F5F5
TextSize (value As Float)sets and gets the help text size20
HelpColor (value As ColorDrawable)sets and gets background for help textxui.Color_Black, 10dip, 2dip, xui.Color_RGB(245, 245, 245)
SwitchIconColor (value As Boolean)automatically sets the icon color (white or black) according to the object colorTrue
BlackIcons (value As Boolean)When true, the icon color is black. Ignored when SwitchIconColor = trueFalse
SetIconDimensions (width As Int, height As Int)sets the icon size45dip, 45dip
SetFrame (color As Int, width As Int)sets the color and thickness of the highlighted object's borderColor_Yellow, 3dip

Funtions
Initialize (Parent As B4XView, ptimeDisplay As Long)initialize libraryParent - parent object, timeDisplay - time to automatically display next help, 0 = disabled
AddInfo (pInfo As String, pY As Int)adds info panel, without iconpInfo - text of info, pY - Y position
AddHelp (pTarget As B4XView, pHelp As String, pIcon As Byte)adds help panelpTarget - target object, pHelp - text of help, pIcon - type of icon
ShowHelpshow helps

types of icons (also in white)
arrow_down.png
arrow_left.png
arrow_right.png
arrow_up.png
tap.gif
scroll_horizontally.gif
scroll_vertically.gif
swipe_up.gif
swipe_down.gif
swipe_left.gif
swipe_right.gif
 

Attachments

  • VisualHelp_JE.b4xlib
    476.2 KB · Views: 1
  • VisualHelp.zip
    11.1 KB · Views: 1
Top