-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTourismProduct.bas
59 lines (48 loc) · 1.54 KB
/
TourismProduct.bas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
B4A=true
Group=Default Group
ModulesStructureVersion=1
Type=Activity
Version=11.8
@EndOfDesignText@
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
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.
Private MyWebViewExtras As WebViewExtras
Private MyWebViewSettings As WebViewSettings
Private BtnBack As Button
Private btnRefresh As Button
Private loadRefresh As ProgressBar
Private MainScroll As ScrollView
Private Navbar As Panel
Private TitleNavbar As Label
Private WebViewProduct As WebView
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.LoadLayout("MainScrollView")
MainScroll.Panel.LoadLayout("Product")
WebViewProduct.Height = MainScroll.Height
MainScroll.Panel.Height = MainScroll.Height
TitleNavbar.Text = "LIST PRODUCT"
MyWebViewExtras.addWebChromeClient(WebViewProduct, "WebViewProduct")
WebViewProduct.JavaScriptEnabled = True
WebViewProduct.LoadUrl(Main.server&"products")
MyWebViewSettings.setDOMStorageEnabled(WebViewProduct,True)
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Private Sub BtnBack_Click
Log("Going back to previous activity")
Activity.Finish
End Sub