Hi,
I'm using cameraEX class in which the focus done triggers an event (Camera_FocusDone)
I would want to modify the main activity layout according to the success of focus done event. I want to make visible a panel (PnlFocus)
When I try this code, it fails:
I there a proper way to do this ?
Thanks for your help
I'm using cameraEX class in which the focus done triggers an event (Camera_FocusDone)
I would want to modify the main activity layout according to the success of focus done event. I want to make visible a panel (PnlFocus)
When I try this code, it fails:
B4X:
Private Sub Camera_FocusDone (Success As Boolean)
If Success Then
If shoot Then TakePicture
Main.PnlFocus.visible = True '<====== FAILS HERE
Else
Log("AutoFocus error.")
ToastMessageShow("unable to focus...", False)
'TakePicture
End If
End Sub
I there a proper way to do this ?
Thanks for your help
Last edited: