[Lazarus] Printing does nothing, Linux AMD64, Lazarus 1.4.4 and 1.2.4

2015-10-19 Thread Anthony Tekatch
File-Print calls up the print dialog, but nothing gets printed when the Print button is clicked. I have printers4lazide installed and also tried removing and reinstalling it without luck. No errors at print time are reported when Lazarus is started by the command line. I installed Lazarus 1.4.4 i

Re: [Lazarus] Hiding a component by changing its parent

2015-10-19 Thread Bart
On 10/19/15, Martin Grajcar wrote: > On Mon, Aug 24, 2015 at 4:43 PM, Mattias Gaertner > > wrote: > >> On Mon, 24 Aug 2015 16:29:49 +0200 >> Martin Grajcar wrote: >> >> > In code I'm working on, I've found a pattern like >> > >> > PROCEDURE HideIt; >> > BEGIN >> > SomeComponent.Visible := FALSE

Re: [Lazarus] Hiding a component by changing its parent

2015-10-19 Thread Martin Grajcar
On Mon, Aug 24, 2015 at 4:43 PM, Mattias Gaertner wrote: > On Mon, 24 Aug 2015 16:29:49 +0200 > Martin Grajcar wrote: > > > In code I'm working on, I've found a pattern like > > > > PROCEDURE HideIt; > > BEGIN > > SomeComponent.Visible := FALSE; > > SomeComponent.Parent := SELF; > > SomeCo

Re: [Lazarus] Win 10 IOT Core

2015-10-19 Thread Martin Schreiber
On Monday 19 October 2015 10:00:33 Michael Van Canneyt wrote: > On Mon, 19 Oct 2015, Michael Schnell wrote: > > On 10/16/2015 03:00 PM, Michael Van Canneyt wrote: > >> So, that is not the GDI winapi... > > > > Obviously.So a Delphi program never will show a a Form. > > > > But with Lazarus, the "fp

Re: [Lazarus] TCustomControl focus handling difference

2015-10-19 Thread Zeljko
On 10/19/2015 04:54 PM, Gabor Boros wrote: 2015.10.19. 16:15 keltezéssel, Zeljko írta: Please open an issue about it and attach example project. I'll check if it's Qt lib bug or lclqt one. zeljko http://bugs.freepascal.org/view.php?id=28880 Thanks. zeljko -- ___

Re: [Lazarus] *SPAM* Re: Win 10 IOT Core

2015-10-19 Thread Michael Van Canneyt
On Mon, 19 Oct 2015, Michael Schnell wrote: The other options statwed in http://ms-iot.github.io/content/en-US/Faqs.htm are XAML and HTML. This obviously aim at a remote GUI. Support for a kind of remote GUI is something that had been discussed here several times. (There once was the EXTPA

Re: [Lazarus] TCustomControl focus handling difference

2015-10-19 Thread Gabor Boros
2015.10.19. 16:15 keltezéssel, Zeljko írta: Please open an issue about it and attach example project. I'll check if it's Qt lib bug or lclqt one. zeljko http://bugs.freepascal.org/view.php?id=28880 Gabor -- ___ Lazarus mailing list Lazarus@lists.l

Re: [Lazarus] *SPAM* Re: Win 10 IOT Core

2015-10-19 Thread Michael Schnell
The other options statwed in http://ms-iot.github.io/content/en-US/Faqs.htm are XAML and HTML. This obviously aim at a remote GUI. Support for a kind of remote GUI is something that had been discussed here several times. (There once was the EXTPASCAL project, which had died a long time ago).

Re: [Lazarus] TCustomControl focus handling difference

2015-10-19 Thread Zeljko
On 10/19/2015 03:32 PM, Gabor Boros wrote: 2015.10.19. 15:18 keltezéssel, Zeljko írta: Yes, now I remember that I've implemented csNoFocus in Qt some time ago,so it works. What about selection ? If added csNoFocus caret not moved in Edit1 (which is good) just text selection lost if click on

Re: [Lazarus] TCustomControl focus handling difference

2015-10-19 Thread Gabor Boros
2015.10.19. 15:18 keltezéssel, Zeljko írta: Yes, now I remember that I've implemented csNoFocus in Qt some time ago,so it works. What about selection ? If added csNoFocus caret not moved in Edit1 (which is good) just text selection lost if click on the green control. Gabor -- __

Re: [Lazarus] *SPAM* Re: Win 10 IOT Core

2015-10-19 Thread Michael Van Canneyt
On Mon, 19 Oct 2015, Michael Schnell wrote: On 10/19/2015 02:37 PM, Michael Van Canneyt wrote: How do you know that DirectX is part of IOT ? Only from the message Žilvinas posted: "When running headed the only supported UI is via the UWP UI stacks (XAML, HTML, DirectX" That comes from

Re: [Lazarus] *SPAM* Re: *SPAM* Re: Win 10 IOT Core

2015-10-19 Thread Michael Schnell
I see. Thanks, -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] *SPAM* Re: Win 10 IOT Core

2015-10-19 Thread Michael Schnell
On 10/19/2015 02:37 PM, Michael Van Canneyt wrote: How do you know that DirectX is part of IOT ? Only from the message Žilvinas posted: "When running headed the only supported UI is via the UWP UI stacks (XAML, HTML, DirectX" That comes from: http://ms-iot.github.io/content/en-US/Faqs.htm

Re: [Lazarus] TCustomControl focus handling difference

2015-10-19 Thread Zeljko
On 10/19/2015 02:56 PM, Gabor Boros wrote: 2015.10.19. 14:40 keltezéssel, Zeljko írta: Probably platform diff. Qt have mechanism to dissalow focus switch via mouse but I could not find any in LCL. Try with gtk2. If modify the example... with TMyControl.Create(Self) do begin Con

Re: [Lazarus] Which program type to select for cron usage?

2015-10-19 Thread Bo Berglund
On Mon, 19 Oct 2015 14:01:56 +0200 (CEST), Michael Van Canneyt wrote: > >Did you add the files to the project in the project inspector dialog? >That they are in the same directory as the project is not enough. > No, I just added them into the uses clause where appropriate. But I seem to remember

Re: [Lazarus] TCustomControl focus handling difference

2015-10-19 Thread Gabor Boros
2015.10.19. 14:40 keltezéssel, Zeljko írta: Probably platform diff. Qt have mechanism to dissalow focus switch via mouse but I could not find any in LCL. Try with gtk2. If modify the example... with TMyControl.Create(Self) do begin ControlStyle:=ControlStyle+[csNoFocus]; ...Edit1 no

Re: [Lazarus] *SPAM* Re: Win 10 IOT Core

2015-10-19 Thread Sven Barth
Am 19.10.2015 11:49 schrieb "Michael Schnell" : >> >> To stress this again: We don't support UWP right now as a target in the compiler and RTL. >> > Why does UWP need support by the compiler or the RTL ? AFAIK, GDI does not have such either, but only by the LCL. GDI is merely an API provided in c

Re: [Lazarus] TCustomControl focus handling difference

2015-10-19 Thread Zeljko
On 10/19/2015 02:28 PM, Gabor Boros wrote: Hi All, If click on the green control in the example project Edit1 loose focus on Linux(Qt KDE4) and not on Windows. Is it a simple platform difference or a bug? (I want Edit1 stay focused but green control can handle mouse clicks. I don't know which

Re: [Lazarus] *SPAM* Re: Win 10 IOT Core

2015-10-19 Thread Michael Van Canneyt
On Mon, 19 Oct 2015, Michael Schnell wrote: On 10/19/2015 02:07 PM, Michael Van Canneyt wrote: How do you know that DirectX is part of IOT ? Only from the message Žilvinas posted: "When running headed the only supported UI is via the UWP UI stacks (XAML, HTML, DirectX" That comes from:

[Lazarus] TCustomControl focus handling difference

2015-10-19 Thread Gabor Boros
Hi All, If click on the green control in the example project Edit1 loose focus on Linux(Qt KDE4) and not on Windows. Is it a simple platform difference or a bug? (I want Edit1 stay focused but green control can handle mouse clicks. I don't know which one is operating normally and where to star

Re: [Lazarus] *SPAM* Re: Win 10 IOT Core

2015-10-19 Thread Michael Schnell
On 10/19/2015 02:07 PM, Michael Van Canneyt wrote: How do you know that DirectX is part of IOT ? Only from the message Žilvinas posted: "When running headed the only supported UI is via the UWP UI stacks (XAML, HTML, DirectX" -Michael -- ___ Laz

Re: [Lazarus] Which program type to select for cron usage?

2015-10-19 Thread Mattias Gaertner
On Mon, 19 Oct 2015 13:41:51 +0200 Bo Berglund wrote: >[...] > When I enter the period after FComm I expected Lazarus to autocomplete > with the valid identifiers, in this case Free, but nothing happens... Press Ctrl+Space. It should show you the error. For example identifier not found or unit n

Re: [Lazarus] *SPAM* Re: Win 10 IOT Core

2015-10-19 Thread Michael Van Canneyt
On Mon, 19 Oct 2015, Michael Schnell wrote: On 10/19/2015 01:33 PM, Michael Van Canneyt wrote: We can at least conclude that there is a lot of confusion about what it is and what it is not; But seeing that it is Microsoft, this does not come as a surprise... There are more vendors at work

Re: [Lazarus] Which program type to select for cron usage?

2015-10-19 Thread Michael Van Canneyt
On Mon, 19 Oct 2015, Bo Berglund wrote: On Mon, 19 Oct 2015 12:28:55 +0200 (CEST), Michael Van Canneyt wrote: For anything that has a longer lifetime and is likely to change over the years, you should pick 3. Thanks, I did so and started coding. :) Now I ran into a problem which I cannot

Re: [Lazarus] *SPAM* Re: Win 10 IOT Core

2015-10-19 Thread Michael Schnell
On 10/19/2015 01:33 PM, Michael Van Canneyt wrote: We can at least conclude that there is a lot of confusion about what it is and what it is not; But seeing that it is Microsoft, this does not come as a surprise... There are more vendors at work than actual programmers in that company. M$ cl

Re: [Lazarus] Which program type to select for cron usage?

2015-10-19 Thread Bo Berglund
On Mon, 19 Oct 2015 12:28:55 +0200 (CEST), Michael Van Canneyt wrote: >For anything that has a longer lifetime and is likely to change over the >years, >you should pick 3. Thanks, I did so and started coding. :) Now I ran into a problem which I cannot say belongs to the selection of type of p

Re: [Lazarus] *SPAM* Re: Win 10 IOT Core

2015-10-19 Thread Michael Van Canneyt
On Mon, 19 Oct 2015, Michael Schnell wrote: On 10/19/2015 12:51 PM, Michael Van Canneyt wrote: I *seriously* doubt the first part of this statement, because Delphi explicitly does not support the windows runtime on which IOT is based. See my message above in this thread (10/16/2015, 03:13

Re: [Lazarus] *SPAM* Re: Win 10 IOT Core

2015-10-19 Thread Michael Schnell
On 10/19/2015 12:51 PM, Michael Van Canneyt wrote: I *seriously* doubt the first part of this statement, because Delphi explicitly does not support the windows runtime on which IOT is based. See my message above in this thread (10/16/2015, 03:13): "I asked my colleague who tested this with t

Re: [Lazarus] Debugging of packages

2015-10-19 Thread Mattias Gaertner
On Mon, 19 Oct 2015 12:17:02 +0200 Ondrej Pokorny wrote: > Hello! > > I have a project with my custom package listed in "Required packages" of > the project. > I am not able to debug the code in the package (I am able to debug the > project code though). > > I assume there are some compiler s

Re: [Lazarus] *SPAM* Re: Win 10 IOT Core

2015-10-19 Thread Michael Van Canneyt
On Mon, 19 Oct 2015, Michael Schnell wrote: On 10/19/2015 12:27 PM, Michael Van Canneyt wrote: UWP is a complete separate runtime environment on Windows. It is nothing like the Win32 API. You may not use the Win32 API directly in a UWP application. I did not introduce the term "UWP" here,

Re: [Lazarus] *SPAM* Re: Win 10 IOT Core

2015-10-19 Thread Michael Schnell
On 10/19/2015 12:27 PM, Michael Van Canneyt wrote: UWP is a complete separate runtime environment on Windows. It is nothing like the Win32 API. You may not use the Win32 API directly in a UWP application. I did not introduce the term "UWP" here, so I don't know it the non-GUI part of IOT's AP

Re: [Lazarus] Which program type to select for cron usage?

2015-10-19 Thread Michael Van Canneyt
On Mon, 19 Oct 2015, Bo Berglund wrote: I am finally ready to start creating my FPC/Lazarus control application based on a number of Delphi support units. The application is meant to be started on a Raspberry Pi2 by cron every minute or so and basically check if there is something to do and if

Re: [Lazarus] *SPAM* Re: Win 10 IOT Core

2015-10-19 Thread Michael Van Canneyt
On Mon, 19 Oct 2015, Michael Schnell wrote: On 10/19/2015 11:34 AM, Sven Barth wrote: WinAPI vs. UWP is a completely different beast than GDI vs. DirectX whereby the latter is only a very small part of the problem. I see. To stress this again: We don't support UWP right now as a targe

[Lazarus] Debugging of packages

2015-10-19 Thread Ondrej Pokorny
Hello! I have a project with my custom package listed in "Required packages" of the project. I am not able to debug the code in the package (I am able to debug the project code though). I assume there are some compiler settings different from the project so that I cannot step into the packag

[Lazarus] App requiring lots of different localisations

2015-10-19 Thread Mark Morgan Lloyd
From what I've seen so far, the Raspberry Pi (specifically, Raspbian with the default desktop environments etc.) doesn't have a graphical program to create a new .desktop file which can subsequently be installed on the desktop or in the startup menu. The thing that makes this non-trivial is th

Re: [Lazarus] *SPAM* Re: Win 10 IOT Core

2015-10-19 Thread Michael Schnell
On 10/19/2015 11:34 AM, Sven Barth wrote: WinAPI vs. UWP is a completely different beast than GDI vs. DirectX whereby the latter is only a very small part of the problem. I see. To stress this again: We don't support UWP right now as a target in the compiler and RTL. Why does UWP need

Re: [Lazarus] Which program type to select for cron usage?

2015-10-19 Thread Mark Morgan Lloyd
Bo Berglund wrote: I am finally ready to start creating my FPC/Lazarus control application based on a number of Delphi support units. The application is meant to be started on a Raspberry Pi2 by cron every minute or so and basically check if there is something to do and if not just exit. But if t

Re: [Lazarus] Win 10 IOT Core

2015-10-19 Thread Sven Barth
Am 19.10.2015 09:43 schrieb "Michael Schnell" : > > On 10/16/2015 03:00 PM, Michael Van Canneyt wrote: >> >> >> So, that is not the GDI winapi... >> > Obviously.So a Delphi program never will show a a Form. > > But with Lazarus, the "fpGUI" and "Custom Drawn" widget sets should work, as - AFAIK -

Re: [Lazarus] Which program type to select for cron usage?

2015-10-19 Thread Michael Schnell
On 10/19/2015 10:47 AM, Bo Berglund wrote: 1) Simple Program (A most simple FP command line program) 2) Program (A FP cmd line program with some useful settings added) 3) Console App (A FP cmd line program using TCustomApplication..) I will probably need to use threads inside the program so I g

[Lazarus] Which program type to select for cron usage?

2015-10-19 Thread Bo Berglund
I am finally ready to start creating my FPC/Lazarus control application based on a number of Delphi support units. The application is meant to be started on a Raspberry Pi2 by cron every minute or so and basically check if there is something to do and if not just exit. But if there is stuff to do i

Re: [Lazarus] What does make install do?

2015-10-19 Thread Mark Morgan Lloyd
Bo Berglund wrote: On Sun, 18 Oct 2015 10:01:40 +, Mark Morgan Lloyd wrote: I've already pointed you at the relevant xdg utility, but quite frankly I wonder why I bother. I do not see how me changing the operating system way of displaying menus to another system would help. I looked up

Re: [Lazarus] Win 10 IOT Core

2015-10-19 Thread Michael Schnell
On 10/19/2015 10:00 AM, Michael Van Canneyt wrote: As far as I know, fpGUI works on GDI. I suppose you are right. I did not re-check in Windows, as I don't use Lazarus on windows right now, but maybe erroneously just used my remote memory. Rephrasing: On Linux, fpGUI can be configured t

Re: [Lazarus] Win 10 IOT Core

2015-10-19 Thread Michael Van Canneyt
On Mon, 19 Oct 2015, Michael Schnell wrote: On 10/16/2015 03:00 PM, Michael Van Canneyt wrote: So, that is not the GDI winapi... Obviously.So a Delphi program never will show a a Form. But with Lazarus, the "fpGUI" and "Custom Drawn" widget sets should work, as - AFAIK - they can be conf

Re: [Lazarus] Status and future of Custom Drawn Controls

2015-10-19 Thread Michael Schnell
On 10/16/2015 06:14 PM, Krzysztof wrote: Just checked latest Custom Drawn package from SVN. Is this project abandoned? Because seems that nothing changed from a years. I'm big fan of such kind frameworks (like fpGUI) and I think that Custom Drawn was a good idea. (Sorry for repeating this again

Re: [Lazarus] Win 10 IOT Core

2015-10-19 Thread Michael Schnell
On 10/16/2015 03:00 PM, Michael Van Canneyt wrote: So, that is not the GDI winapi... Obviously.So a Delphi program never will show a a Form. But with Lazarus, the "fpGUI" and "Custom Drawn" widget sets should work, as - AFAIK - they can be configured to use DirectX. -> Graeme can you comm