Re: [Lazarus] Run External Console on Linux?

2019-03-08 Thread Anthony Walter via lazarus
Mattias,

Thanks that works great and is exactly what I was looking for!
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Run External Console on Linux?

2019-03-08 Thread Mattias Gaertner via lazarus
On Fri, 8 Mar 2019 09:05:14 -0500
Anthony Walter via lazarus  wrote:

> Has anyone come up with a decent way to run and debug console
> applications using an external terminal program on Linux?
> 
> That is, you are writing a ReadLn and WriteLn console application in
> Lazarus, and when you run the program you can get an external program
> like gnome-terminal to popup. Then gnome-terminal hosts your console
> application until either your console application terminates or you
> close gnome-terminal.
> 
> I really don't like using the built in Lazarus terminal window. ReadLn
> doesn't work very well with it. It doesn't popup when you run or
> terminal the console application when closed. I'd really like to
> simulate an external terminal program like Lazarus does on Windows.
> (Please don't respond with why they are different. I understand the
> reasons)

This works on many Linux distros:

Run / Run Parameters / Use Launching application

/usr/bin/xterm -T 'Lazarus Run Output' -e
$(LazarusDir)/tools/runwait.sh $(TargetCmdLine)

Probably there are similar flags for gnome-terminal.

Mattias
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Run External Console on Linux?

2019-03-08 Thread Graeme Geldenhuys via lazarus
On 08/03/2019 14:05, Anthony Walter via lazarus wrote:
> external terminal program like Lazarus does on Windows. (Please don't
> respond with why they are different. I understand the reasons)

Not an immediate solution for you, but maybe useful to someone... The
MSEide+MSEgui has a cross-platform console component which its IDE uses.
It supports input and output from that popup console widget. No external
console/terminal application is required.

Maybe if somebody is interested in finally implementing a x-platform
solution for Lazarus, they could look at Martin's code and port it to
Lazarus.

Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Universal FontDialog for LCL

2019-03-08 Thread AlexeyT via lazarus

Okay, will do so. About lcl patch, we ll talk later.

On 08.03.2019 14:54, Juha Manninen via lazarus wrote:

Everybody wants to include their custom components in LCL. Why? The
Online Package Manager is designed exactly for easy access to external
components. Let's use it please!


--
Regards,
Alexey

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Run External Console on Linux?

2019-03-08 Thread Anthony Walter via lazarus
Has anyone come up with a decent way to run and debug console applications
using an external terminal program on Linux?

That is, you are writing a ReadLn and WriteLn console application in
Lazarus, and when you run the program you can get an external program like
gnome-terminal to popup. Then gnome-terminal hosts your console application
until either your console application terminates or you close
gnome-terminal.

I really don't like using the built in Lazarus terminal window. ReadLn
doesn't work very well with it. It doesn't popup when you run or terminal
the console application when closed. I'd really like to simulate an
external terminal program like Lazarus does on Windows. (Please don't
respond with why they are different. I understand the reasons)
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Universal FontDialog for LCL

2019-03-08 Thread Juha Manninen via lazarus
On Fri, Mar 8, 2019 at 1:01 PM Alexey via lazarus
 wrote:
> Juha, I wanted to hook new dialog (ok, separate component) into TFontDialog.

I also feel a separate dialog, TLazFontDialog or whatever, is better.
It should be put into a package and then provided through OPM.
I think you should create a new package which can later be extended
with other components.
I remember there was a long discussion about a currency edit
component. I already then suggested a similar new package but the
author did not want to make it.
Everybody wants to include their custom components in LCL. Why? The
Online Package Manager is designed exactly for easy access to external
components. Let's use it please!

Juha
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Universal FontDialog for LCL

2019-03-08 Thread Alexey via lazarus
Completely new form.

> Do you want to embed a component into the native dialog, or to
> create a complete custom drawn font dialog?
> 
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Universal FontDialog for LCL

2019-03-08 Thread Mattias Gaertner via lazarus
On Fri, 8 Mar 2019 14:01:06 +0300
Alexey via lazarus  wrote:

> Juha, I wanted to hook new dialog (ok, separate component) into
> TFontDialog. Can I make a patch to allow such a hook? It must be very
> small diff which don’t bloat the lcl.

Do you want to embed a component into the native dialog, or to
create a complete custom drawn font dialog?

Mattias
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Universal FontDialog for LCL

2019-03-08 Thread Alexey via lazarus
Juha, I wanted to hook new dialog (ok, separate component) into TFontDialog. 
Can I make a patch to allow such a hook? It must be very small diff which don’t 
bloat the lcl.
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] How to increase the font size of the content of Project Inspector

2019-03-08 Thread Juha Manninen via lazarus
Sorry for the late reply.

On Wed, Jan 16, 2019 at 5:42 AM Anthony Walter via lazarus
 wrote:
> Get it from here:
> https://github.com/sysrpl/Lazarus.AppExplore

The best way is to get it from the Online Package Manager in Lazarus.
I guess Anthony has provided it there.
I tested now with a non-docked IDE and the Application Explorer does
not find my Project Inspector window.
IMO the Help menu is a wrong place for the main menu item. It could be
in View menu as the Code Explorer.

> To the Lazarus team, consider adding Application Explorer to trunk/components.

IMO the Online Package Manager is an ideal way to install such packages.
For an end user it is as simple as installing a local package.
Maintaining the server package is easy, too, I believe.

Juha
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Universal FontDialog for LCL

2019-03-08 Thread Juha Manninen via lazarus
On Thu, Mar 7, 2019 at 3:09 PM zeljko via lazarus
 wrote:

> Not as default TFontDialog. Maybe as TLazFontDialog or similar.

+1
AlexeyT, what is wrong in having a separate component for those who need it?
If the current native dialogs have bugs (Carbon etc.) they should be
fixed obviously. That is a different issue.

Mapping to native controls has its problems but it also has benefits.
The beauty is that you can mix native LCL components with custom drawn
ones.

Juha
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus