* * *

Author Topic: TComPort  (Read 27055 times)

eldonfsr

  • Full Member
  • ***
  • Posts: 116
TComPort
« on: March 21, 2013, 04:01:48 am »
After work some days with Tcomport i got show dialog for config the port but now not afect any changes on the port, some body can help me pls, here the component with some changes cportsetup.pas mainly.

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 656
Re: TComPort
« Reply #1 on: March 21, 2013, 08:18:37 am »
hello eldonsfr,

good news for you,
i have fixed your issue  and i have created a new version of the Cport lazarus library for windows ( 3.2) .

ChangeLog :
Version history
---------------
3.2_laz March 21, 2013
  by Jurassic Pork
  Fixed CportSetup.pas and cport.lrs to use with Lazarus 1.0.6   Windows only
  Added demo ( to send and receive data from a com port)

new version in attachments.

Friendly,  J.P   ;D


eldonfsr

  • Full Member
  • ***
  • Posts: 116
Re: TComPort
« Reply #2 on: March 22, 2013, 03:20:59 am »
Thanks friend good job I spend almost 2 days on that.

hy

  • Full Member
  • ***
  • Posts: 205
Re: TComPort
« Reply #3 on: April 13, 2013, 12:43:53 pm »
Could you please use another type of archive? I can not open it.
I am on Linux - does it work with Linux as well?
Thanks in advance
_____
***hy
OS: debian sid(64bit)  [fpc 2.6.4] Lazarus SVN

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: TComPort
« Reply #4 on: April 13, 2013, 12:49:46 pm »
Could you please use another type of archive? I can not open it.
Try with the p7zip package for Linux
Code: [Select]
aptitude install p7zip-full
# cd to where the archive is
7za x <name of 7z>
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 656
Re: TComPort
« Reply #5 on: April 13, 2013, 01:59:20 pm »
TcomPort is for windows only ,

depending on what are you looking for, you can try my component TLazSerial for linux and windows

 here : http://www.lazarus.freepascal.org/index.php/topic,20481.msg118267.html#msg118267

friendly, J.P

wylton

  • New member
  • *
  • Posts: 38
Re: TComPort
« Reply #6 on: August 19, 2013, 02:13:47 pm »
I have modificad.

procedure TCustomComTerminal.Paint;
var
  ARect: TRect;
begin
  Canvas.Font := Font;
  Canvas.Brush.Color := Color;
  if csDesigning in ComponentState then
    PaintDesign
  else
  begin
    MoveCaret(FCaretPos.X, FCaretPos.Y);
    // don't paint whole screen, but only the invalidated portion
    ARect.Left := Canvas.ClipRect.Left div (FFontWidth + 1);
    ARect.Right := Min(Canvas.ClipRect.Right div (FFontWidth + 1), FColumns);
    ARect.Top := Canvas.ClipRect.Top div (FFontHeight + 1);
    ARect.Bottom := Min(Canvas.ClipRect.Bottom div (FFontHeight + 1), FRows);
    PaintTerminal(ARect);
  end;
end;             

wylton

  • New member
  • *
  • Posts: 38
Re: TComPort
« Reply #7 on: August 20, 2013, 10:43:37 am »
can't compiler in lazarus 1.1..

error lines:
FontDialog.Font := TFont(GetOrdValue);

becar

  • Newbie
  • Posts: 2
Re: TComPort
« Reply #8 on: September 18, 2013, 04:06:37 pm »
 hi Jurassic Pork,

  :( For me, it not compile in lazarus 1.0.12 but worked in 1.0.10:

C:\lazarus\components\cport_lazarus_3_2\CPort.pas(28,1) Fatal: Syntax error, "identifier" expected but "TYPE" found

regards,
« Last Edit: September 18, 2013, 09:04:16 pm by becar »

eldonfsr

  • Full Member
  • ***
  • Posts: 116
Re: TComPort
« Reply #9 on: October 05, 2013, 10:09:36 pm »
Here last chabge to cport lib if some bady using that i hope can help this.

becar

  • Newbie
  • Posts: 2
Re: TComPort
« Reply #10 on: October 06, 2013, 06:56:14 pm »
Hi eldonfsr,

Work fine for me, thank you.

 :D

Paul Breneman

  • Full Member
  • ***
  • Posts: 245
    • Control Pascal
Re: TComPort
« Reply #11 on: October 08, 2013, 04:55:58 am »
I'd like to port www.CtrlTerm.com to other platforms and tools, so if anyone wants to send me code using LazSerial or any other component please contact me.
Regards,
Paul Breneman
www.ControlPascal.com

eldonfsr

  • Full Member
  • ***
  • Posts: 116
Re: TComPort
« Reply #12 on: October 12, 2013, 06:31:25 am »
Paul thanks but i think we send only on private email becasu by this forum must be a small example, I have app to comunicate serial port to transfer information form lathes and milling machines, if you wanna i can send that.

thanks.

Paul Breneman

  • Full Member
  • ***
  • Posts: 245
    • Control Pascal
Re: TComPort
« Reply #13 on: October 12, 2013, 02:34:06 pm »
Yes, please send me the source code for your program.  That should help me to release a program that could be a good example for Lazarus.
Regards,
Paul Breneman
www.ControlPascal.com

eldonfsr

  • Full Member
  • ***
  • Posts: 116
Re: TComPort
« Reply #14 on: October 22, 2013, 04:50:17 am »
Paul here is the code of app i used to communicate lathes with pc and  transfer file.

https://hotfile.com/dl/251656540/9bf0b27/SMAC_GUI.rar.html

if you have some problems send me email pls.

i hope that help you.

best regards.


 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus