Roger Alcindor
asked on
FMX TCameraComponent Problem
I am using the Embarcadero Demo program for the FMX TCameraComponent control which is targeted on an Android device (Samsung T700 Tablet).
I am using Embarcadero C++ Builder XE 10.1 Berlin, Update 2, Enterprise edition.
I have added an extra line of code in the button-click event handler which activates the camera but a compiler error is generated at his line of code as shown below.
How do I set the camera to auto-focus ?
Code:
void __fastcall TCameraComponentForm::btnS tartCamera Click(TObj ect *Sender)
{
// Turn on the Camera
CameraComponent->Active = True;
CameraComponent->FocusMode = ContinuousAutoFocus;// <--- new line of code added here
tbControl->TabIndex = 1;
}
Error message:
[bccaarm Warning] uMain.cpp(92): 6 enumeration values not handled in switch: 'FinishedLaunching', 'BecameActive', 'WillBecomeForeground'...
I am using Embarcadero C++ Builder XE 10.1 Berlin, Update 2, Enterprise edition.
I have added an extra line of code in the button-click event handler which activates the camera but a compiler error is generated at his line of code as shown below.
How do I set the camera to auto-focus ?
Code:
void __fastcall TCameraComponentForm::btnS
{
// Turn on the Camera
CameraComponent->Active = True;
CameraComponent->FocusMode
tbControl->TabIndex = 1;
}
Error message:
[bccaarm Warning] uMain.cpp(92): 6 enumeration values not handled in switch: 'FinishedLaunching', 'BecameActive', 'WillBecomeForeground'...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for your help,
Roger
switch (AAppEvent) { // line #92
case TApplicationEvent::WillBec
case TApplicationEvent::Entered
case TApplicationEvent::WillTer
CameraComponent->Active = false;
return true;
break;
default: // added to remove warning
break;
}