B4A Class VisualHelp_JE

The library displays local help above layout elements



VisualHelp_JE
Author: Jerryk
Version: 1.13


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 size50dip, 50dip
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)
 

Attachments

  • VisualHelp.zip
    11.1 KB · Views: 14
  • VisualHelp_JE.b4xlib
    476.2 KB · Views: 0
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…