Jump to content

How to trap Key in unimedit


devya

Recommended Posts

Dear all,

We want to trap enter Key and check, from unimedit in mobile interface.

We are using barcode to enter the product key, and want to trap the last code from the barcode scanner for doing processing.

Just lIke in POS system use barcode to enter the transaction, without need to press any key.

can help me to give a clue ?

Link to comment
Share on other sites

4 hours ago, devya said:

We are using barcode to enter the product key, and want to trap the last code from the barcode scanner for doing processing.

Just lIke in POS system use barcode to enter the transaction, without need to press any key.

Hello,

Sorry, could you please explain in more detail?

Link to comment
Share on other sites

18 hours ago, Sherzod said:

Hello,

Sorry, could you please explain in more detail?

ok, 

I am using Tunimedit in my form. and i m using Barcode scanner as my input device.

When the barcode scanner do the scan, it will scan the barcode and pass the whole character to Tunimedit.

The character result from the scanner is include the "#13" or Return Key, and i want to do process after the barcode scanner done the scanning, based on the Character #13 

So , i need to check the character input inside the Tunimedit

 

Link to comment
Share on other sites

3 hours ago, devya said:

The character result from the scanner is include the "#13" or Return Key, and i want to do process after the barcode scanner done the scanning, based on the Character #13 

Hello,

Maybe you wanted something like this?

procedure TMainmForm.UnimEdit1Change(Sender: TObject);
begin
  if Pos('#13', (Sender as TUnimEdit).Text)>0 then
    ShowMessage('Included')

end;

 

Link to comment
Share on other sites

21 hours ago, irigsoft said:

Hello, on client side or on server side ?

On Server side You can use TuniEdit.onKeyPress and standart VCL code

onclient side,

But i m use unimedit (touch version), not sure your side can implement not ?

Link to comment
Share on other sites

22 hours ago, Sherzod said:

Hello,

Maybe you wanted something like this?


procedure TMainmForm.UnimEdit1Change(Sender: TObject);
begin
  if Pos('#13', (Sender as TUnimEdit).Text)>0 then
    ShowMessage('Included')

end;

 

HI @Sherzod, thanks i will test it.
Looks like what i want , ya never think of that, delphi way.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...