Sub Process_Globals
Private fx As JFX
Private MainForm As Form
Private TextArea1 As TextArea
End Sub
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.RootPane.LoadLayout("1") 'Load the layout file.
MainForm.Show
Dim jo As JavaObject = TextArea1
MonitorSrollbar(jo.RunMethod("lookup", Array(".scroll-bar:vertical")))
End Sub
Sub MonitorSrollbar (Scrollbar As Node)
Dim CurrentValue As Boolean = Scrollbar.Visible
Do While True
If CurrentValue <> Scrollbar.Visible Then
CurrentValue = Scrollbar.Visible
Log("Scrollvar visibility changed: " & CurrentValue)
End If
Sleep(100)
Loop
End Sub