Re: [Lazarus] Xterm, konsole etc.

2013-06-18 Thread Ludo Brands
On 06/17/2013 11:23 PM, Mark Morgan Lloyd wrote:
 
 I don't claim to have anything like the expertise to do all of the work
 (I've never tackled a component in either Delphi or Lazarus), but it
 might be worthwhile kicking ideas around.
 

The ICS (overbyte) package has an open source VT terminal emulator which
is rather complete. Has anybody tried to port this to Lazarus? It is
fairly windows centric though.

Ludo


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Beagle Bone

2013-06-18 Thread Michael Schnell

On 06/17/2013 06:09 PM, Paul Breneman wrote:


The 5.7 MB arm-linux zip is just an easy way to see FPC 2.6.2 work on 
the RPi or BB.

That of course is a great starter.

I just wanted to add a link for others that might encounter this 
message thread in the future.  I think most full-time programmers will 
end up wanting to install a full development environment like Lazarus, 
but the easy zips let you avoid that until later.

Yep. Of course, the Lazarus IDE is the tool of choice for fpc programmers.

In your original message you wrote: The project I have in mind does 
not need to have a GUI (nor any Android binding). 
Yep. I would use Lazarus just as an IDE. Preferably running it on the PC 
as a cross development tool. But regarding the rather high versatility 
of the BBB (Beagle Bone black, greatly advanced vs the white thingy), 
it might be a good idea to run Lazarus on the target, too.


I was the (main) TurboPower TPX person for AsyncPro for the last 5 
years TurboPower was in business (1998 - 2003), 
GREAT! We (company) bought an AsyncPro license many years ago, and very 
happily use it since then. I would be _delighted_to be able to using it 
on Linux with Lazarus fpc. Especially with non-GUI Projects, which is 
not that easy because of the reduced Thread communication support in the 
LCL when no GUI binding is not selected.


In this and many other forums I found lots of requests for a decent 
serial- and Socket- communication unit, that frees the application 
programmer from the low level thread handling.


But, no, I haven't ported it to Linux.  I'm using Synapse for that: 
www.CtrlTerm.com


I also use Synapse for this right now. But AsyncPro is a lot more 
advanced, especially because of the automatic background threads it uses 
and because of  the unified API for serial and socket handling.


Thus porting APO to Lazarus/Linux/noGUI would be a GGRREEAATT advantage 
:-) .


Thanks,
-Michael


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Beagle Bone

2013-06-18 Thread Michael Schnell

On 06/17/2013 09:05 PM, Den Jean wrote:


Here is a demo of a LCL/Qt program running on the BeagleBone
( = predecessor of BeagleBone Black).

http://users.telenet.be/Jan.Van.hijfte/qtforfpc/BeagleBone/beagle_bone.png


Super !

Did you get decent performance with QT on BB ? (Of course BBB will 
outperform BB by far.)


Did you try to build and run the Lazarus IDE on BB/QT ?

-Michael

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Xterm, konsole etc.

2013-06-18 Thread Mark Morgan Lloyd

Hans-Peter Diettrich wrote:

Mattias Gaertner schrieb:

On Sat, 15 Jun 2013 13:46:57 +
Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote:

What's the easiest way to implement something like xterm or konsole, 
that has minimal escape decoding for e.g. cursor control but under 
normal circumstances buffers output lines in scrollable form?


What I'm trying to do is implement some special 8-bit codepage 
mapping for programs run inside a window, but it would be desirable 
to be able to run a (unix) shell and a standard editor such as vi.


I'm interested in a terminal LCL control as well.


Please specify: do you want a terminal (e.g. VT-52) or a shell window?


I think it's necessary to separate shell (e.g. Bash on Linux) and 
window for the purpose of discussion.


The interesting case there is where a shell running in e.g. Xterm or 
Konsole, which normally appends output to the last line and scrolls, 
switches to running a text editor such as Vi where scrolling is 
inhibited. There's also the issue of keeping the environment variables 
that tell a child process the window size (in character units) up to 
date, and sending a WINCH signal when appropriate.


Once there's a control that can handle character-addressable output (and 
ideally can scroll as well), implementing VT-100 (or -52, or 3270, or 
whatever legacy command set one's lumbered with) is comparatively 
simple. It also depends somewhat on the underlying communications 
mechanism, i.e. serial, telnet, tn3270 or whatever turns you on.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Beagle Bone

2013-06-18 Thread Paul Breneman

Michael Schnell wrote:
...
But, no, I haven't ported it to Linux.  I'm using Synapse for that: 
www.CtrlTerm.com


I also use Synapse for this right now. But AsyncPro is a lot more 
advanced, especially because of the automatic background threads it uses 
and because of  the unified API for serial and socket handling.


Thus porting APO to Lazarus/Linux/noGUI would be a GGRREEAATT advantage 
:-) .


CtrlTerm supports both serial (using SynaSer) and socket (Synapse) and 
the code is almost the same.


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Does Lazarus give default names to components created at runtime?

2013-06-18 Thread vfclists .
Does Lazarus give default names to components created at runtime?

-- 
Frank Church

===
http://devblog.brahmancreations.com
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Test issue #22215 about PageControl on Windows

2013-06-18 Thread Juha Manninen
I could not reproduce but I committed the patch for easy testing.
Please test everybody with Windows.

 http://bugs.freepascal.org/view.php?id=22215

Juha

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Does Lazarus give default names to components created at runtime?

2013-06-18 Thread Juha Manninen
On Tue, Jun 18, 2013 at 2:29 PM, vfclists . vfcli...@gmail.com wrote:

 Does Lazarus give default names to components created at runtime?

No. Default name is given only when a component is created at design
time using the designer.

Juha

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Issue #15866: TIpHtmlPanel scrollbar not functional on Win64

2013-06-18 Thread Juha Manninen
http://bugs.freepascal.org/view.php?id=15866

Gerd Sager and Zeljan:
It is good to have some kind of fix for the issue, but IMO the problem
is elsewhere.
In my understanding the LM_xxx messages should map to WM_xxx messages
on Windows. The idea is to simulate the Windows message system in a
cross-platform way.
Thus, the problem is in wrong mapping of those messages somewhere.

Regards,
Juha

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Beagle Bone

2013-06-18 Thread Michael Schnell

On 06/18/2013 01:22 PM, Paul Breneman wrote:


CtrlTerm supports both serial (using SynaSer) and socket (Synapse) and 
the code is almost the same.


Does it automatically use background threads and fires events in the 
main thread (as AsyncPro does)  ?


-Michael

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Change the Date format for the TDateEdit component

2013-06-18 Thread Johan Tu Toit
Good day,

Please how to change the Date format for the TDateEdit component to
-MM-DD instead of using the default DD/MM/?

Thanks in advance
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Does Lazarus give default names to components created at runtime?

2013-06-18 Thread Mattias Gaertner


 vfclists . vfcli...@gmail.com hat am 18. Juni 2013 um 13:29 geschrieben:


  Does Lazarus give default names to components created at runtime?

No. Default is ''.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Change the Date format for the TDateEdit component

2013-06-18 Thread David Copeland
That would be the DateOrder property of a TDate Edit, set it to doYMD.

Dave Copeland.

On 06/18/2013 08:10 AM, Johan Tu Toit wrote:
 Good day,

 Please how to change the Date format for the TDateEdit component to
 -MM-DD instead of using the default DD/MM/?

 Thanks in advance


 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Change the Date format for the TDateEdit component

2013-06-18 Thread Johan Tu Toit
The DateOrder property only give the format order but do not change the
separator / to -


On Tue, Jun 18, 2013 at 2:20 PM, David Copeland
david.copel...@jsidata.cawrote:

  That would be the DateOrder property of a TDate Edit, set it to doYMD.

 Dave Copeland.


 On 06/18/2013 08:10 AM, Johan Tu Toit wrote:

  Good day,

  Please how to change the Date format for the TDateEdit component to
 -MM-DD instead of using the default DD/MM/?

  Thanks in advance


 --
 ___
 Lazarus mailing 
 listLazarus@lists.lazarus.freepascal.orghttp://lists.lazarus.freepascal.org/mailman/listinfo/lazarus



 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Beagle Bone

2013-06-18 Thread Paul Breneman

Michael Schnell wrote:

On 06/18/2013 01:22 PM, Paul Breneman wrote:


CtrlTerm supports both serial (using SynaSer) and socket (Synapse) and 
the code is almost the same.


Does it automatically use background threads and fires events in the 
main thread (as AsyncPro does)  ?


No, but I might be interested in working on that if anyone wants to hire 
me.  :)


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Change the Date format for the TDateEdit component

2013-06-18 Thread David Copeland
True, I do not know if there is a separator property. In my programs I
typically build a date string from the TDateEdit.Date myself.

On 06/18/2013 08:30 AM, Johan Tu Toit wrote:
 The DateOrder property only give the format order but do not change
 the separator / to - 


 On Tue, Jun 18, 2013 at 2:20 PM, David Copeland
 david.copel...@jsidata.ca mailto:david.copel...@jsidata.ca wrote:

 That would be the DateOrder property of a TDate Edit, set it to doYMD.

 Dave Copeland.


 On 06/18/2013 08:10 AM, Johan Tu Toit wrote:
 Good day,

 Please how to change the Date format for the TDateEdit component
 to -MM-DD instead of using the default DD/MM/?

 Thanks in advance


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Issue #15866: TIpHtmlPanel scrollbar not functional on Win64

2013-06-18 Thread zeljko

On 06/18/2013 01:53 PM, Juha Manninen wrote:

http://bugs.freepascal.org/view.php?id=15866

Gerd Sager and Zeljan:
It is good to have some kind of fix for the issue, but IMO the problem
is elsewhere.
In my understanding the LM_xxx messages should map to WM_xxx messages
on Windows. The idea is to simulate the Windows message system in a
cross-platform way.
Thus, the problem is in wrong mapping of those messages somewhere.


That patch fixed things afaik. Is there any problem ? something new raised ?

z.


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Xterm, konsole etc.

2013-06-18 Thread Reinier Olislagers
On 18-6-2013 10:44, Mark Morgan Lloyd wrote:
 Hans-Peter Diettrich wrote:
 Mattias Gaertner schrieb:
 On Sat, 15 Jun 2013 13:46:57 +
 Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote:
 Once there's a control that can handle character-addressable output (and
 ideally can scroll as well), implementing VT-100 (or -52, or 3270, or
 whatever legacy command set one's lumbered with) is comparatively
 simple. It also depends somewhat on the underlying communications
 mechanism, i.e. serial, telnet, tn3270 or whatever turns you on.

Yummy, tn3270. I wouldn't mind a Lazarus implementation of a 3270
client... goes well with the Hercules emulator ;)


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Change the Date format for the TDateEdit component

2013-06-18 Thread waldo kitty

On 6/18/2013 08:30, Johan Tu Toit wrote:

The DateOrder property only give the format order but do not change the
separator / to -


could it be the separator is taken from the OS settings?

--
NOTE: No off-list assistance is given without prior approval.
  Please keep mailing list traffic on the list unless
  private contact is specifically requested and granted.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Does Lazarus give default names to components created at runtime?

2013-06-18 Thread vfclists .
On 18 June 2013 13:20, Mattias Gaertner nc-gaert...@netcologne.de wrote:



  vfclists . vfcli...@gmail.com hat am 18. Juni 2013 um 13:29
 geschrieben:
 
 
   Does Lazarus give default names to components created at runtime?

 No. Default is ''.

 Mattias


Is there function in the LCL that can suggest or create a name for new
component, like in the IDE that creates a name from the component type and
an integer?

-- 
Frank Church

===
http://devblog.brahmancreations.com
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Does Lazarus give default names to components created at runtime?

2013-06-18 Thread Mattias Gaertner
On Tue, 18 Jun 2013 17:42:58 +0100
vfclists . vfcli...@gmail.com wrote:

 On 18 June 2013 13:20, Mattias Gaertner nc-gaert...@netcologne.de wrote:
 
 
 
   vfclists . vfcli...@gmail.com hat am 18. Juni 2013 um 13:29
  geschrieben:
  
  
Does Lazarus give default names to components created at runtime?
 
  No. Default is ''.
 
  Mattias
 
 
 Is there function in the LCL that can suggest or create a name for new
 component, like in the IDE that creates a name from the component type and
 an integer?

The IDE one is a bit more complicated than that and it is pretty IDE
specific, so it is not in the LCL.
There are CreateFirstIdentifier and CreateNextIdentifier in
LCLProc. Maybe they can help you.

Mattias
 

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Issue #15866: TIpHtmlPanel scrollbar not functional on Win64

2013-06-18 Thread Gerd Sager

Am 18.06.2013 13:53, schrieb Juha Manninen:


http://bugs.freepascal.org/view.php?id=15866

Gerd Sager and Zeljan:
It is good to have some kind of fix for the issue, but IMO the problem
is elsewhere.
In my understanding the LM_xxx messages should map to WM_xxx messages
on Windows. The idea is to simulate the Windows message system in a
cross-platform way.
Thus, the problem is in wrong mapping of those messages somewhere.

Regards,
Juha


Hi Juha,

scrolling works well anywhere in the LCL, except in the iphtml package
on 64 bit windows.
The reason is that the field ScrollCode of the TWMScroll record always
contains 0 (windows 64 bit).
Due to a change in the size of lparam and wparam in windows 64 bit the
TWMScroll record - defined in FPC's messages.inc - does no longer fit.

You will find the correct definition in the TLMScroll record in the
LCL LMessages unit. The LCL itself uses the TLMScroll record and the
messages LM_HSCROLL and LM_VSCROLL as you can see in TCustomScrollBar
(stdctrls.pp).

Kind regards

Gerd

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Xterm, konsole etc.

2013-06-18 Thread Mark Morgan Lloyd

Reinier Olislagers wrote:

On 18-6-2013 10:44, Mark Morgan Lloyd wrote:

Hans-Peter Diettrich wrote:

Mattias Gaertner schrieb:

On Sat, 15 Jun 2013 13:46:57 +
Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote:

Once there's a control that can handle character-addressable output (and
ideally can scroll as well), implementing VT-100 (or -52, or 3270, or
whatever legacy command set one's lumbered with) is comparatively
simple. It also depends somewhat on the underlying communications
mechanism, i.e. serial, telnet, tn3270 or whatever turns you on.


Yummy, tn3270. I wouldn't mind a Lazarus implementation of a 3270
client... goes well with the Hercules emulator ;)


:-) I was using that as a particular example, since I suspect that at 
the lower levels it's fairly distinct from standard telnet (and at the 
higher levels it's a law unto itself). I've written an emulator for a 
2741 but that was straight telnet, talking to VM on Hercules.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus