'Activity module
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.
Dim showDialogButton As Button
End Sub
Sub Activity_Create(FirstTime As Boolean)
showDialogButton.Initialize ("showDialogButton")
showDialogButton.Text="show Custom Dialog"
Activity.AddView (showDialogButton,0,0,50%x,10%y)
End Sub
Sub btnLan_Click
Log("clicked")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub pnl_touch(Action As Int, X As Float, Y As Float) As Boolean 'Return True to consume the event
Return True
End Sub
Sub showDialogButton_click
Dim p As Panel
Dim btnLan As Button
Dim cd As CustomDialog
p.Initialize("pnl")
btnLan.Initialize("btnlan")
btnLan.Text ="test"
p.AddView(btnLan,150dip,30dip,50dip,40dip)
cd.AddView(p,2dip,0,90%x-4dip,220dip)
cd.show("XXXXXX","Ok","Cancel","",Null)
End Sub