Hoi FrieNds,
how can i catch the event when a RadioButton is selected ?
My (part of) code dont work...
how can i catch the event when a RadioButton is selected ?
My (part of) code dont work...
B4X:
Activity.AddView (AWahlpanel, 50%x-90dip,50%y - 100dip,180dip, 200dip)
AWahlpanel.AddView (Awahl1,10dip,10dip,170dip,20dip)
AWahlpanel.AddView (Awahl2,10dip,50dip,170dip,20dip)
AWahlpanel.AddView (Awahl3,10dip,90dip,170dip,20dip)
AWahlpanel.AddView (Awahl4,10dip,130dip,170dip,20dip)
AWahlpanel.AddView (Awahl5,10dip,170dip,170dip,20dip)
txtLog.Initialize("txtLog")
txtInput.Initialize ("txtInput")
AWahlpanel.AddView (txtInput,0,0,10,10)
AWahlpanel.AddView (txtLog,0,0,10,10)
txtLog.SendToBack
txtInput.SendToBack
' Activity.LoadLayout("Screen4")
' Activity.LoadLayout("Screen3")
If Awahl1.Checked = True Then
Activity.LoadLayout("Screen5")
End If
If Awahl2.Checked = True Then
Activity.LoadLayout("Screen2")
End If
If Awahl3.Checked = True Then
Activity.LoadLayout("Screen3")
End If
If Awahl4.Checked = True Then
Activity.LoadLayout("Screen4")
End If