Recent

Author Topic: LAMW - How to copy string to clipboard  (Read 2433 times)

Agmcz

  • New Member
  • *
  • Posts: 19
LAMW - How to copy string to clipboard
« on: October 12, 2021, 12:08:42 am »
Hi

How to copy string to clipboard  :-[

"Clipboard.ASText := S;"


jmpessoa

  • Hero Member
  • *****
  • Posts: 1988
Re: LAMW - How to copy string to clipboard
« Reply #1 on: October 12, 2021, 12:13:07 am »

From were?
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Agmcz

  • New Member
  • *
  • Posts: 19
Re: LAMW - How to copy string to clipboard
« Reply #2 on: October 12, 2021, 01:16:31 am »

jmpessoa

  • Hero Member
  • *****
  • Posts: 1988
Re: LAMW - How to copy string to clipboard
« Reply #3 on: October 12, 2021, 07:08:01 am »
Done!

Code: Pascal  [Select][+][-]
  1. procedure TAndroidModule1.jButton1Click(Sender: TObject);
  2. var
  3.   str: string;
  4. begin
  5.   str:= 'Hello Clipboad!';
  6.   Self.CopyStringToClipboard(str);
  7.   ShowMessage(Self.PasteStringFromClipboard());
  8. end;
  9.  

Hint::

LAMW files changed:

"jForm.java"      folder   ".....\android_wizard\smartdesigner\java"
"androidwidget.pas"   folder ".....\android_bridges"


Thank you!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

rsu333

  • Jr. Member
  • **
  • Posts: 62
Re: LAMW - How to copy string to clipboard
« Reply #4 on: October 12, 2021, 08:09:56 am »
Thanks JMPESSOA

Agmcz

  • New Member
  • *
  • Posts: 19
Re: LAMW - How to copy string to clipboard
« Reply #5 on: October 12, 2021, 11:50:59 am »
Good job :D
thanks jmpessoa.

 

TinyPortal © 2005-2018