Hi,
I don't get it - am I to stupid?
Here is my minimalist code and nothing is displayed at all...
No buttons... and: is "btn1_click" correct?
(1) if I put
Msgbox("wait","wait") the buttons are drawn but not accesible.
Thanks for helping a lost former c++ programmer...
Chris
I don't get it - am I to stupid?
Here is my minimalist code and nothing is displayed at all...
No buttons... and: is "btn1_click" correct?
B4X:
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim appactive As Boolean
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")
Dim btn1,btn2 As Button
btn1.Initialize("btn1")
btn2.Initialize("btn2")
Activity.AddView(btn1, 10dip, 10dip, 100dip, 100dip)
Activity.AddView(btn2, 110dip, 110dip, 100dip, 100dip)
btn1.Text="1"
btn2.Text="2"
appactive = True
Do While appactive = True
'... (1)see below
Log("...") ' log works fine
Loop
End Sub
Sub btn1_Click
'Msgbox("bye","")
appactive = False
End Sub
(1) if I put
Msgbox("wait","wait") the buttons are drawn but not accesible.
Thanks for helping a lost former c++ programmer...
Chris