#Region Activity Attributes
#FullScreen: true
#IncludeTitle: True
#End Region
#ExcludeFromLibrary: true
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
'Dim sHelpURL As String
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim help As MLHelp
Dim Back As Button
Dim forward As Button
Dim toc As Button
Dim fa As FontAwesome
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
Activity.Color = Colors.RGB(38,130,160)
help.Initialize(Activity,0dip,0dip,100%x,100%y-25dip,Colors.Yellow,"HELP")
help.TitleSize = 18
help.Title= "HELP"
help.TitleHeight = 30dip
help.TitleColor = Colors.RGB(38,130,160)
help.TitleTextColor = Colors.White
fa.Initialize
Dim textsize As Int = 24
Back.Initialize("Back")
Back.Typeface = fa.FontAwesomeTypeface
Back.Text = fa.GetFontAwesomeIconByName( "fa-arrow-left")
Back.Color=Colors.Transparent
Back.TextSize=textsize
Activity.AddView(Back,0, Activity.Height-45dip,Activity.Width/3, 45dip)
toc.Initialize("toc")
toc.Typeface = fa.FontAwesomeTypeface
toc.Text = fa.GetFontAwesomeIconByName( "fa-book")
toc.Color=Colors.Transparent
toc.TextSize=textsize
Activity.AddView(toc,Activity.Width/3, Activity.Height-45dip,Activity.Width/3, 45dip)
forward.Initialize("forward")
forward.Typeface = fa.FontAwesomeTypeface
forward.Text = fa.GetFontAwesomeIconByName( "fa-arrow-right")
forward.Color=Colors.Transparent
forward.TextSize=textsize
Activity.AddView(forward,(Activity.Width/3)*2, Activity.Height-45dip,Activity.Width/3, 45dip)
If cmHELP.ms_HelpURL = "" Then
help.LoadPage("index.html")
Else
help.LoadPage(cmHELP.ms_HelpURL)
End If
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub back_click()
help.Back
End Sub
Sub forward_click()
help.Forward
End Sub
Sub toc_click()
help.LoadPage("index.html")
End Sub