Jump to content

DelphiKev

Members
  • Content Count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral
  1. DelphiKev

    Losing Focus

    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
×