Welcome, Guest
Username: Password: Remember me
CodeTyphon Cross-Build Development, discussions and problems
  • Page:
  • 1

TOPIC:

android application TCDEdit barcode scan 10 years 6 months ago #5444

  • zeljko
  • zeljko's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 207
  • Thank you received: 38
windows xp 32 and debian LXDE 64
CodeTyphon 4.8 and 4.9
compile example: androidlcl
application install to ANDROID PDA and start - application crash

corect customdrawnproc.pas.patch
bugs.freepascal.org/view.php?id=25686
application androidlcl install ANDROID PDA and correct work

1.
componetnt TCDEdit - barcode scan not work

2.
component And_Controls - jEditText read barcode scan work
application compile pascal4android edittext read barcode scan work

barcode work all keyboard work

barcode not work compont customdrawn
TCDEdit not work
TEdit not work
TLabelEdit not wokr

any help!

Please Log in or Create an account to join the conversation.

Last edit: by zeljko.

android application TCDEdit barcode scan 10 years 6 months ago #5445

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
Thanks Sir
we start new tests on Android in our lab, soon first results....

PS: Please can you attach here, the patched customdrawnproc.pas
we will add to LAB CT 4.9 rev 004816
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

android application TCDEdit barcode scan 10 years 6 months ago #5446

  • zeljko
  • zeljko's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 207
  • Thank you received: 38
send customdrawnproc.pas ok
and pach

File Attachment:

File Name: customdrawnproc.zip
File Size:10 KB

Please Log in or Create an account to join the conversation.

Last edit: by zeljko.

android application TCDEdit barcode scan 10 years 6 months ago #5447

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
Thanks Sir
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

android application TCDEdit barcode scan 10 years 6 months ago #5456

  • Leslie
  • Leslie's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 66
  • Thank you received: 4
I would recommend using this code, because it protects from potential memory leaks:
  if Assigned(ACanvas.ClipRegion) then begin
    if (ACanvas.ClipRegion is TLazRegionWithChilds) then
       TLazRegionWithChilds(ACanvas.ClipRegion).Assign(ACDWinControl.Region)
    else begin
      ACanvas.ClipRegion.free;
      ACanvas.ClipRegion:= nil;
    end;
  end;
  if not Assigned(ACanvas.ClipRegion) then begin
    lRegion:= TLazRegionWithChilds.Create;
    lRegion.Assign(ACDWinControl.Region);
    ACanvas.ClipRegion := lRegion;
  end;

Please Log in or Create an account to join the conversation.

Last edit: by Leslie.

android application TCDEdit barcode scan 10 years 6 months ago #5457

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
Please Sir
can you attach here, the patched xxxx.pas (zip first)
we will add to LAB CT 4.9 rev 004818
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

android application TCDEdit barcode scan 10 years 6 months ago #5458

  • zeljko
  • zeljko's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 207
  • Thank you received: 38
Thanks Leslie

customdrawnproc.pas change and add

File Attachment:

File Name: customdraw...5-04.zip
File Size:9 KB

Please Log in or Create an account to join the conversation.

android application TCDEdit barcode scan 10 years 6 months ago #5459

  • Leslie
  • Leslie's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 66
  • Thank you received: 4
The original file is from Lazarus SVN r44903.

Please Log in or Create an account to join the conversation.

android application TCDEdit barcode scan 10 years 6 months ago #5460

  • Leslie
  • Leslie's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 66
  • Thank you received: 4
cvijanovic,

I did not see your comment, until after posting mine.

Please Log in or Create an account to join the conversation.

Last edit: by Leslie.

android application TCDEdit barcode scan 10 years 6 months ago #5461

  • zeljko
  • zeljko's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 207
  • Thank you received: 38
Thanks Leslie,
change customdrawnproc.pas and
My exampl androidlcl compile and work
ok

my problems read barcode,
my hardware ANDROID PDA, push button auto send barcode to
- AWEditText; compile pascal4android work OK
- And_Controls compile CodeTyphon work OK
- customdrawn component compile CodeTyphon not work
(problems programing RFID reader, problems probraming Bluetooth printing ...)

Please Log in or Create an account to join the conversation.

android application TCDEdit barcode scan 10 years 6 months ago #5465

  • Leslie
  • Leslie's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 66
  • Thank you received: 4
Sorry, but I cannot help with the barcode problem now.
Rendering was just too slow so I ended up not using CT for android. I hope to be able to get back and try to improve drawing performance sometime.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1