Jump to content

Colas_96

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by Colas_96

  1. Hi! 
    After searching the forum sections without success, here is a possible solution for those who, like me, need to hide the Android virtual keyboard when selecting the UnimEdit field.

    Case:
    UnimEdit field, the need is to be able to select the field and hide the Android virtual keyboard as it will be evaluated with a barcode reader.

    Workaround:
    Just set the OnEnter and OnExit events of the unimEdit like this:

    procedure TFormName.UnimEdit1Enter (Sender: TObject);
    begin
       UnimEdit1.ReadOnly := False;
    end;
    
    procedure TFormName.UnimEdit1Exit(Sender: TObject);
    begin
       UnimEdit1.ReadOnly := True;
    end;

     

    • With this trick you will avoid the appearance of the keyboard the first time the field is selected.
    • If necessary, by clicking a second time on the field, the virtual keyboard will appear again.

    It's a very simple solution, but it took me a couple of hours to find it. I thought it might help someone else. :)

    Greetings

×
×
  • Create New...