Jump to content
Sign in to follow this  
DelphiKev

Losing Focus

Recommended Posts

Hi All,

 

I am new to this site but have read many of the posts over the years. I have created my first Android app using Delphi 12 but I have an issue with focus on one of my tab controls.

 

I have a tab control that has a single editbox on it. You can either type a barcode or using the device scanner, scan a barcode which adds a carriage return to the end. On the keydown event, an API is called and the result is shown.

 

The results tab has no edit boxes for focus.

 

Now here is my issue. If I enter a barcode using the keyboard and press return, it finds the item and shows it on the another tabsheet. The brightness of the form stays the same. However if instead, I scan the barcode and it adds the key presses to the edit and a carriage return, when it navigates to the result screen the device then goes dull and loses focus.

 

I have been trying to find a solution to this for 3 weeks and got nowhere.

 

Any pointers would be appreciated.

 

Many thanks 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×