Can't get anything from a TLocationSensor in VCL.
Can't get anything from a TLocationSensor in VCL.
I've used Delphi 10 Seattle to build the sample project for VCL Sensors in
Documents\Embarcadero\Studio\17.0\Samples\Object Pascal\VCL\Sensors
Testing in Windows 10 on both, a Microsoft Surface Pro and a Microsoft Surface Pro 2, the sample application runs mostly as expected, displaying and updating information from the following sensors:
msAccelerometr: TMotionSensor;
osCompass: TOrientationSensor;
osInclinometer: TOrientationSensor;
However, the sample application displays no information from its location sensor
lsLocation: TLocationSensor;
On both of these machines, running the Windows 10 Map application indeed shows the correct location, so I'm confident that the location service is enabled and working properly. I just can't seem to get access to a TLocationSensor from a VCL application.
Any ideas how to get this to work?
I've used Delphi 10 Seattle to build the sample project for VCL Sensors in
Documents\Embarcadero\Studio\17.0\Samples\Object Pascal\VCL\Sensors
Testing in Windows 10 on both, a Microsoft Surface Pro and a Microsoft Surface Pro 2, the sample application runs mostly as expected, displaying and updating information from the following sensors:
msAccelerometr: TMotionSensor;
osCompass: TOrientationSensor;
osInclinometer: TOrientationSensor;
However, the sample application displays no information from its location sensor
lsLocation: TLocationSensor;
On both of these machines, running the Windows 10 Map application indeed shows the correct location, so I'm confident that the location service is enabled and working properly. I just can't seem to get access to a TLocationSensor from a VCL application.
Any ideas how to get this to work?
Comments
Post a Comment