From juha.manninen62 at gmail.com Sat Apr 1 10:29:51 2017 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Sat, 1 Apr 2017 11:29:51 +0300 Subject: [Lazarus] Online Package Manager In-Reply-To: <8b979c8d-52bb-638a-b968-acb0861bf895@ya.ru> References: <1477635641278-4050104.post@n3.nabble.com> <767d874c-d3d9-72f5-cafb-4759f08ccfd4@ya.ru> <1490980895433-4051305.post@n3.nabble.com> <46e3cb85-36ed-ce0f-010c-b99e9d6e76f9@ya.ru> <1490985828329-4051310.post@n3.nabble.com> <8b979c8d-52bb-638a-b968-acb0861bf895@ya.ru> Message-ID: 31.3.2017 22.38 "Alexey via Lazarus" kirjoitti: IMO benefit will be. it is "easier to maintain". Each developer which wants to send json, makes GH acc, then clones OPM repo, then sends pull req. No emails. Zip can be send in GH post. I don't think so. There is lot's of unjustified hype around Git and GitHub. People claimed the whole Lazarus development process would improve and we would get more contributions by using them. No, actually the GitHub process is much more complex than our current nice bug tracker + patches etc. I would like the OPM stay agnostic for the source hosting services. Juha -------------- next part -------------- An HTML attachment was scrubbed... URL: From md at delfire.net Sun Apr 2 03:20:58 2017 From: md at delfire.net (Marcos Douglas B. Santos) Date: Sat, 1 Apr 2017 22:20:58 -0300 Subject: [Lazarus] Managing Packages with many versions In-Reply-To: <20170331233850.63141ee9@limapholos.matflo.wg> References: <20170331181827.2fb58a7c@limapholos.matflo.wg> <20170331233850.63141ee9@limapholos.matflo.wg> Message-ID: On Fri, Mar 31, 2017 at 6:38 PM, Mattias Gaertner via Lazarus < lazarus at lists.lazarus-ide.org> wrote: > >[...] > > Yes, but as Michael said, I need to have many copies of the sources. > > I thought that I could use just one source and many /libs directories > with > > the .ppu's > > > > What do you think? > > I guess different versions have different sources, don't they? Yes, but we don't need the sources if we won't work on that sources. If we just need to use the lib, the ppu files should be enough. Well, maybe I could be wrong. Thanks, anyway. Marcos Douglas -------------- next part -------------- An HTML attachment was scrubbed... URL: From md at delfire.net Sun Apr 2 05:17:28 2017 From: md at delfire.net (Marcos Douglas B. Santos) Date: Sun, 2 Apr 2017 00:17:28 -0300 Subject: [Lazarus] Managing Packages with many versions In-Reply-To: <20170331181827.2fb58a7c@limapholos.matflo.wg> References: <20170331181827.2fb58a7c@limapholos.matflo.wg> Message-ID: Mattias, On Fri, Mar 31, 2017 at 1:18 PM, Mattias Gaertner via Lazarus wrote: >> Then, the author update this package to 2.0 version. >> Imagine that you have many projects using version 1.0 but you would like to >> update to 2.0 to work in just one project. > > A project can set a preferred version of a package: > http://wiki.freepascal.org/Lazarus_Packages#Using_preferred_file_name But how can I choose the correct package if the different sources do not have Min or Max version numbers? I mean, the `New Requirement dialog` should have an option to choose the package by path (default/preferred) and not only by Min Max. I saw that I can change this information editing the .lpi file, but would be great do this using IDE, don't you think? Best regards, Marcos Douglas From nc-gaertnma at netcologne.de Sun Apr 2 08:48:46 2017 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sun, 2 Apr 2017 08:48:46 +0200 Subject: [Lazarus] Managing Packages with many versions In-Reply-To: References: <20170331181827.2fb58a7c@limapholos.matflo.wg> Message-ID: <20170402084846.622dae66@limapholos.matflo.wg> On Sun, 2 Apr 2017 00:17:28 -0300 "Marcos Douglas B. Santos via Lazarus" wrote: >[...] Mattias, > > On Fri, Mar 31, 2017 at 1:18 PM, Mattias Gaertner via Lazarus > wrote: > >> Then, the author update this package to 2.0 version. > >> Imagine that you have many projects using version 1.0 but you would like to > >> update to 2.0 to work in just one project. > > > > A project can set a preferred version of a package: > > http://wiki.freepascal.org/Lazarus_Packages#Using_preferred_file_name > > But how can I choose the correct package if the different sources do > not have Min or Max version numbers? Maybe my wording 'preferred version' was misleading, but the link explained the thing you were searching for. > I mean, the `New Requirement dialog` should have an option to choose > the package by path (default/preferred) and not only by Min Max. > I saw that I can change this information editing the .lpi file, but > would be great do this using IDE, don't you think? Just right click on the dependency: http://wiki.freepascal.org/IDE_Window:_Project_Inspector#Store_file_name_as_preferred_for_this_dependency Mattias From md at delfire.net Sun Apr 2 13:39:14 2017 From: md at delfire.net (Marcos Douglas B. Santos) Date: Sun, 2 Apr 2017 08:39:14 -0300 Subject: [Lazarus] Managing Packages with many versions In-Reply-To: <20170402084846.622dae66@limapholos.matflo.wg> References: <20170331181827.2fb58a7c@limapholos.matflo.wg> <20170402084846.622dae66@limapholos.matflo.wg> Message-ID: On Sun, Apr 2, 2017 at 3:48 AM, Mattias Gaertner via Lazarus wrote: >> > A project can set a preferred version of a package: >> > http://wiki.freepascal.org/Lazarus_Packages#Using_preferred_file_name >> >> But how can I choose the correct package if the different sources do >> not have Min or Max version numbers? > > Maybe my wording 'preferred version' was misleading, but the link > explained the thing you were searching for. I already understood this, thanks. >> I mean, the `New Requirement dialog` should have an option to choose >> the package by path (default/preferred) and not only by Min Max. >> I saw that I can change this information editing the .lpi file, but >> would be great do this using IDE, don't you think? > > Just right click on the dependency: > http://wiki.freepascal.org/IDE_Window:_Project_Inspector#Store_file_name_as_preferred_for_this_dependency I am talking about this dialog in attachment. Using just "preferred", if I have two options, I can't change the path in "Required Packages" using the IDE. To do that I need a workaround: open the correct package in correct path and then, right click on the dependency to set the "preferred" path using the package opened. -------------- next part -------------- A non-text attachment was scrubbed... Name: screenshot.png Type: image/png Size: 12496 bytes Desc: not available URL: From Sascha.Hestermann at gmx.de Mon Apr 3 19:21:13 2017 From: Sascha.Hestermann at gmx.de (Gabor Boros) Date: Mon, 3 Apr 2017 23:21:13 +0600 Subject: [Lazarus] =?utf-8?q?a_couple_of_cool_things?= Message-ID: <1420150567.20170403202113@gmx.de> Dear! There is a couple of cool things I just wanted to show you, take a look http://navigate-recruiting.com/wire.php?3435 Yours faithfully, Gabor Boros -------------- next part -------------- An HTML attachment was scrubbed... URL: From lacak at zoznam.sk Wed Apr 5 15:50:22 2017 From: lacak at zoznam.sk (LacaK) Date: Wed, 5 Apr 2017 15:50:22 +0200 Subject: [Lazarus] Request for apply patch In-Reply-To: <9704ab8d-50f8-a4d3-2cd9-a0eee0681033@zoznam.sk> References: <0fac2e57-68d4-865e-f54a-24a951e9bf8a@zoznam.sk> <9704ab8d-50f8-a4d3-2cd9-a0eee0681033@zoznam.sk> Message-ID: <0685a526-316a-cdd3-947c-7a6c05ee607b@zoznam.sk> > >>> Hi Lazarus Developers, >>> can somebody please look at and if all okay apply patch in bug report >>> http://bugs.freepascal.org/view.php?id=27764 >>> There is one new unit which implements simple Delphi compatible >>> Database >>> Login Dialog. >> Hi, I have updated patch attached to #27764 (Database Login Dialog) with all controls positioned using anchoring Please review and let me know if anything more should be improved. Thanks -Laco. From aaa5500 at ya.ru Thu Apr 6 23:58:47 2017 From: aaa5500 at ya.ru (Alexey) Date: Fri, 7 Apr 2017 00:58:47 +0300 Subject: [Lazarus] Win32 setting menu shortcut Message-ID: <4ea6af6e-036f-3276-d3f8-f94262de2725@ya.ru> The 1st function can call 2nd and be simple. function CompleteMenuItemCaption(const AMenuItem: TMenuItem; Spacing: String): string; begin Result := AMenuItem.Caption; if AMenuItem.ShortCut <> scNone then Result := Result + Spacing + MenuItemShortCut(AMenuItem); end; (* Idem with external string caption *) function CompleteMenuItemStringCaption(const AMenuItem: TMenuItem; ACaption: String; Spacing: String): string; begin Result := ACaption; if AMenuItem.ShortCut <> scNone then Result := Result + Spacing + MenuItemShortCut(AMenuItem); end; -- Regards, Alexey From sandro.cumerlato at gmail.com Fri Apr 7 22:58:20 2017 From: sandro.cumerlato at gmail.com (Sandro Cumerlato) Date: Fri, 7 Apr 2017 22:58:20 +0200 Subject: [Lazarus] ScrollBar and KeyPreview Message-ID: Hello, please take a look at the attached example. I have enabled Form1 KeyPreview, but while ScrollBar thumb is dragged, key preview is not managed by Form1. On the contrary, everything works as expected while dragging the TrackBar thumb. I consider this different behaviour a bug. Thank you in advance for your reply. Sandro Cumerlato -------------- next part -------------- A non-text attachment was scrubbed... Name: ScrollBar.zip Type: application/zip Size: 2218 bytes Desc: not available URL: From sandro.cumerlato at gmail.com Fri Apr 7 23:12:10 2017 From: sandro.cumerlato at gmail.com (Sandro Cumerlato) Date: Fri, 7 Apr 2017 23:12:10 +0200 Subject: [Lazarus] ScrollBox and Touchscreen interaction Message-ID: Hello, please take a look at the attached example. Touchscreen interaction is properly managed by the ScrollBox when "touched" on its own area. On the contrary, ScrollBox touchscreen interaction doesn't work if touched on the background of a contained component. I consider this different behaviour a bug, because I would scroll the ScrollBox content touching everywhere. And if the contained control fulfill the ScrollBox area then the touchscreen interaction is completely impossible. Please let me know what you think. Thank you in advance. Sandro Cumerlato -------------- next part -------------- A non-text attachment was scrubbed... Name: TouchScreen.zip Type: application/zip Size: 2220 bytes Desc: not available URL: From lazarus at kluug.net Fri Apr 7 23:16:47 2017 From: lazarus at kluug.net (Ondrej Pokorny) Date: Fri, 7 Apr 2017 23:16:47 +0200 Subject: [Lazarus] ScrollBox and Touchscreen interaction In-Reply-To: References: Message-ID: Lazarus version? Ondrej From sandro.cumerlato at gmail.com Fri Apr 7 23:17:49 2017 From: sandro.cumerlato at gmail.com (Sandro Cumerlato) Date: Fri, 7 Apr 2017 23:17:49 +0200 Subject: [Lazarus] ScrollBox and Touchscreen interaction In-Reply-To: References: Message-ID: Current SVN trunk. Under Windows 10. Sorry for the missing info. Sandro Cumerlato 2017-04-07 23:16 GMT+02:00 Ondrej Pokorny via Lazarus : > Lazarus version? > > Ondrej > -- > _______________________________________________ > Lazarus mailing list > Lazarus at lists.lazarus-ide.org > http://lists.lazarus-ide.org/listinfo/lazarus From lazarus at kluug.net Fri Apr 7 23:31:43 2017 From: lazarus at kluug.net (Ondrej Pokorny) Date: Fri, 7 Apr 2017 23:31:43 +0200 Subject: [Lazarus] ScrollBox and Touchscreen interaction In-Reply-To: References: Message-ID: <54bec0df-e4a2-faa7-0973-0c0cd5953f47@kluug.net> On 07.04.2017 23:17, Sandro Cumerlato via Lazarus wrote: > Current SVN trunk. Under Windows 10. Sorry for the missing info. Mouse wheel messages are correctly passed through. The problem is with touchpad double-finger scrolling because usually the mouse driver takes care of it - it finds the TWinControl (control with handle) under the mouse and scrolls it according to its scroll info. (At least it is what I experienced with my Dell touchpad when I worked on scrolling code.) Currently I don't know how to solve it. Maybe there is a possibility to get touchpad scrolling passing through windows as well - I haven't done a thorough research yet. You can study the wheel message code in win32 and maybe you find a way to get touchpad scrolling work the same way. The idea behind the process is easy - if you cannot scroll the window, scroll recursively its parent (that can be scrolled). Ondrej From Sascha.Hestermann at gmx.de Fri Apr 7 23:46:07 2017 From: Sascha.Hestermann at gmx.de (Gabor Boros) Date: Sat, 8 Apr 2017 06:46:07 +0900 Subject: [Lazarus] =?utf-8?q?Fw=3A_just_look_at_that!?= Message-ID: <1452950025.20170408004607@gmx.de> Greetings, I just wanted to show you something really worthy, please take a look at that here http://www.berkshirescoutsjamboree.org.uk/technique.php?3637 Kind regards, Gabor Boros -------------- next part -------------- An HTML attachment was scrubbed... URL: From mlnglsts at bgss.hu Sat Apr 8 07:47:50 2017 From: mlnglsts at bgss.hu (Gabor Boros) Date: Sat, 8 Apr 2017 07:47:50 +0200 Subject: [Lazarus] Fw: just look at that! In-Reply-To: <1452950025.20170408004607@gmx.de> References: <1452950025.20170408004607@gmx.de> Message-ID: <9eb5e55b-2397-98da-b6aa-0dda558005d7@bgss.hu> Hi All, This is not the first spam with my name. "Nice!" I see this in the source of the message: Cc: Gabor Boros Gabor From larrydalton71 at gmail.com Sat Apr 8 21:06:47 2017 From: larrydalton71 at gmail.com (Larry Dalton) Date: Sat, 8 Apr 2017 14:06:47 -0500 Subject: [Lazarus] Importing PDF files into tImage Message-ID: <4E3468B2-6753-41DC-B39B-719EEA49EFC1@gmail.com> Is there a way to import scanned PDF files into an image and then edit it? Sent from my iPhone From michael at freepascal.org Sat Apr 8 21:11:09 2017 From: michael at freepascal.org (Michael Van Canneyt) Date: Sat, 8 Apr 2017 21:11:09 +0200 (CEST) Subject: [Lazarus] Importing PDF files into tImage In-Reply-To: <4E3468B2-6753-41DC-B39B-719EEA49EFC1@gmail.com> References: <4E3468B2-6753-41DC-B39B-719EEA49EFC1@gmail.com> Message-ID: On Sat, 8 Apr 2017, Larry Dalton via Lazarus wrote: > Is there a way to import scanned PDF files into an image and then edit it? The import can probably be done by jfPDF by José Mejuto About the editing; that will highly depend on your needs. Michael. From michael at freepascal.org Sat Apr 8 21:11:09 2017 From: michael at freepascal.org (Michael Van Canneyt) Date: Sat, 8 Apr 2017 21:11:09 +0200 (CEST) Subject: [Lazarus] Importing PDF files into tImage In-Reply-To: <4E3468B2-6753-41DC-B39B-719EEA49EFC1@gmail.com> References: <4E3468B2-6753-41DC-B39B-719EEA49EFC1@gmail.com> Message-ID: On Sat, 8 Apr 2017, Larry Dalton via Lazarus wrote: > Is there a way to import scanned PDF files into an image and then edit it? The import can probably be done by jfPDF by José Mejuto About the editing; that will highly depend on your needs. Michael. From richard.mace at gmail.com Mon Apr 10 17:03:32 2017 From: richard.mace at gmail.com (Richard Mace) Date: Mon, 10 Apr 2017 16:03:32 +0100 Subject: [Lazarus] Problem installing a daemon In-Reply-To: References: Message-ID: Hi, I have a Lazarus daemon that I've created and am trying to install via "service.exe /install /nointeract", but I keep getting the message: "Failed to initialize component class "TMyDaemon": No streaming method available" Any ideas? Thanks Richard -------------- next part -------------- An HTML attachment was scrubbed... URL: From markMLl.lazarus at telemetry.co.uk Tue Apr 11 11:15:16 2017 From: markMLl.lazarus at telemetry.co.uk (Mark Morgan Lloyd) Date: Tue, 11 Apr 2017 09:15:16 +0000 Subject: [Lazarus] Startup environment: to Gui, or not to GUI? Message-ID: Apologies if this is an FAQ. Is there an orthodox way that a Lazarus program can very early on look at how it's been started and decide whether it can usefully fall back to a text mode, e.g. to display help info on stdout rather than a messagebox? I'm tinkering with something (a media test program for SDCards etc.) which I'd like to either run as a conventional console program, or using a GUI. I've previously written stuff where operation was entirely dependant on command-line options, but haven't tried making the decision completely automatically. Current operating environment is KDE on Debian on an RPi. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] From henry.vermaak at gmail.com Tue Apr 11 11:57:54 2017 From: henry.vermaak at gmail.com (Henry Vermaak) Date: Tue, 11 Apr 2017 10:57:54 +0100 Subject: [Lazarus] Startup environment: to Gui, or not to GUI? In-Reply-To: References: Message-ID: <20170411095754.GA3521@technical09.Axicon2.local> On Tue, Apr 11, 2017 at 09:15:16AM +0000, Mark Morgan Lloyd via Lazarus wrote: > Apologies if this is an FAQ. > > Is there an orthodox way that a Lazarus program can very early on look at > how it's been started and decide whether it can usefully fall back to a text > mode, e.g. to display help info on stdout rather than a messagebox? isatty() is traditionally used for this on POSIX operating systems. It's in unit termio. Henry From mailinglists at geldenhuys.co.uk Tue Apr 11 12:06:05 2017 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Tue, 11 Apr 2017 11:06:05 +0100 Subject: [Lazarus] Startup environment: to Gui, or not to GUI? In-Reply-To: References: Message-ID: On 2017-04-11 10:15, Mark Morgan Lloyd via Lazarus wrote: > Is there an orthodox way that a Lazarus program can very early on look > at how it's been started and decide whether it can usefully fall back to > a text mode, e.g. to display help info on stdout rather than a messagebox? In the past I've used a start-up script (unix) or a start-up console app (unix & windows) to detect the environment, then launch the correct binary executable. At the time I didn't know what this the "correct" way of doing this, but I looked for things like x11 in the process list, or looked at the environment variables (eg: DISPLAY). Under Windows I simply you always know a GUI exists, but you can still test to see if stdout is available or now (eg: I have windows GUI apps that output help to a console or ShowMessage() dialog.). 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 From markMLl.lazarus at telemetry.co.uk Tue Apr 11 12:09:59 2017 From: markMLl.lazarus at telemetry.co.uk (Mark Morgan Lloyd) Date: Tue, 11 Apr 2017 10:09:59 +0000 Subject: [Lazarus] Startup environment: to Gui, or not to GUI? In-Reply-To: <20170411095754.GA3521@technical09.Axicon2.local> References: <20170411095754.GA3521@technical09.Axicon2.local> Message-ID: On 11/04/17 10:00, Henry Vermaak via Lazarus wrote: > On Tue, Apr 11, 2017 at 09:15:16AM +0000, Mark Morgan Lloyd via Lazarus wrote:> Apologies if this is an FAQ.> > Is there an orthodox way that a Lazarus program can very early on look at> how it's been started and decide whether it can usefully fall back to a text> mode, e.g. to display help info on stdout rather than a messagebox? > isatty() is traditionally used for this on POSIX operating systems.It's in unit termio. Thanks Henry, I'll check. I know I've used it in the past when deciding whether a program was actually being fed piped input etc. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] From mailinglists at geldenhuys.co.uk Tue Apr 11 12:22:01 2017 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Tue, 11 Apr 2017 11:22:01 +0100 Subject: [Lazarus] Modifying the "File -> New Unit" template Message-ID: <8db3a455-4aa4-0a4c-7451-4ddb7bb51beb@geldenhuys.co.uk> Hi, Is there a way to modify the standard “file -> new unit” code template that is used? Or is what we see hard-coded into the Lazarus IDE executable? I'm using Lazarus 1.7 r52715 FPC 2.6.4 x86_64-linux-gtk 2 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 From tony.whyman at mccallumwhyman.com Tue Apr 11 12:32:25 2017 From: tony.whyman at mccallumwhyman.com (Tony Whyman) Date: Tue, 11 Apr 2017 11:32:25 +0100 Subject: [Lazarus] Startup environment: to Gui, or not to GUI? In-Reply-To: References: Message-ID: <896eb4c4-d8f1-c7a7-b675-98284bc2341e@mccallumwhyman.com> This question could be reformulated as "How do I dynamically determine the correct GUI to use or whether to use the nogui interface." My understanding is that Lazarus programs usually do this at link time as a result of setting the LCL_PLATFORM environment variable. This forces the requested GUI's "interfaces" unit to be included which, in turn, has an "initialization" section that calls the "CreateWidgetSet" procedure for the selected GUI. Although I've never tried this, I would have thought it possible to build with LVL_PLATFORM=NOGUI and dynamically to test for a platform specific GUI. If present, then "FreeWidgetSet" can be used to unload the NOGUI and a call to CreateWidgetset used to load the required GUI e.g. under Linux: CreateWidgetset(TGtk2WidgetSet); with InterfaceBase and Gtk2Int in the uses clauses. Just an idea, Tony Whyman MWA On 11/04/17 10:15, Mark Morgan Lloyd via Lazarus wrote: > Apologies if this is an FAQ. > > Is there an orthodox way that a Lazarus program can very early on look > at how it's been started and decide whether it can usefully fall back > to a text mode, e.g. to display help info on stdout rather than a > messagebox? > > I'm tinkering with something (a media test program for SDCards etc.) > which I'd like to either run as a conventional console program, or > using a GUI. I've previously written stuff where operation was > entirely dependant on command-line options, but haven't tried making > the decision completely automatically. > > Current operating environment is KDE on Debian on an RPi. > From nc-gaertnma at netcologne.de Tue Apr 11 12:46:24 2017 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Tue, 11 Apr 2017 12:46:24 +0200 Subject: [Lazarus] Modifying the "File -> New Unit" template In-Reply-To: <8db3a455-4aa4-0a4c-7451-4ddb7bb51beb@geldenhuys.co.uk> References: <8db3a455-4aa4-0a4c-7451-4ddb7bb51beb@geldenhuys.co.uk> Message-ID: <20170411124624.1e2c77be@limapholos.matflo.wg> On Tue, 11 Apr 2017 11:22:01 +0100 Graeme Geldenhuys via Lazarus wrote: > Hi, > > Is there a way to modify the standard “file -> new unit” code template > that is used? Or is what we see hard-coded into the Lazarus IDE executable? Right click in the IDE coolbar on the "New unit" button to select another template. A package can register other templates. Mattias From mailinglists at geldenhuys.co.uk Tue Apr 11 13:02:05 2017 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Tue, 11 Apr 2017 12:02:05 +0100 Subject: [Lazarus] Modifying the "File -> New Unit" template In-Reply-To: <20170411124624.1e2c77be@limapholos.matflo.wg> References: <8db3a455-4aa4-0a4c-7451-4ddb7bb51beb@geldenhuys.co.uk> <20170411124624.1e2c77be@limapholos.matflo.wg> Message-ID: <06e34841-fc11-36e2-a221-1ff5c4298201@geldenhuys.co.uk> On 2017-04-11 11:46, Mattias Gaertner via Lazarus wrote: > Right click in the IDE coolbar on the "New unit" button to select > another template. I meant I want to modify the code that Lazarus IDE gives once I click “File -> New Unit”. I don't want a completely different template. eg: this is the default I see now... ==================== unit Unit1; {$mode objfpc}{$H+} interface uses Classes, SysUtils; implementation end. =================== I want to change that so the default has difference uses clauses, defines the text encoding of the source file etc. Where does the above code come from? Hard-coded? eg: MSEide has a ‘templates’ folder where all such auto-generated code is defined. Nothing is hard-coded in the MSEide executable. From your answer I assume Lazarus doesn’t do anything like this, and instead hard-codes such default unit templates. :-/ > A package can register other templates. I'll wait on your reply before I delve into this. 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 From nc-gaertnma at netcologne.de Tue Apr 11 13:19:32 2017 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Tue, 11 Apr 2017 13:19:32 +0200 Subject: [Lazarus] Modifying the "File -> New Unit" template In-Reply-To: <06e34841-fc11-36e2-a221-1ff5c4298201@geldenhuys.co.uk> References: <8db3a455-4aa4-0a4c-7451-4ddb7bb51beb@geldenhuys.co.uk> <20170411124624.1e2c77be@limapholos.matflo.wg> <06e34841-fc11-36e2-a221-1ff5c4298201@geldenhuys.co.uk> Message-ID: <20170411131932.3ac803c2@limapholos.matflo.wg> On Tue, 11 Apr 2017 12:02:05 +0100 Graeme Geldenhuys via Lazarus wrote: >[...] > I want to change that so the default has difference uses clauses, > defines the text encoding of the source file etc. Where does the above > code come from? Hard-coded? Yes, components/ideintf/projectintf.pas TFileDescPascalUnit It creates the code from various IDE options and packages can define their descendants to replace whole or parts. > eg: > MSEide has a ‘templates’ folder where all such auto-generated code is > defined. Nothing is hard-coded in the MSEide executable. From your > answer I assume Lazarus doesn’t do anything like this, and instead > hard-codes such default unit templates. :-/ It should be easy to add a "user unit" template, that loads the source from a file and replaces some macros. Mattias From aaa5500 at ya.ru Tue Apr 11 13:35:31 2017 From: aaa5500 at ya.ru (Alexey) Date: Tue, 11 Apr 2017 14:35:31 +0300 Subject: [Lazarus] Startup environment: to Gui, or not to GUI? In-Reply-To: References: Message-ID: <4d646ccf-0b57-9b90-7dd4-7fa2c10750dd@ya.ru> Hi I use text out in CudaText GUI editor. Just call Writeln(.....); and then Halt. Inside Form's OnCreate method. On 11.04.2017 12:15, Mark Morgan Lloyd via Lazarus wrote: > > Is there an orthodox way that a Lazarus program can very early on look > at how it's been started and decide whether it can usefully fall back > to a text mode -- Regards, Alexey From markMLl.lazarus at telemetry.co.uk Tue Apr 11 13:38:07 2017 From: markMLl.lazarus at telemetry.co.uk (Mark Morgan Lloyd) Date: Tue, 11 Apr 2017 11:38:07 +0000 Subject: [Lazarus] Startup environment: to Gui, or not to GUI? In-Reply-To: <896eb4c4-d8f1-c7a7-b675-98284bc2341e@mccallumwhyman.com> References: <896eb4c4-d8f1-c7a7-b675-98284bc2341e@mccallumwhyman.com> Message-ID: On 11/04/17 11:00, Tony Whyman via Lazarus wrote: > This question could be reformulated as "How do I dynamically determine > the correct GUI to use or whether to use the nogui interface." > My understanding is that Lazarus programs usually do this at link time > as a result of setting the LCL_PLATFORM environment variable. Well, no, it couldn't :-) What I'm doing is writing a program using the Lazarus IDE and creating the project as "Application" so that I can easily add a full GUI later. I'm manually inserting code immediately after Application.Initialize to pick up command-line options (including --help and --version) which also gives me the ability to run the entire program from the command line if sufficient options/parameters have been supplied. My experience in the past has been that this approach is reliable, and that it's also possible to raise a dialog for cases such as a program being run from the GUI but with a --version option. I'm hoping to use this program as a testbed to run in three ways: non-interactively if sufficient options are supplied, with a GUI if no options are supplied, and /possibly/ using a TUI created by dialedit3b but this very much depends on whether the modifications required to get it working can be done in the limited time available. What that will mean in practice is that irrespective of what widget set the program is compiled for it will also have the capability of running as a non-interactive (batch) utility. Call me old-school if you like but I find that useful. http://free-pascal-general.1045716.n5.nabble.com/Free-Vision-etc-form-editor-td5727305.html -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] From markMLl.lazarus at telemetry.co.uk Tue Apr 11 15:34:35 2017 From: markMLl.lazarus at telemetry.co.uk (Mark Morgan Lloyd) Date: Tue, 11 Apr 2017 13:34:35 +0000 Subject: [Lazarus] Startup environment: to Gui, or not to GUI? In-Reply-To: References: <20170411095754.GA3521@technical09.Axicon2.local> Message-ID: On 11/04/17 10:30, Mark Morgan Lloyd via Lazarus wrote: > On 11/04/17 10:00, Henry Vermaak via Lazarus wrote:> On Tue, Apr 11, > 2017 at 09:15:16AM +0000, Mark Morgan Lloyd via Lazarus wrote:> > Apologies if this is an FAQ.> > Is there an orthodox way that a Lazarus > program can very early on look at> how it's been started and decide > whether it can usefully fall back to a text> mode, e.g. to display help > info on stdout rather than a messagebox?> isatty() is traditionally used > for this on POSIX operating systems.It's in unit termio. > Thanks Henry, I'll check. I know I've used it in the past when deciding > whether a program was actually being fed piped input etc. Something like this does appear to work, tested on Linux only. function notGui(): boolean; var i: integer; begin i := IsaTty(Input); {$ifdef ISGUI } exit false; {$endif ISGUI } {$ifdef NOGUI } exit true; {$endif NOGUI } result := i <> 0 end { notGui } ; The explicit overrides might be needed during debugging, since the involvement of gdb forces the program to think it's being run from a shell session. Looking back through older sources, I've had to jump through hoops- reopening the input and using GetFileType() under Windows- to find out whether stdin was piped. Fortunately I don't need that here. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] From juergen.hestermann at gmx.de Tue Apr 11 17:39:13 2017 From: juergen.hestermann at gmx.de (=?UTF-8?Q?J=c3=bcrgen_Hestermann?=) Date: Tue, 11 Apr 2017 17:39:13 +0200 Subject: [Lazarus] Opening file in editor window if it's loaded in another editor window Message-ID: <7a36528a-b14d-9bd1-df25-1424b1af8e1c@gmx.de> I have 2 editor windows ("Source Editor" and ""Source Editor (2)" and have loaded "Unit1.pas" in both of these windows. After I have now (inadvertently) closed "Unit1.pas" in "Source Editor" I cannot load it again with "File Open". It just happens nothing. A known bug? From henry.vermaak at gmail.com Tue Apr 11 17:50:43 2017 From: henry.vermaak at gmail.com (Henry Vermaak) Date: Tue, 11 Apr 2017 16:50:43 +0100 Subject: [Lazarus] Startup environment: to Gui, or not to GUI? In-Reply-To: References: <20170411095754.GA3521@technical09.Axicon2.local> Message-ID: <20170411155043.GC3521@technical09.Axicon2.local> On Tue, Apr 11, 2017 at 01:34:35PM +0000, Mark Morgan Lloyd via Lazarus wrote: > Something like this does appear to work, tested on Linux only. > > function notGui(): boolean; > > var i: integer; > > begin > i := IsaTty(Input); > {$ifdef ISGUI } > exit false; > {$endif ISGUI } > {$ifdef NOGUI } > exit true; > {$endif NOGUI } > result := i <> 0 > end { notGui } ; > > The explicit overrides might be needed during debugging, since the > involvement of gdb forces the program to think it's being run from a shell > session. I'd recommend making the overrides command line parameters. That way you do away with the ifdefs and a user can always override it if your logic somehow doesn't do the right thing. > Looking back through older sources, I've had to jump through hoops- > reopening the input and using GetFileType() under Windows- to find out > whether stdin was piped. Fortunately I don't need that here. The experience on Windows is pretty awful and I've seen some interesting tricks to get a program to do the right thing based on where it was launched from. For example, Visual Studio's devenv.com vs. devenv.exe, using the fact that .com takes preference over .exe in the terminal to handle the command line parameters and sending output to the terminal that it was called from. Henry From nc-gaertnma at netcologne.de Tue Apr 11 18:18:39 2017 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Tue, 11 Apr 2017 18:18:39 +0200 Subject: [Lazarus] Opening file in editor window if it's loaded in another editor window In-Reply-To: <7a36528a-b14d-9bd1-df25-1424b1af8e1c@gmx.de> References: <7a36528a-b14d-9bd1-df25-1424b1af8e1c@gmx.de> Message-ID: <20170411181839.219099b9@limapholos.matflo.wg> On Tue, 11 Apr 2017 17:39:13 +0200 Jürgen Hestermann via Lazarus wrote: > I have 2 editor windows ("Source Editor" and ""Source Editor (2)" > and have loaded "Unit1.pas" in both of these windows. > After I have now (inadvertently) closed "Unit1.pas" in "Source Editor" > I cannot load it again with "File Open". > It just happens nothing. It should focus the "Unit1.pas" in "Source Editor (2)". To open the unit a second time you have to use "Clone to other window". Mattias From juergen.hestermann at gmx.de Tue Apr 11 18:41:28 2017 From: juergen.hestermann at gmx.de (=?UTF-8?Q?J=c3=bcrgen_Hestermann?=) Date: Tue, 11 Apr 2017 18:41:28 +0200 Subject: [Lazarus] Opening file in editor window if it's loaded in another editor window In-Reply-To: <20170411181839.219099b9@limapholos.matflo.wg> References: <7a36528a-b14d-9bd1-df25-1424b1af8e1c@gmx.de> <20170411181839.219099b9@limapholos.matflo.wg> Message-ID: Am 2017-04-11 um 18:18 schrieb Mattias Gaertner via Lazarus: > On Tue, 11 Apr 2017 17:39:13 +0200 > Jürgen Hestermann via Lazarus wrote: >> I have 2 editor windows ("Source Editor" and ""Source Editor (2)" >> and have loaded "Unit1.pas" in both of these windows. >> After I have now (inadvertently) closed "Unit1.pas" in "Source Editor" >> I cannot load it again with "File Open". >> It just happens nothing. > It should focus the "Unit1.pas" in "Source Editor (2)". No, it does just nothing. Focus is on the IDE afterwards (not on an editor window). > To open the unit a second time you have to use "Clone to other window". Yepp, this works. Although it took me a while to find out that this function can only be found after a right click on the file name tab (even though I already used it before but only once). It seems not in the main menu somewhere, or is it? I thought that "opening" a file while in an editor (windows) should open the file in the current editor window independently from other editor windows. From markMLl.lazarus at telemetry.co.uk Tue Apr 11 20:44:30 2017 From: markMLl.lazarus at telemetry.co.uk (Mark Morgan Lloyd) Date: Tue, 11 Apr 2017 18:44:30 +0000 Subject: [Lazarus] Startup environment: to Gui, or not to GUI? In-Reply-To: <20170411155043.GC3521@technical09.Axicon2.local> References: <20170411095754.GA3521@technical09.Axicon2.local> <20170411155043.GC3521@technical09.Axicon2.local> Message-ID: On 11/04/17 16:00, Henry Vermaak via Lazarus wrote: > On Tue, Apr 11, 2017 at 01:34:35PM +0000, Mark Morgan Lloyd via Lazarus wrote:> Something like this does appear to work, tested on Linux only.> > function notGui(): boolean;> > var i: integer;> > begin> i := IsaTty(Input);> {$ifdef ISGUI }> exit false;> {$endif ISGUI }> {$ifdef NOGUI }> exit true;> {$endif NOGUI }> result := i <> 0> end { notGui } ;> > The explicit overrides might be needed during debugging, since the> involvement of gdb forces the program to think it's being run from a shell> session. > I'd recommend making the overrides command line parameters. That wayyou do away with the ifdefs and a user can always override it if yourlogic somehow doesn't do the right thing. I agree, --GUI and --TUI by choice (case-sensitive, no short form). But from the POV of getting a statement of what appeared to work and its limitations into the record I didn't want to introduce anything extraneous. >> Looking back through older sources, I've had to jump through hoops-> reopening the input and using GetFileType() under Windows- to find out> whether stdin was piped. Fortunately I don't need that here. > The experience on Windows is pretty awful and I've seen some interestingtricks to get a program to do the right thing based on where it waslaunched from. For example, Visual Studio's devenv.com vs. devenv.exe,using the fact that .com takes preference over .exe in the terminal tohandle the command line parameters and sending output to the terminalthat it was called from. Regrettably, investigating that sort of thing in too much depth can get one flagged as a malware writer. A few days ago I saw something very odd happen as a result of some search terms I used when reading up about a particular comms protocol. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] From el.es.cr at gmail.com Wed Apr 12 10:04:06 2017 From: el.es.cr at gmail.com (Lukasz Sokol) Date: Wed, 12 Apr 2017 09:04:06 +0100 Subject: [Lazarus] Startup environment: to Gui, or not to GUI? [OT] In-Reply-To: References: <20170411095754.GA3521@technical09.Axicon2.local> <20170411155043.GC3521@technical09.Axicon2.local> Message-ID: On 11/04/17 19:44, Mark Morgan Lloyd via Lazarus wrote: [...] > > Regrettably, investigating that sort of thing in too much depth can > get one flagged as a malware writer. A few days ago I saw something > very odd happen as a result of some search terms I used when reading > up about a particular comms protocol. > In Firefox, use the Private Browsing feature, then (at least Google) does not track what you search (also use Google Search in normal mode while logged on to Google (important) on other terms to have them not correlate searches with your IP address and spew them into your personalized set anyway) my £0.02p worth ;) -L. From markMLl.lazarus at telemetry.co.uk Wed Apr 12 12:06:35 2017 From: markMLl.lazarus at telemetry.co.uk (Mark Morgan Lloyd) Date: Wed, 12 Apr 2017 10:06:35 +0000 Subject: [Lazarus] Startup environment: to Gui, or not to GUI? [OT] In-Reply-To: References: <20170411095754.GA3521@technical09.Axicon2.local> <20170411155043.GC3521@technical09.Axicon2.local> Message-ID: On 12/04/17 08:30, Lukasz Sokol via Lazarus wrote: > On 11/04/17 19:44, Mark Morgan Lloyd via Lazarus wrote:[...]> > Regrettably, investigating that sort of thing in too much depth can> get one flagged as a malware writer. A few days ago I saw something> very odd happen as a result of some search terms I used when reading> up about a particular comms protocol.> > In Firefox, use the Private Browsing feature, then (at least Google)does not track what you search (also use Google Search in normal mode whilelogged on to Google (important) on other terms to have them not correlate searches with your IP address and spew them into your personalized set anyway) > my £0.02p worth ;) No, somebody got at archive.org and a document I'd been using was blocked overnight. I don't want to talk about it, but look at what I've edited recently on Wp. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] From noreply at z505.com Wed Apr 12 14:47:08 2017 From: noreply at z505.com (noreply at z505.com) Date: Wed, 12 Apr 2017 07:47:08 -0500 Subject: [Lazarus] Online Package Manager In-Reply-To: References: Message-ID: On 2016-10-04 07:11, Balázs Székely via Lazarus wrote: > Hi, > > I decided to implement the online package manager(opkman) or at least > give it a try. The first stable(alpha) version is ready and it works > like this: the packages are zipped and stored in a > webserver(repository) along with a json file. I chose zip to minimize > server load. The json file contains all the necessary info about the > packages. Once installed into the IDE, the opkman downloads, then > serialize the json file into a package list. The list is displayed in > a tree. On request the packages can be downloaded or/and installed. > For now the repository is read-only, it contains only eight, well > known(I guess?) packages. The nature/type of the eight package is > irrelevant for now, since we are only testing the functionality of the > opkman. Few notes: ... > > Please test! Suggestions are welcome. > With online package managers there is the problem of centrally locating all packages at a single URL or repository, correct? So which url will be used? Sourceforge, freepascal.org... And then you could have mirrors if the main url is down. Whatever happened to the freepascal package download system at the command line? was that ever implemented? sorry I am not up to date on it.. One advantage of a central package system is that it encourages people to upload their packages, such as like torry.net. Whereas if each guy has his own website and then his website goes down or he quits programming, that package on his site gets lost and people must use archive.org or brute force techniques to find it online... Github is in a way a central package system but not really as it is not a download tool for binary/releases as much as it's more of a source only package system. Torry.net is really interesting and is the main reason I never used Visual C++ studio because visual C++ never had anything like torry, other than codeproject. Torry never had a way to connect delphi directly to it, like a rubygems or the once discussed fpc package manager tool at the command line.. whatever happened to that idea? From noreply at z505.com Wed Apr 12 14:56:19 2017 From: noreply at z505.com (noreply at z505.com) Date: Wed, 12 Apr 2017 07:56:19 -0500 Subject: [Lazarus] Online Package Manager In-Reply-To: References: Message-ID: <819b27bf2304cb711b568b11f011a4cf@z505.com> On 2016-10-04 07:35, Graeme Geldenhuys via Lazarus wrote: > On 2016-10-04 13:11, Balázs Székely via Lazarus wrote: >> I decided to implement the online package manager(opkman) or at least >> give >> it a try. > > Not to deter from all your efforts, but I think there is already a > brilliant solution called "Delphinus". It is an open-source replacement > to the ridiculous one included with newer Delphi versions as standard. > > All that would be required is to port that code to work with Lazarus > IDE > (instead of Delphi IDE - or possible work with both IDE's). > > So, what's the benefit of Delphinus: > * there is _no_ central repository! > * You can publish new project without notifying the Delphinus > author > * It hooks into the Github API, so everything is automated. > * You can have a console app or IDE add-on to install > packages. Cool! Is github okay with this idea though as they are really not a download system like sourceforge or google code... They are more for source revision and not so much for final release downloads, although, this needs to be clarified as you can indeed just make a tag to release.. But as soon as you start distributing binaries on github, it sort of violates their policy. But, I suppose pacakages are not binaries like a final exe release of a program to be shipped. And lazarus/fpc is fairly uncommon and not very popular so github is likely not going to notice a bandwidth increase on their servers anyway. I think github is against becoming a download website to reduce their costs and focus on being a source revision system, not a distribution system like sourceforge. From michalis.kambi at gmail.com Wed Apr 12 16:15:00 2017 From: michalis.kambi at gmail.com (Michalis Kamburelis) Date: Wed, 12 Apr 2017 16:15:00 +0200 Subject: [Lazarus] Online Package Manager In-Reply-To: <819b27bf2304cb711b568b11f011a4cf@z505.com> References: <819b27bf2304cb711b568b11f011a4cf@z505.com> Message-ID: 2017-04-12 14:56 GMT+02:00 Lars via Lazarus : > Is github okay with this idea though as they are really not a download > system like sourceforge or google code... > > They are more for source revision and not so much for final release > downloads, although, this needs to be clarified as you can indeed just make > a tag to release.. But as soon as you start distributing binaries on github, > it sort of violates their policy. But, I suppose pacakages are not binaries > like a final exe release of a program to be shipped. And lazarus/fpc is > fairly uncommon and not very popular so github is likely not going to notice > a bandwidth increase on their servers anyway. I think github is against > becoming a download website to reduce their costs and focus on being a > source revision system, not a distribution system like sourceforge. > GitHub is absolutely fine with uploading binary packages as a release. You can make a release on GitHub where a specific version of your source is accompanied by your binaries. https://help.github.com/articles/creating-releases/ Regards, Michalis From getmem1 at gmail.com Wed Apr 12 18:19:22 2017 From: getmem1 at gmail.com (=?UTF-8?Q?Bal=C3=A1zs_Sz=C3=A9kely?=) Date: Wed, 12 Apr 2017 09:19:22 -0700 (MST) Subject: [Lazarus] Online Package Manager In-Reply-To: References: Message-ID: <1492013962656-4051353.post@n3.nabble.com> @Lars > With online package managers there is the problem of centrally locating > all packages at a single URL or repository, correct? Yes. > So which url will be used? Sourceforge, freepascal.org... Our own: http://packages.lazarus-ide.org/ > Whatever happened to the freepascal package download system at the command > line? was that ever implemented? sorry I am not up to date on it.. It was abandoned for a long time. AFAIK is under development again, @joost is working on it. > One advantage of a central package system is that it encourages people to > upload their packages, such as like torry.net. Whereas if each guy has his > own website and then his website goes down or he quits programming, that > package on his site gets lost and people must use archive.org or brute > force techniques to find it online... Yes I agree! This is one of the reason we decide to go with a central repository. Each package can be also updated from the developers webpage(it can be anything: sourceforge, github, personal page, etc...) -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Online-Package-Manager-tp4049766p4051353.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. From robin.listas at telefonica.net Wed Apr 12 23:05:52 2017 From: robin.listas at telefonica.net (Carlos E. R.) Date: Wed, 12 Apr 2017 23:05:52 +0200 (CEST) Subject: [Lazarus] How can I write to arbitrary position on device Message-ID: Hi, I'm new on this list, so if I should post this to a different place, just tell me. I want to find a function that I can use on Linux to write a memory block to an arbitrary position on a device, say, /dev/sda or /dev/sda5 . I can do that on an opened file with seek() and write(), but apparently only on files. I need accessing the raw disk device. So currently I call 'dd' instead. I also had problems with blockread/write: it failed reading more than one megabyte. -- Cheers Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar) From james.mcjohnson at protonmail.com Thu Apr 13 06:32:48 2017 From: james.mcjohnson at protonmail.com (James.mcjohnson) Date: Thu, 13 Apr 2017 00:32:48 -0400 Subject: [Lazarus] Vulkan Library for FreePascal/Lazarus Message-ID: This is both an announcement and request for help for an open source FreePascal project which strives to provide: 1) a low level access to Vulkan API created directly from the vk.xml specification 2) high level wrapper classes for ease of integration in an FP/Lazarus project The project is located at https://github.com/james-mcjohnson/VulkanLibraryForFreePascal and I would appreciate any constructive feedback. It is my hope that a better programmer than I am will take an interest and help create a truly useful Vulkan Library for FreePascal. -James [mutiple attempts to post; re-subscribed to mail list in hopes that this one will take] -------------- next part -------------- An HTML attachment was scrubbed... URL: From markMLl.lazarus at telemetry.co.uk Thu Apr 13 09:15:17 2017 From: markMLl.lazarus at telemetry.co.uk (Mark Morgan Lloyd) Date: Thu, 13 Apr 2017 07:15:17 +0000 Subject: [Lazarus] How can I write to arbitrary position on device In-Reply-To: References: Message-ID: On 12/04/17 21:30, Carlos E. R. via Lazarus wrote: > Hi, > I'm new on this list, so if I should post this to a different place, > just tell me. > I want to find a function that I can use on Linux to write a memory > block to an arbitrary position on a device, say, /dev/sda or /dev/sda5 . > I can do that on an opened file with seek() and write(), but apparently > only on files. I need accessing the raw disk device. So currently I call > 'dd' instead. > I also had problems with blockread/write: it failed reading more than > one megabyte. That's interesting, I need to look at some medium testing stuff over the next few days and was assuming I'd need to check the dd sources. Are you running as root to get direct access to the device? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] From Sascha.Hestermann at gmx.de Thu Apr 13 09:57:30 2017 From: Sascha.Hestermann at gmx.de (Gabor Boros) Date: Thu, 13 Apr 2017 16:57:30 +0900 Subject: [Lazarus] =?utf-8?q?awesome_book?= Message-ID: <1181163498.20170413105730@gmx.de> Greetings, I wanted to share with you my impressions about a book I've just finished reading, it's awesome, you can find my review here http://hncg.com.cn/easy.php?0a0b Be well, Gabor Boros -------------- next part -------------- An HTML attachment was scrubbed... URL: From info at voiceliveeditor.com Thu Apr 13 10:04:06 2017 From: info at voiceliveeditor.com (info at voiceliveeditor.com) Date: Thu, 13 Apr 2017 09:04:06 +0100 Subject: [Lazarus] awesome book In-Reply-To: <1181163498.20170413105730@gmx.de> References: <1181163498.20170413105730@gmx.de> Message-ID: Another SPAM from email address Sascha.Hestermann at gmx.de pretending to be Gabor Boros. From: Gabor Boros via Lazarus Sent: Thursday, April 13, 2017 8:57 AM To: Lazarus mailing list ; Lazarus Cc: Gabor Boros Subject: [Lazarus] awesome book Greetings, I wanted to share with you my impressions about a book I've just finished reading, it's awesome, you can find my review here open message Be well, Gabor Boros -------------------------------------------------------------------------------- -- _______________________________________________ Lazarus mailing list Lazarus at lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: From badsectoracula at gmail.com Thu Apr 13 11:30:53 2017 From: badsectoracula at gmail.com (Kostas Michalopoulos) Date: Thu, 13 Apr 2017 12:30:53 +0300 Subject: [Lazarus] Vulkan Library for FreePascal/Lazarus In-Reply-To: References: Message-ID: This is nice, although personally i do not like the use of multiple inc files. I think Benjamin Rosseaux's pasvulkan does it better with creating a single pas file (he also uses a unit from the vk.xml file): https://github.com/BeRo1985/pasvulkan/blob/master/src/Vulkan.pas On Thu, Apr 13, 2017 at 7:32 AM, James.mcjohnson via Lazarus < lazarus at lists.lazarus-ide.org> wrote: > This is both an announcement and request for help for an open source > FreePascal project which strives to provide: > 1) a low level access to Vulkan API created directly from the vk.xml > specification > 2) high level wrapper classes for ease of integration in an FP/Lazarus > project > > The project is located at https://github.com/james-mcjohnson/ > VulkanLibraryForFreePascal and I would appreciate any constructive > feedback. > > It is my hope that a better programmer than I am will take an interest and > help create a truly useful Vulkan Library for FreePascal. > > -James > > [mutiple attempts to post; re-subscribed to mail list in hopes that this > one will take] > > -- > _______________________________________________ > Lazarus mailing list > Lazarus at lists.lazarus-ide.org > http://lists.lazarus-ide.org/listinfo/lazarus > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From robin.listas at telefonica.net Thu Apr 13 13:21:25 2017 From: robin.listas at telefonica.net (Carlos E. R.) Date: Thu, 13 Apr 2017 13:21:25 +0200 Subject: [Lazarus] How can I write to arbitrary position on device In-Reply-To: References: Message-ID: On 2017-04-13 09:15, Mark Morgan Lloyd via Lazarus wrote: > On 12/04/17 21:30, Carlos E. R. via Lazarus wrote: >> Hi, >> I'm new on this list, so if I should post this to a different place, >> just tell me. >> I want to find a function that I can use on Linux to write a memory >> block to an arbitrary position on a device, say, /dev/sda or /dev/sda5 . >> I can do that on an opened file with seek() and write(), but apparently >> only on files. I need accessing the raw disk device. So currently I call >> 'dd' instead. >> I also had problems with blockread/write: it failed reading more than >> one megabyte. > > That's interesting, I need to look at some medium testing stuff over the > next few days and was assuming I'd need to check the dd sources. Are you > running as root to get direct access to the device? Thanks for responding. :-) I had and idea, tried it, and it worked. I simply assign: assign(Fout, '/dev/sdc'); Reset (Fout); The file can be a file of bytes, or in my case, a typed file (of an array). Works perfectly, I can write chunks at 180 MiB/s. :-) For writing to some position, I assume I could use Seek(). I haven't tried. Yes, of course, even for testing you need being root to run the code. So the IDE runs as my user, the code in another terminal as root. Scary, because I write directly to /dev/sdc (I'm filling the disk with random data fast, prior to encrypting it. 7 hours for a 4TB disk). Perhaps I could instead chmod or chown the device [...] Yes, it works, better! It is undone on reboot, but that doesn't matter. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From michalis.kambi at gmail.com Thu Apr 13 18:34:50 2017 From: michalis.kambi at gmail.com (Michalis Kamburelis) Date: Thu, 13 Apr 2017 18:34:50 +0200 Subject: [Lazarus] Vulkan Library for FreePascal/Lazarus In-Reply-To: References: Message-ID: a2017-04-13 11:30 GMT+02:00 Kostas Michalopoulos via Lazarus : > This is nice, although personally i do not like the use of multiple inc > files. I think Benjamin Rosseaux's pasvulkan does it better with creating a > single pas file (he also uses a unit from the vk.xml file): > > https://github.com/BeRo1985/pasvulkan/blob/master/src/Vulkan.pas > > > > On Thu, Apr 13, 2017 at 7:32 AM, James.mcjohnson via Lazarus > wrote: >> >> This is both an announcement and request for help for an open source >> FreePascal project which strives to provide: >> 1) a low level access to Vulkan API created directly from the vk.xml >> specification >> 2) high level wrapper classes for ease of integration in an FP/Lazarus >> project >> >> The project is located at >> https://github.com/james-mcjohnson/VulkanLibraryForFreePascal and I would >> appreciate any constructive feedback. >> >> It is my hope that a better programmer than I am will take an interest and >> help create a truly useful Vulkan Library for FreePascal. >> I want to add Vulkan renderer to Castle Game Engine later this year. Now I don't know which project to choose:) Both approaches (https://github.com/james-mcjohnson/VulkanLibraryForFreePascal and https://github.com/BeRo1985/pasvulkan ) seem very fine to me, - in both cases you generate the Pascal code automatically from vk.xml, - in both cases you provide a nicely-looking OOP API, - both projects have suitable open-source licenses (MIT or zlib). I don't mind a couple of include files, they actually include readability for me. (I know, it's a matter of taste -- do you prefer to navigate multiple smaller files, or navigate one big file.) @James, would you mind removing the "Public Service Announcement" from https://github.com/james-mcjohnson/VulkanLibraryForFreePascal/blob/master/LICENSE.md ? Don't get me wrong, I understand that you want to promote your faith and I respect that. Having this in README files, and Pascal sources, is absolutely OK. But I'm not a lawyer, and I'm unsure how it affects the legal text of the license. Having just an "unmodified MIT license" would feel safer for me. Regards, Michalis From michalis.kambi at gmail.com Thu Apr 13 18:47:47 2017 From: michalis.kambi at gmail.com (Michalis Kamburelis) Date: Thu, 13 Apr 2017 18:47:47 +0200 Subject: [Lazarus] Online Package Manager In-Reply-To: <2c11d017ff5628cc07124689843e954f@z505.com> References: <819b27bf2304cb711b568b11f011a4cf@z505.com> <2c11d017ff5628cc07124689843e954f@z505.com> Message-ID: 2017-04-12 16:26 GMT+02:00 : > On 2017-04-12 09:15, Michalis Kamburelis wrote: >> >> >> GitHub is absolutely fine with uploading binary packages as a release. >> You can make a release on GitHub where a specific version of your >> source is accompanied by your binaries. >> https://help.github.com/articles/creating-releases/ >> >> Regards, >> Michalis > > > > I've heard mixed reviews on whether github can be used like a sourceforge > distribution of downloads.. for example quotes like this exist on the > internet : > > "Also, GitHub repos do have limits. You cannot use a repo like a file > distribution service. GitHub will notice and shutdown the account especially > if it affects other repositories." > > However, Github can change their policies over time. > > Source of quote: > http://www.infoworld.com/article/3028174/open-source-tools/what-would-you-do-if-github-shut-down-tomorrow.html Your quote suggests that someone committed large files to his/her GIT repository. This is not a good practice -- aside from GitHub disk space, it makes cloning the repository troublesome (you download all the binaries then, across all the history, by default). The solution is to follow both GitHub guidelines and general version control systems (GIT or not GIT) guidelines, and do not commit your large binary files to the repository. This is not how to you make a release on GitHub, see https://help.github.com/articles/creating-releases/ -- you upload binary files using a separate form in that case. This is also the advised way by GitHub to distribute large files: https://help.github.com/articles/distributing-large-binaries/ Note that I'm in no way an unconditional fan of GitHub (or GIT, for that matter:). I'm only reading GitHub docs and concluding that they are fine with binary releases, when done using their "upload a release" system. P.S. Cc back to the Lazarus list:) Regards, Michalis From parkingspace26 at yahoo.com Thu Apr 13 20:32:43 2017 From: parkingspace26 at yahoo.com (Bob B.) Date: Thu, 13 Apr 2017 18:32:43 +0000 (UTC) Subject: [Lazarus] Lazarus for Chromebook (Chrome OS)? References: <165356283.1493603.1492108363362.ref@mail.yahoo.com> Message-ID: <165356283.1493603.1492108363362@mail.yahoo.com> Millions of Chromebooks are sold quarterly, and that will increase because schools in USA are now providing them to students.  Also Chrome OS now runs Android apps (if the processor is capable).  Any chance of Laz for Chrome OS? Just thought I would ask. Bob B. -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Fri Apr 14 08:21:09 2017 From: michael at freepascal.org (Michael Van Canneyt) Date: Fri, 14 Apr 2017 08:21:09 +0200 (CEST) Subject: [Lazarus] Lazarus for Chromebook (Chrome OS)? In-Reply-To: <165356283.1493603.1492108363362@mail.yahoo.com> References: <165356283.1493603.1492108363362.ref@mail.yahoo.com> <165356283.1493603.1492108363362@mail.yahoo.com> Message-ID: On Thu, 13 Apr 2017, Bob B. via Lazarus wrote: > Millions of Chromebooks are sold quarterly, and that will increase because schools in USA are now providing them to students.  Also Chrome OS now runs Android apps (if the processor is capable).  Any chance of Laz for Chrome OS? > Just thought I would ask. As far as I am aware, a chromebook is a linux with chrome installed, maybe now with an Android layer. So in theory it is possible, but I don't know if anyone has tried to get it to work. I also don't know what CPU is used by the chromebook. Michael. From aaa5500 at ya.ru Fri Apr 14 09:18:49 2017 From: aaa5500 at ya.ru (Alexey) Date: Fri, 14 Apr 2017 10:18:49 +0300 Subject: [Lazarus] Compiling Cudatext on RPi 3 Message-ID: Hi, I'm new to RPi 3. only byed it (sum is bigger than in Europe). Maybe someone helps to compile CudaText on RPi, ie ARM. I can distribute compiled app. as ARM version. On Raspbian i don't know how to install Lazarus, FPC, svn .. ps. I can put to site url to your homepage (with compiled arm version) -- Regards, Alexey From markMLl.lazarus at telemetry.co.uk Fri Apr 14 10:34:00 2017 From: markMLl.lazarus at telemetry.co.uk (Mark Morgan Lloyd) Date: Fri, 14 Apr 2017 08:34:00 +0000 Subject: [Lazarus] Compiling Cudatext on RPi 3 In-Reply-To: References: Message-ID: On 14/04/17 07:30, Alexey via Lazarus wrote: > Hi, > I'm new to RPi 3. only byed it (sum is bigger than in Europe). > Maybe someone helps to compile CudaText on RPi, ie ARM. I can distribute > compiled app. as ARM version. On Raspbian i don't know how to install > Lazarus, FPC, svn .. > ps. I can put to site url to your homepage (with compiled arm version) http://wiki.lazarus.freepascal.org/Raspbian http://wiki.freepascal.org/Lazarus_on_Raspberry_Pi And please stop sending me direct emails. I've already said- twice- that this is the place to discuss it, and sending me a third this morning is doing nothing to make me more cooperative. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] From zmuogs at gmail.com Fri Apr 14 19:35:20 2017 From: zmuogs at gmail.com (=?UTF-8?Q?Valdas_Jank=c5=abnas?=) Date: Fri, 14 Apr 2017 20:35:20 +0300 Subject: [Lazarus] Alpha blending in GTK2 under Linux Message-ID: Hello, I working with alpha blending. On QT it works fine. On GTK2 I get "Depth: 24" when executing "GetDescriptionFromDevice(0)" (on QT -> 32). Why GTK2 "screen" not supports alpha? It is strange because if I load PNG with transparency (image with gradient) into TImage then I clearly can see alpha blending effect on GTK2 when image is diplayed. Maybe I must to use "GetDescriptionFromDevice" not from screen? From where then? There is full "DataDescription" on GTK2: Format: ricfRGBA Width: 3 Height: 3 Depth: 24 BitOrder: riboBitsInOrder ByteOrder: riboLSBFirst LineOrder: riloTopToBottom LineEnd: rileDWordBoundary BitsPerPixel: 32 RedPrec: 8 RedShift: 16 GreenPrec: 8 GreenShift: 8 BluePrec: 8 BlueShift: 0 AlphaPrec: 0 AlphaShift: 0 MaskBitsPerPixel: 1 PaletteColorCount: 0 System Kubuntu 16.10; lazarus 1.9.0; fpc 3.0.0. P.S. sorry for my bad English. -- Valdas Jankūnas From marc at dommelstein.nl Fri Apr 14 21:02:58 2017 From: marc at dommelstein.nl (Marc Weustink) Date: Fri, 14 Apr 2017 21:02:58 +0200 Subject: [Lazarus] Alpha blending in GTK2 under Linux In-Reply-To: References: Message-ID: On April 14, 2017 7:35:20 PM GMT+02:00, "Valdas Jankūnas via Lazarus" wrote: >Hello, > >I working with alpha blending. On QT it works fine. On GTK2 I get >"Depth: 24" when executing "GetDescriptionFromDevice(0)" (on QT -> 32). > >Why GTK2 "screen" not supports alpha? > It is strange because if I load PNG with transparency (image with >gradient) into TImage then I clearly can see alpha blending effect on >GTK2 when image is diplayed. Iirc (its long ago when i implemented it) the alphablending is done by the underlying rawimage implementation Marc From zmuogs at gmail.com Fri Apr 14 21:23:43 2017 From: zmuogs at gmail.com (=?UTF-8?Q?Valdas_Jank=c5=abnas?=) Date: Fri, 14 Apr 2017 22:23:43 +0300 Subject: [Lazarus] Alpha blending in GTK2 under Linux In-Reply-To: References: Message-ID: <4c923e9e-bd03-0fca-ec67-39c4b9d676e6@gmail.com> 2017.04.14 22:02, Marc Weustink via Lazarus rašė: >> Why GTK2 "screen" not supports alpha? >> It is strange because if I load PNG with transparency (image with >> gradient) into TImage then I clearly can see alpha blending effect on >> GTK2 when image is diplayed. > > Iirc (its long ago when i implemented it) the alphablending is done by the underlying rawimage implementation > > Marc I tried to put 32 bit image in to TImage (on GTK2) and alphablending works. Is this means that I can always put an image with 32 bit depth in to TImage when "GetDescriptionFromDevice(0)" says "screen" supports "Depth: 24"? If not always then how to know when I can? -- Valdas Jankūnas From badsectoracula at gmail.com Sun Apr 16 01:53:00 2017 From: badsectoracula at gmail.com (Kostas Michalopoulos) Date: Sun, 16 Apr 2017 02:53:00 +0300 Subject: [Lazarus] Alpha blending in GTK2 under Linux In-Reply-To: <4c923e9e-bd03-0fca-ec67-39c4b9d676e6@gmail.com> References: <4c923e9e-bd03-0fca-ec67-39c4b9d676e6@gmail.com> Message-ID: Lazarus uses GDK instead of Cairo for most graphics stuff in GTK2 and GDK simply wraps X11 which doesn't support alpha blending. AFAIK GTK2 was using only GDK for graphics but at some point they switched to Cairo which does all graphics operations in the CPU and allows for alpha blending in X11. However Lazarus didn't switch (i suppose for binary compatibility with GTK2 versions that didn't have Cairo). As a result practically all images from Lazarus to GTK2 had their alpha channel dropped, including toolbar icons, messages, etc. I submitted a patch for this a few years ago that handles the most common action - drawing a bitmap to a widget or another bitmap. This is a special case and doesn't fix the issue entirely, but at least allows toolbars, buttons, timages, etc to do alpha blending. A proper full fix would be to rewrite all GTK2 graphics code to use Cairo instead of GDK, but that would take a lot of time, can break existing applications due to unforeseen bugs and with GTK2 being obsoleted in favor of GTK3 i am not sure if it is worth the effort. For further details you can check bug 25491 here: http://mantis.freepascal.org/view.php?id=25491 On Fri, Apr 14, 2017 at 10:23 PM, Valdas Jankūnas via Lazarus < lazarus at lists.lazarus-ide.org> wrote: > 2017.04.14 22:02, Marc Weustink via Lazarus rašė: > > Why GTK2 "screen" not supports alpha? >>> It is strange because if I load PNG with transparency (image with >>> gradient) into TImage then I clearly can see alpha blending effect on >>> GTK2 when image is diplayed. >>> >> >> Iirc (its long ago when i implemented it) the alphablending is done by >> the underlying rawimage implementation >> >> Marc >> > > I tried to put 32 bit image in to TImage (on GTK2) and alphablending > works. Is this means that I can always put an image with 32 bit depth in to > TImage when "GetDescriptionFromDevice(0)" says "screen" supports "Depth: > 24"? If not always then how to know when I can? > > > -- > Valdas Jankūnas > > -- > _______________________________________________ > Lazarus mailing list > Lazarus at lists.lazarus-ide.org > http://lists.lazarus-ide.org/listinfo/lazarus > -------------- next part -------------- An HTML attachment was scrubbed... URL: From skalogryz.lists at gmail.com Mon Apr 17 14:31:21 2017 From: skalogryz.lists at gmail.com (Dmitry Boyarintsev) Date: Mon, 17 Apr 2017 08:31:21 -0400 Subject: [Lazarus] Vulkan Library for FreePascal/Lazarus In-Reply-To: References: Message-ID: On Thu, Apr 13, 2017 at 12:32 AM, James.mcjohnson via Lazarus < lazarus at lists.lazarus-ide.org> wrote: > The project is located at https://github.com/james-mcjohnson/ > VulkanLibraryForFreePascal and I would appreciate any constructive > feedback. > Added to the wiki http://wiki.freepascal.org/Vulkan#Headers thanks, Dmitry -------------- next part -------------- An HTML attachment was scrubbed... URL: From nc-gaertnma at netcologne.de Mon Apr 17 14:53:18 2017 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Mon, 17 Apr 2017 14:53:18 +0200 Subject: [Lazarus] Alpha blending in GTK2 under Linux In-Reply-To: References: <4c923e9e-bd03-0fca-ec67-39c4b9d676e6@gmail.com> Message-ID: <20170417145318.347296b9@limapholos.matflo.wg> On Sun, 16 Apr 2017 02:53:00 +0300 Kostas Michalopoulos via Lazarus wrote: >[...] > A proper full fix would be to rewrite all GTK2 graphics code to use Cairo > instead of GDK, but that would take a lot of time, can break existing > applications You can do it with IFDEFs. > due to unforeseen bugs and with GTK2 being obsoleted in favor > of GTK3 i am not sure if it is worth the effort. A strong point. IMO you should better spend your time on improving the LCL Gtk3 interface. Mattias From dec12 at avidsoft.com.hk Tue Apr 18 16:49:08 2017 From: dec12 at avidsoft.com.hk (Dennis) Date: Tue, 18 Apr 2017 22:49:08 +0800 Subject: [Lazarus] GUI multithreaded Win32 program sometimes freeze when quitting Message-ID: <58F62764.1040009@avidsoft.com.hk> I have an win32 multithreaded program written in lazarus 1.7, FPC 3.1.1 From time to time, when it quits, it will freezes and from the task manager, the program will occupies the entire CPU core. I noticed that it will happen more often if: 1) constructor TMyComponent.Create(TheOwner : TComponent); begin self.some_component := TSomeComponent.Create(TheOwner); end; instead of constructor TMyComponent.Create(TheOwner : TComponent); begin self.some_component := TSomeComponent.Create(self); end; 2) if the program executes some methods of a nil object 3) if I don't do a build all when some common units are changed by another project. Since this freezing behaviour does not happen during debugging, I have spent months trying to fix it but failed. Any suggestions are welcome. Dennis From bartjunk64 at gmail.com Tue Apr 18 18:58:39 2017 From: bartjunk64 at gmail.com (Bart) Date: Tue, 18 Apr 2017 18:58:39 +0200 Subject: [Lazarus] GUI multithreaded Win32 program sometimes freeze when quitting In-Reply-To: <58F62764.1040009@avidsoft.com.hk> References: <58F62764.1040009@avidsoft.com.hk> Message-ID: On 4/18/17, Dennis via Lazarus wrote: > I noticed that it will happen more often if: > 1) > constructor TMyComponent.Create(TheOwner : TComponent); > begin > > self.some_component := TSomeComponent.Create(TheOwner); > end; A bit OT, but would think that is bad practice. Bart From ganmax at narod.ru Tue Apr 18 23:44:34 2017 From: ganmax at narod.ru (Maxim Ganetsky) Date: Wed, 19 Apr 2017 00:44:34 +0300 Subject: [Lazarus] Call for translations updates for 1.8 release Message-ID: <2ccacec0-7797-c4d5-0fb2-7f9341672d07@narod.ru> Hello. Now that Lazarus 1.8 branch has been created it is time for translators to review and update their translations. Check out fixes branch (http://svn.freepascal.org/svn/lazarus/branches/fixes_1_8 ), review and update your translations and post updates to our bugtracker. See \languages\README.txt for details. Mark your reports with Lazarus version clearly in order to avoid confusion. -- Best regards, Maxim Ganetsky mailto:ganmax at narod.ru From mailinglists at geldenhuys.co.uk Wed Apr 19 12:19:53 2017 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Wed, 19 Apr 2017 11:19:53 +0100 Subject: [Lazarus] Code formatting help needed with Case statement Message-ID: <8fef3c10-248b-41c1-2eec-025c597d2fe3@geldenhuys.co.uk> Hi, I'm using the built-in JEDI Code Formatter. When I format my code, the case statement ends up looking as follows: case Visited.ObjectState of posCreate: begin // my code goes here end; posUpdate: begin // my code goes here end; posDelete: begin // my code goes here end; end; What I would like is for the begin..end block to have an extra indentation level as seen below: case Visited.ObjectState of posCreate: begin // my code goes here end; posUpdate: begin // my code goes here end; posDelete: begin // my code goes here end; end; Does anybody know if this is possible with JCF, and if so, what setting controls this? I toggled the "Clarify -> Indentation -> Extra indent for case..else blocks" but that didn't change anything (as I expected). I assume that setting applies only for ELSE blocks in a CASE statement, which my above code example doesn't have. Any help would be much appreciated. 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 From sysrpl at gmail.com Wed Apr 19 15:54:58 2017 From: sysrpl at gmail.com (Anthony Walter) Date: Wed, 19 Apr 2017 09:54:58 -0400 Subject: [Lazarus] Quick Video: A Web Application Message-ID: This isn't a free pascal or lazarus project, but something I wrote using typescript quite a while ago. http://cache.getlazarus.org/videos/cloud-files.mp4 I thought you guys might want to look at and digest it for the following reasons. Obviously it's an application, but one which mimics a desktop program. It reads/write files, uses dialogs, has keyboard shortcuts/navigation, and presents an interactive list view like set of data. In short a lot of the same things you might have when or if you had written a desktop app, the main difference being you need not install the app, rather you use any modern browser and visit a web page. As such maybe you lazarus developers might benefit by taking a step back and looking at something other if only for a brief moment. If the above app stirs any questions/discussions, I'd be more than happy to share. Yes I still love free pascal and lazarus and have a cool project in the works using it. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Wed Apr 19 16:14:54 2017 From: michael at freepascal.org (Michael Van Canneyt) Date: Wed, 19 Apr 2017 16:14:54 +0200 (CEST) Subject: [Lazarus] Quick Video: A Web Application In-Reply-To: References: Message-ID: On Wed, 19 Apr 2017, Anthony Walter via Lazarus wrote: > This isn't a free pascal or lazarus project, but something I wrote using > typescript quite a while ago. > > http://cache.getlazarus.org/videos/cloud-files.mp4 Soon, you'll be able to write this app in Free Pascal. Michael. From l.rame at griensu.com Wed Apr 19 16:28:12 2017 From: l.rame at griensu.com (=?UTF-8?Q?Leonardo_M._Ram=c3=a9?=) Date: Wed, 19 Apr 2017 11:28:12 -0300 Subject: [Lazarus] Quick Video: A Web Application In-Reply-To: References: Message-ID: El 19/04/17 a las 11:14, Michael Van Canneyt via Lazarus escribió: > > > On Wed, 19 Apr 2017, Anthony Walter via Lazarus wrote: > >> This isn't a free pascal or lazarus project, but something I wrote using >> typescript quite a while ago. >> >> http://cache.getlazarus.org/videos/cloud-files.mp4 > > Soon, you'll be able to write this app in Free Pascal. > How? what's cooking?. -- Leonardo M. Ramé Medical IT - Griensu S.A. Av. Colón 636 - Piso 8 Of. A X5000EPT -- Córdoba Tel.: +54(351)4246924 +54(351)4247788 +54(351)4247979 int. 19 Cel.: +54 9 (011) 40871877 From mailinglists at geldenhuys.co.uk Wed Apr 19 16:31:07 2017 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Wed, 19 Apr 2017 15:31:07 +0100 Subject: [Lazarus] Quick Video: A Web Application In-Reply-To: References: Message-ID: <48574413-7f52-ea91-439b-b1f868c92891@geldenhuys.co.uk> On 2017-04-19 14:54, Anthony Walter via Lazarus wrote: > This isn't a free pascal or lazarus project, but something I wrote using > typescript quite a while ago. That's very impressive. I'm still amazed at what is actually possible via a web browser - other than just viewing web pages. Thanks for sharing. Regards, Graeme From sysrpl at gmail.com Wed Apr 19 17:09:44 2017 From: sysrpl at gmail.com (Anthony Walter) Date: Wed, 19 Apr 2017 11:09:44 -0400 Subject: [Lazarus] Quick Video: A Web Application In-Reply-To: <48574413-7f52-ea91-439b-b1f868c92891@geldenhuys.co.uk> References: <48574413-7f52-ea91-439b-b1f868c92891@geldenhuys.co.uk> Message-ID: Thank you all for the feedback and discussion. From me, the implementer and designer, I can say the most difficult part of creating this project, and in most projects, is not the actual programming. It's the creation of the user interface design. Choosing and creating a layout, and deciding on css values. That by far took more time than the actual code, and I'm sure that part could be vastly improved. The sad thing is with more design capability (html/css/images) the harder it is to create a final stylized application. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mschnell at lumino.de Wed Apr 19 16:58:06 2017 From: mschnell at lumino.de (Michael Schnell) Date: Wed, 19 Apr 2017 16:58:06 +0200 Subject: [Lazarus] Quick Video: A Web Application In-Reply-To: <48574413-7f52-ea91-439b-b1f868c92891@geldenhuys.co.uk> References: <48574413-7f52-ea91-439b-b1f868c92891@geldenhuys.co.uk> Message-ID: On 19.04.2017 16:31, Graeme Geldenhuys via Lazarus wrote: > That's very impressive. I'm still amazed at what is actually possible > via a web browser - other than just viewing web pages. Thanks for sharing. > In fact my little QNAP NAS (an ARM Linux Box) features a GUI vi Browser that is very similar to a Gui that would have been designed by using the Lazarus IDE. AFAIK, they transfer a lot of Java Script from the server to the bowser to have the appropriate widgets created there. So this seems rather standard since some years. It would be great if Lazarus would b able to seamlessly create such programs (even more up to date, versatile and fast: using WebAssembly compiled from Pascal instead of hand crafted Java Script). -Michael From mailinglists at geldenhuys.co.uk Wed Apr 19 17:21:41 2017 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Wed, 19 Apr 2017 16:21:41 +0100 Subject: [Lazarus] Quick Video: A Web Application In-Reply-To: References: <48574413-7f52-ea91-439b-b1f868c92891@geldenhuys.co.uk> Message-ID: <77565008-1bdc-30a1-7851-020538063002@geldenhuys.co.uk> On 2017-04-19 15:58, Michael Schnell via Lazarus wrote: > Lazarus would b able to seamlessly create such programs (even more up to > date, versatile and fast: using WebAssembly compiled from Pascal instead > of hand crafted Java Script). I believe that is what Michael van Canneyt is working on. Regards, Graeme From sysrpl at gmail.com Wed Apr 19 19:15:12 2017 From: sysrpl at gmail.com (Anthony Walter) Date: Wed, 19 Apr 2017 13:15:12 -0400 Subject: [Lazarus] Quick Video: A Web Application In-Reply-To: <77565008-1bdc-30a1-7851-020538063002@geldenhuys.co.uk> References: <48574413-7f52-ea91-439b-b1f868c92891@geldenhuys.co.uk> <77565008-1bdc-30a1-7851-020538063002@geldenhuys.co.uk> Message-ID: Here are the typescript files: https://github.com/sysrpl/Codebot.Files I'll add the C# file backend after I remove my salt and private keys, and denote to other people that they need to add their own salt and private keys. For the curious, here is what the file with main() looks like: https://github.com/sysrpl/Codebot.Files/blob/master/app/manager/manager.ts -------------- next part -------------- An HTML attachment was scrubbed... URL: From aaa5500 at ya.ru Thu Apr 20 06:47:29 2017 From: aaa5500 at ya.ru (Alexey) Date: Thu, 20 Apr 2017 07:47:29 +0300 Subject: [Lazarus] For issue #31638 (gtk2 function that require free mem) Message-ID: <94dfa1a6-e488-2d0d-93ac-255f195cb319@ya.ru> + if Assigned(Path) then + begin + AStr := gtk_tree_path_to_string(path); + AIsSet := (StrToInt(AStr) = AIndex); + if AStr <> nil then + g_free(AStr); + if Path <> nil then + gtk_tree_path_free(Path); + Result := True; + end; 1- not need in last check "if Path<>nil", checked before 2- better StrToIntDef(AStr, -1) to not give exception (cannot comment there.) Alexey From joao.kho at gmail.com Thu Apr 20 09:01:01 2017 From: joao.kho at gmail.com (Joao Kho) Date: Thu, 20 Apr 2017 14:01:01 +0700 Subject: [Lazarus] Alpha blending in GTK2 under Linux In-Reply-To: <20170417145318.347296b9@limapholos.matflo.wg> References: <4c923e9e-bd03-0fca-ec67-39c4b9d676e6@gmail.com> <20170417145318.347296b9@limapholos.matflo.wg> Message-ID: Still has Graphics32 and AGG library? On Mon, Apr 17, 2017 at 7:53 PM, Mattias Gaertner via Lazarus < lazarus at lists.lazarus-ide.org> wrote: > On Sun, 16 Apr 2017 02:53:00 +0300 > Kostas Michalopoulos via Lazarus wrote: > > >[...] > > A proper full fix would be to rewrite all GTK2 graphics code to use Cairo > > instead of GDK, but that would take a lot of time, can break existing > > applications > > You can do it with IFDEFs. > > > due to unforeseen bugs and with GTK2 being obsoleted in favor > > of GTK3 i am not sure if it is worth the effort. > > A strong point. IMO you should better spend your time on improving the > LCL Gtk3 interface. > > Mattias > -- > _______________________________________________ > Lazarus mailing list > Lazarus at lists.lazarus-ide.org > http://lists.lazarus-ide.org/listinfo/lazarus > -------------- next part -------------- An HTML attachment was scrubbed... URL: From joao.kho at gmail.com Thu Apr 20 09:10:11 2017 From: joao.kho at gmail.com (Joao Kho) Date: Thu, 20 Apr 2017 14:10:11 +0700 Subject: [Lazarus] Alpha blending in GTK2 under Linux In-Reply-To: References: <4c923e9e-bd03-0fca-ec67-39c4b9d676e6@gmail.com> <20170417145318.347296b9@limapholos.matflo.wg> Message-ID: And, I think Lazarus more make / stable on win32 than linux, what you do on linux majorly doing command program / services On Thu, Apr 20, 2017 at 2:01 PM, Joao Kho wrote: > Still has Graphics32 and AGG library? > > On Mon, Apr 17, 2017 at 7:53 PM, Mattias Gaertner via Lazarus < > lazarus at lists.lazarus-ide.org> wrote: > >> On Sun, 16 Apr 2017 02:53:00 +0300 >> Kostas Michalopoulos via Lazarus wrote: >> >> >[...] >> > A proper full fix would be to rewrite all GTK2 graphics code to use >> Cairo >> > instead of GDK, but that would take a lot of time, can break existing >> > applications >> >> You can do it with IFDEFs. >> >> > due to unforeseen bugs and with GTK2 being obsoleted in favor >> > of GTK3 i am not sure if it is worth the effort. >> >> A strong point. IMO you should better spend your time on improving the >> LCL Gtk3 interface. >> >> Mattias >> -- >> _______________________________________________ >> Lazarus mailing list >> Lazarus at lists.lazarus-ide.org >> http://lists.lazarus-ide.org/listinfo/lazarus >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nc-gaertnma at netcologne.de Thu Apr 20 09:11:23 2017 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 20 Apr 2017 09:11:23 +0200 Subject: [Lazarus] For issue #31638 (gtk2 function that require free mem) In-Reply-To: <94dfa1a6-e488-2d0d-93ac-255f195cb319@ya.ru> References: <94dfa1a6-e488-2d0d-93ac-255f195cb319@ya.ru> Message-ID: <20170420091123.46242c85@limapholos.matflo.wg> On Thu, 20 Apr 2017 07:47:29 +0300 Alexey via Lazarus wrote: > + if Assigned(Path) then > + begin > + AStr := gtk_tree_path_to_string(path); > + AIsSet := (StrToInt(AStr) = AIndex); > + if AStr <> nil then > + g_free(AStr); > + if Path <> nil then > + gtk_tree_path_free(Path); > + Result := True; > + end; > > 1- not need in last check "if Path<>nil", checked before > 2- better StrToIntDef(AStr, -1) to not give exception > (cannot comment there.) Done. Thanks for the hint. Mattias From svaa at ciberpiula.net Thu Apr 20 09:54:09 2017 From: svaa at ciberpiula.net (Santiago A.) Date: Thu, 20 Apr 2017 09:54:09 +0200 Subject: [Lazarus] Quick Video: A Web Application In-Reply-To: References: <48574413-7f52-ea91-439b-b1f868c92891@geldenhuys.co.uk> Message-ID: <75d8bdcc-12af-1bae-63b4-62c9d58b9843@ciberpiula.net> El 19/04/2017 a las 17:09, Anthony Walter via Lazarus escribió: > Thank you all for the feedback and discussion. From me, the > implementer and designer, I can say the most difficult part of > creating this project, and in most projects, is not the actual > programming. It's the creation of the user interface design. Choosing > and creating a layout, and deciding on css values. That by far took > more time than the actual code, and I'm sure that part could be vastly > improved. Of course, GUIs are massive time consuming. Have you ever create a form by hand in runtime? That is what RAD and GUI designers were created for ;-) I'm afraid that the world is still waiting for a good GUI designer for web. -- Saludos Santiago A. svaa at ciberpiula.net From michael at freepascal.org Thu Apr 20 11:02:56 2017 From: michael at freepascal.org (Michael Van Canneyt) Date: Thu, 20 Apr 2017 11:02:56 +0200 (CEST) Subject: [Lazarus] Why lazarus is sorely needed: A plea for stability and backwards compatibility Message-ID: Hi, FPC/Lazarus really are amazing tools. And, more importantly, STABLE and backwards compatible. This latter may seem self-evident; but it is not. Let me illustrate why it is not: For work, we develop apps (android, iOS) for mobile. We do this using a HTML5 browser-based approach, creating a single-page app. Rationale: this way you need to develop only once and can target many mobile OSes, including the browser. We use some Javascript frameworks, and build tools (node and npm) To package the apps, we use Apache cordova, it can build for iOS and Android. (and some others) ** The dependencies and build problems are staggering. ** To build the app, i.e., create a single javascript file which is loaded in a HTML page, npm (the Node Package Manager) downloaded 1000 packages. In essence, to concatenate some files. To package the app for android, cordova downloaded another 350 packages. This is not counting the installs of a new Android development environment (which broke Cordova), gradle (because google doesn't include it any more) and java 1.8. (because the latest cordova suddenly required 1.8 instead of 1.7) Total number of downloads: well over 1500. Lines of code in our app: 1900 (spread over 20 files). The lessons: * Backwards compatibility is VERY important. * Keep dependencies to a minimum. * Object Pascal developers are spoilt (or maybe they simply know what they are doing). Lazarus needs to be spread more. The iOS and Android environments sorely need tools like Lazarus. Michael. From michael at freepascal.org Thu Apr 20 11:03:39 2017 From: michael at freepascal.org (Michael Van Canneyt) Date: Thu, 20 Apr 2017 11:03:39 +0200 (CEST) Subject: [Lazarus] Quick Video: A Web Application In-Reply-To: <75d8bdcc-12af-1bae-63b4-62c9d58b9843@ciberpiula.net> References: <48574413-7f52-ea91-439b-b1f868c92891@geldenhuys.co.uk> <75d8bdcc-12af-1bae-63b4-62c9d58b9843@ciberpiula.net> Message-ID: On Thu, 20 Apr 2017, Santiago A. via Lazarus wrote: > El 19/04/2017 a las 17:09, Anthony Walter via Lazarus escribió: >> Thank you all for the feedback and discussion. From me, the >> implementer and designer, I can say the most difficult part of >> creating this project, and in most projects, is not the actual >> programming. It's the creation of the user interface design. Choosing >> and creating a layout, and deciding on css values. That by far took >> more time than the actual code, and I'm sure that part could be vastly >> improved. > Of course, GUIs are massive time consuming. Have you ever create a form > by hand in runtime? > > That is what RAD and GUI designers were created for ;-) > > I'm afraid that the world is still waiting for a good GUI designer for web. We will deliver it :) Michael. From mailinglists at geldenhuys.co.uk Thu Apr 20 11:11:28 2017 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Thu, 20 Apr 2017 10:11:28 +0100 Subject: [Lazarus] Quick Video: A Web Application In-Reply-To: <75d8bdcc-12af-1bae-63b4-62c9d58b9843@ciberpiula.net> References: <48574413-7f52-ea91-439b-b1f868c92891@geldenhuys.co.uk> <75d8bdcc-12af-1bae-63b4-62c9d58b9843@ciberpiula.net> Message-ID: On 2017-04-20 08:54, Santiago A. via Lazarus wrote: > Of course, GUIs are massive time consuming. Have you ever create a form > by hand in runtime? Yes, many times. If you want to see the real ease of that (without needing a GUI Designer), then take a look at Java's MiGLayout layout engine. Absolutely brilliant, dynamic, requires little code, supports multiple size types (pixel, cm, mm, inches etc), knows the button order between OSX, Windows, and even supports a "debug overlay" to help you resolve layouting problems. http://miglayout.com/ This blogs shows a nice comparison of MiGLayout vs other Java layout options. Noticably you can see MiGLayout requires much less code and has many more features. https://objectcomputing.com/resources/publications/sett/may-2009-miglayout-the-one-java-layout-manager-that-does-it-all/ 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 From mailinglists at geldenhuys.co.uk Thu Apr 20 11:53:08 2017 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Thu, 20 Apr 2017 10:53:08 +0100 Subject: [Lazarus] Why lazarus is sorely needed: A plea for stability and backwards compatibility In-Reply-To: References: Message-ID: <056c3ee1-92c3-4fba-ad11-ac051de6c1aa@geldenhuys.co.uk> On 2017-04-20 10:02, Michael Van Canneyt via Lazarus wrote: > Total number of downloads: well over 1500. > Lines of code in our app: 1900 (spread over 20 files). That is totally insane. The worst dependency hell ever! And then one of those dependencies get broken or discontinued and your are screwed. Plus the fact that every 6 months web frameworks often become obsolete and replaced by yet another crazy acronym framework. And some people wonder why I often chose the “roll your own solution” path - it’s to avoid such 3rd party dependencies, and making sure my code works for years to come. Back in my Delphi 7 days I worked for a company. The project I worked on used something like 20 3rd party components/libraries. That project was stuck in Delphi 7 for years and years (until the project itself became obsolete). Why, because many of those 3rd party suppliers went out of business after D7 and the the company simply had no way to easily break that dependency or have access to the many 3rd party component source code. I learned a valuable lesson at that job - keep dependencies to an absolute minimum! > * Keep dependencies to a minimum. +1000 > * Object Pascal developers are spoilt > (or maybe they simply know what they are doing). Indeed we are! > Lazarus needs to be spread more. FPC + Lazarus needs to spread more. > The iOS and Android environments sorely need tools like Lazarus. Definitely. Wasn't there somebody working on a mobile phone development toolkit for Lazarus at some point (a year or two ago)? I wonder what ever happened to that. Regards, Graeme From mschnell at lumino.de Thu Apr 20 13:40:02 2017 From: mschnell at lumino.de (Michael Schnell) Date: Thu, 20 Apr 2017 13:40:02 +0200 Subject: [Lazarus] Quick Video: A Web Application In-Reply-To: <77565008-1bdc-30a1-7851-020538063002@geldenhuys.co.uk> References: <48574413-7f52-ea91-439b-b1f868c92891@geldenhuys.co.uk> <77565008-1bdc-30a1-7851-020538063002@geldenhuys.co.uk> Message-ID: <239c9982-d719-0cc7-d32e-34288c5ea54f@lumino.de> On 19.04.2017 17:21, Graeme Geldenhuys via Lazarus wrote: > I believe that is what Michael van Canneyt is working on. It seems like, which to me is great news ! Of course we would need first a Pascal->WebAssembly compiler and then a new WidgetType in Lazarus. Same maybe could be derived from "CustomDrawn", as this also uses Pascal Code to generate the (more complex) widgets. Such code would be translated to WebAssembly and at runtime be transferred to and then executed in the Browser in high speed. -Michael From mschnell at lumino.de Thu Apr 20 13:44:57 2017 From: mschnell at lumino.de (Michael Schnell) Date: Thu, 20 Apr 2017 13:44:57 +0200 Subject: [Lazarus] Quick Video: A Web Application In-Reply-To: <75d8bdcc-12af-1bae-63b4-62c9d58b9843@ciberpiula.net> References: <48574413-7f52-ea91-439b-b1f868c92891@geldenhuys.co.uk> <75d8bdcc-12af-1bae-63b4-62c9d58b9843@ciberpiula.net> Message-ID: <71c610b1-5d34-133b-8839-80cfbce6e27b@lumino.de> On 20.04.2017 09:54, Santiago A. via Lazarus wrote: > That is what RAD and GUI designers were created for ;-) Obviously it's not easy to do a (compatible) GUI designer for a Browser-(remote)-GUI. Otherwise I suppose Lazarus would have it. With WebAssembly, maybe there is a new chance... -Michael From mschnell at lumino.de Thu Apr 20 13:52:03 2017 From: mschnell at lumino.de (Michael Schnell) Date: Thu, 20 Apr 2017 13:52:03 +0200 Subject: [Lazarus] Quick Video: A Web Application In-Reply-To: References: <48574413-7f52-ea91-439b-b1f868c92891@geldenhuys.co.uk> <75d8bdcc-12af-1bae-63b4-62c9d58b9843@ciberpiula.net> Message-ID: <5bdb276e-a58e-028b-1ba9-45704d59b33d@lumino.de> On 20.04.2017 11:11, Graeme Geldenhuys via Lazarus wrote: > Yes, many times. There obviously are lots of alternate GUI design tools (e.g. mse, FireMonkey, WXPython (Poenix), ...) . But for Lazarus users, it of course would be beneficial to be able to use the GUI designer already perfectly working in the IDE. -Michael From mschnell at lumino.de Thu Apr 20 14:05:29 2017 From: mschnell at lumino.de (Michael Schnell) Date: Thu, 20 Apr 2017 14:05:29 +0200 Subject: [Lazarus] Why lazarus is sorely needed: A plea for stability and backwards compatibility In-Reply-To: References: Message-ID: <1821c105-f4d8-50ab-bcba-3b337391ddbb@lumino.de> +1 !!! The dream: Write and test a program using in a (partly) RAD way, of course in an Event-programming way, using the Lazarus IDE - say - in Windows. Now just by changing some settings, compile it for - Win32 - Win42 - Win 32 or 64 as a service (hence also running on WIN IOT Core) - MAC - Linux Desktop (PC / ARM / ARM64 / MIPS / ....) - Linux Headless (I do have done a working draft for an "active NoGUI" Widget Type) - Android - iOS - with built-in Web Server, the GUI shown on a browser - As a Server based application (e.g. behind Apache or Microsoft IIS) with the GUI shown on a browser -Michael From badsectoracula at gmail.com Thu Apr 20 17:37:45 2017 From: badsectoracula at gmail.com (Kostas Michalopoulos) Date: Thu, 20 Apr 2017 18:37:45 +0300 Subject: [Lazarus] Why lazarus is sorely needed: A plea for stability and backwards compatibility In-Reply-To: <1821c105-f4d8-50ab-bcba-3b337391ddbb@lumino.de> References: <1821c105-f4d8-50ab-bcba-3b337391ddbb@lumino.de> Message-ID: Yeah, one thing i like with FPC and Lazarus is that there is a strong focus on backwards compatibility. Of course it isn't perfect (with FPC 3 i had to change some of my string code - e.g. i was loading files into strings by setting the length and BlockReading the string directly - but that took only a few minutes) but it is generally very stable. On Thu, Apr 20, 2017 at 3:05 PM, Michael Schnell via Lazarus < lazarus at lists.lazarus-ide.org> wrote: > +1 !!! > > The dream: > > Write and test a program using in a (partly) RAD way, of course in an > Event-programming way, using the Lazarus IDE - say - in Windows. > > Now just by changing some settings, compile it for > - Win32 > - Win42 > - Win 32 or 64 as a service (hence also running on WIN IOT Core) > - MAC > - Linux Desktop (PC / ARM / ARM64 / MIPS / ....) > - Linux Headless (I do have done a working draft for an "active NoGUI" > Widget Type) > - Android > - iOS > - with built-in Web Server, the GUI shown on a browser > - As a Server based application (e.g. behind Apache or Microsoft IIS) > with the GUI shown on a browser > > -Michael > > -- > _______________________________________________ > Lazarus mailing list > Lazarus at lists.lazarus-ide.org > http://lists.lazarus-ide.org/listinfo/lazarus > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aaa5500 at ya.ru Thu Apr 20 17:46:17 2017 From: aaa5500 at ya.ru (Alexey) Date: Thu, 20 Apr 2017 18:46:17 +0300 Subject: [Lazarus] Form emulated Showmodal Message-ID: <9454e3bd-258b-6c3a-9d8d-263f6c7c64a2@ya.ru> For CudaText i need my emulation of ShowModal. It must return w/o waiting form to close (like show). But form must show like modal (all others must disable, and on closing -last disabled form must enable). Smth exists already? What is list of forms in LCL. How to get last form. -- Regards, Alexey From lazarus at kluug.net Thu Apr 20 17:53:24 2017 From: lazarus at kluug.net (Ondrej Pokorny) Date: Thu, 20 Apr 2017 17:53:24 +0200 Subject: [Lazarus] Form emulated Showmodal In-Reply-To: <9454e3bd-258b-6c3a-9d8d-263f6c7c64a2@ya.ru> References: <9454e3bd-258b-6c3a-9d8d-263f6c7c64a2@ya.ru> Message-ID: <22511879-9e37-6122-1a20-0d3ffe3071be@kluug.net> On 20.04.2017 17:46, Alexey via Lazarus wrote: > For CudaText i need my emulation of ShowModal. > > It must return w/o waiting form to close (like show). But form must > show like modal (all others must disable, and on closing -last > disabled form must enable). Smth exists already? Not possible, AFAIK. Maybe with some hacks like Screen.DisableForms and .EnableForms. Do it with some kind of event (OnShow, OnIdle, ...). Or execute your code in a thread. > What is list of forms in LCL. How to get last form. Use Screen.Forms - it is sorted by Z-Order. Ondrej From mailinglists at geldenhuys.co.uk Fri Apr 21 10:44:36 2017 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Fri, 21 Apr 2017 09:44:36 +0100 Subject: [Lazarus] Form emulated Showmodal In-Reply-To: <9454e3bd-258b-6c3a-9d8d-263f6c7c64a2@ya.ru> References: <9454e3bd-258b-6c3a-9d8d-263f6c7c64a2@ya.ru> Message-ID: <691e63ea-384b-fb78-320d-89b65ada531e@geldenhuys.co.uk> On 2017-04-20 16:46, Alexey via Lazarus wrote: > It must return w/o waiting form to close (like show). But form must show > like modal (all others must disable, and on closing What you describe makes no sense. You want to show a for non-Modal, but want it to act like application modal. In that case, just use ShowModal(). Regards, Graeme From aaa5500 at ya.ru Sat Apr 22 13:11:22 2017 From: aaa5500 at ya.ru (Alexey) Date: Sat, 22 Apr 2017 14:11:22 +0300 Subject: [Lazarus] $If for CPU type Message-ID: <246caab7-7c33-77a4-d62a-00ca26f10ed6@ya.ru> Hi I cannot find info about $IF for CPUs, e.g. compile code only if its x64 or ARM or ARM64. Page don't help here- http://www.freepascal.org/docs-html/prog/progsu127.html#x140-1410002.4.1 -- Regards, Alexey From joshyfun at gmail.com Sat Apr 22 13:16:42 2017 From: joshyfun at gmail.com (=?UTF-8?Q?Jos=c3=a9_Mejuto?=) Date: Sat, 22 Apr 2017 13:16:42 +0200 Subject: [Lazarus] $If for CPU type In-Reply-To: <246caab7-7c33-77a4-d62a-00ca26f10ed6@ya.ru> References: <246caab7-7c33-77a4-d62a-00ca26f10ed6@ya.ru> Message-ID: <577167dd-d72e-89c6-df97-de73878da913@gmail.com> El 22/04/2017 a las 13:11, Alexey via Lazarus escribió: > Hi > > I cannot find info about $IF for CPUs, e.g. compile code only if its x64 > or ARM or ARM64. > > Page don't help here- > http://www.freepascal.org/docs-html/prog/progsu127.html#x140-1410002.4.1 > http://www.freepascal.org/docs-html/prog/progap7.html#x333-349000G -- From aaa5500 at ya.ru Sat Apr 22 18:50:02 2017 From: aaa5500 at ya.ru (Alexey) Date: Sat, 22 Apr 2017 19:50:02 +0300 Subject: [Lazarus] Linux 64 to Linux ARC crosscompile was:Lazarus and Windows 10 IoT In-Reply-To: <9c0542a5-057b-4f28-73f9-e17467f93229@zoznam.sk> References: <5afb0247-42db-f791-3007-45c257f2138a@zoznam.sk> <676bdb1d-9768-a407-d390-187639c597a5@zoznam.sk> <9c0542a5-057b-4f28-73f9-e17467f93229@zoznam.sk> Message-ID: hi With this help inf, I could make CudaText for Linux-ARM. Raspberry Pi 3. It works. Thanks for the info. Alexey From listbox at martoks-place.de Sat Apr 22 19:29:56 2017 From: listbox at martoks-place.de (Martok) Date: Sat, 22 Apr 2017 19:29:56 +0200 Subject: [Lazarus] What library to use for DOM/XML/HTML? Message-ID: Hi all, I'm currently looking for a library to read and write HTML DOM trees from/to X(HT)ML and HTML files. Is there any native pascal library that you can recommend? So far I have only found fcl-xml and its "fork" in lazutils (which are incomplete, incompatible and appear dead), and a lot of XML parser classes that have no provisions for building a DOM from them: libxml2, various msxml-imports (which of course is not crossplatform), JclSimpleXML, OmniXML, OXml just to name a few. Which ones did I miss, and do you know of any one that can do what I want? Additional bonus if it uses COM-style interfaces in its DOM, because that would save me a lot of work with emulating mixins... Regards, Martok From nc-gaertnma at netcologne.de Sat Apr 22 19:54:54 2017 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sat, 22 Apr 2017 19:54:54 +0200 Subject: [Lazarus] What library to use for DOM/XML/HTML? In-Reply-To: References: Message-ID: <20170422195454.7b3470b2@limapholos.matflo.wg> On Sat, 22 Apr 2017 19:29:56 +0200 Martok via Lazarus wrote: > Hi all, > > I'm currently looking for a library to read and write HTML DOM trees from/to > X(HT)ML and HTML files. Is there any native pascal library that you can recommend? > > So far I have only found fcl-xml and its "fork" in lazutils (which are > incomplete, incompatible and appear dead), The lazutils laz2_* are not dead. But they can't read/write HTML, only XML. Mattias From aaa5500 at ya.ru Sun Apr 23 08:21:11 2017 From: aaa5500 at ya.ru (Alexey) Date: Sun, 23 Apr 2017 09:21:11 +0300 Subject: [Lazarus] Configure IDE dlg tab-set Message-ID: This dialog has one tabset -from PageControl, and another - from left Listbox/Listview. Confusing. Better leave one Listbox. Picture. -- Regards, Alexey -------------- next part -------------- A non-text attachment was scrubbed... Name: dlg-tabs.png Type: image/png Size: 56063 bytes Desc: not available URL: From sandro.cumerlato at gmail.com Sun Apr 23 09:46:41 2017 From: sandro.cumerlato at gmail.com (Sandro Cumerlato) Date: Sun, 23 Apr 2017 09:46:41 +0200 Subject: [Lazarus] Configure IDE dlg tab-set In-Reply-To: References: Message-ID: +1 Better leave left Listbox. Sandro On 23 Apr 2017 08:21, "Alexey via Lazarus" wrote: > This dialog has one tabset -from PageControl, and another - from left > Listbox/Listview. Confusing. Better leave one Listbox. > > Picture. > > -- > Regards, > Alexey > > > -- > _______________________________________________ > Lazarus mailing list > Lazarus at lists.lazarus-ide.org > http://lists.lazarus-ide.org/listinfo/lazarus > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Sun Apr 23 10:17:47 2017 From: michael at freepascal.org (Michael Van Canneyt) Date: Sun, 23 Apr 2017 10:17:47 +0200 (CEST) Subject: [Lazarus] Configure IDE dlg tab-set In-Reply-To: References: Message-ID: On Sun, 23 Apr 2017, Alexey via Lazarus wrote: > This dialog has one tabset -from PageControl, and another - from left > Listbox/Listview. Confusing. Better leave one Listbox. > > Picture. Can you explain in more detail what is wrong with the dialog ? I look at this picture, and I see absolutely nothing wrong or confusing about it ? Michael. From mailinglists at geldenhuys.co.uk Sun Apr 23 10:30:29 2017 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Sun, 23 Apr 2017 09:30:29 +0100 Subject: [Lazarus] Configure IDE dlg tab-set In-Reply-To: References: Message-ID: <6b678951-b342-711c-150b-ef3976551e9b@geldenhuys.co.uk> On 2017-04-23 07:21, Alexey via Lazarus wrote: > This dialog has one tabset -from PageControl, and another - from left > Listbox/Listview. Confusing. Better leave one Listbox. I kind-of see what you mean - duplicated information. The idea was probably to have the "error state" available for all settings involved. Obviously that can be resolved too. Simply remove the listbox and then place error state icons in the tabs where applicable. So you will still get an overview of what settings are wrong. 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 From sandro.cumerlato at gmail.com Sun Apr 23 10:27:29 2017 From: sandro.cumerlato at gmail.com (Sandro Cumerlato) Date: Sun, 23 Apr 2017 10:27:29 +0200 Subject: [Lazarus] Configure IDE dlg tab-set In-Reply-To: References: Message-ID: If I have understand correctly, it is better to have only one list. I prefer the left Listbox. Sandro On 23 Apr 2017 10:17, "Michael Van Canneyt via Lazarus" < lazarus at lists.lazarus-ide.org> wrote: > > > On Sun, 23 Apr 2017, Alexey via Lazarus wrote: > > This dialog has one tabset -from PageControl, and another - from left >> Listbox/Listview. Confusing. Better leave one Listbox. >> >> Picture. >> > > Can you explain in more detail what is wrong with the dialog ? > > I look at this picture, and I see absolutely nothing wrong or confusing > about it ? > > Michael. > -- > _______________________________________________ > Lazarus mailing list > Lazarus at lists.lazarus-ide.org > http://lists.lazarus-ide.org/listinfo/lazarus > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 2017-04-23 10.25.10.png Type: image/png Size: 63876 bytes Desc: not available URL: From sandro.cumerlato at gmail.com Sun Apr 23 10:37:06 2017 From: sandro.cumerlato at gmail.com (Sandro Cumerlato) Date: Sun, 23 Apr 2017 10:37:06 +0200 Subject: [Lazarus] Configure IDE dlg tab-set In-Reply-To: References: <6b678951-b342-711c-150b-ef3976551e9b@geldenhuys.co.uk> Message-ID: On 23 Apr 2017 10:30, "Graeme Geldenhuys > Simply remove the listbox and then > place error state icons in the tabs > where applicable. So you will still get > an overview of what settings are > wrong. -1 IMHO left ListBox is better because error states are visible even if tab is not selected. I would convert right tabs to frames or something similar. Sandro -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Sun Apr 23 10:47:02 2017 From: michael at freepascal.org (Michael Van Canneyt) Date: Sun, 23 Apr 2017 10:47:02 +0200 (CEST) Subject: [Lazarus] Configure IDE dlg tab-set In-Reply-To: References: Message-ID: On Sun, 23 Apr 2017, Sandro Cumerlato via Lazarus wrote: > If I have understand correctly, it is better to have only one list. I > prefer the left Listbox. Ah... Why is it better ? I quite like the fact that there are 2 possibilities ? Seems very much like a matter of taste to me. Michael. From michael at freepascal.org Sun Apr 23 10:49:02 2017 From: michael at freepascal.org (Michael Van Canneyt) Date: Sun, 23 Apr 2017 10:49:02 +0200 (CEST) Subject: [Lazarus] Configure IDE dlg tab-set In-Reply-To: References: <6b678951-b342-711c-150b-ef3976551e9b@geldenhuys.co.uk> Message-ID: On Sun, 23 Apr 2017, Sandro Cumerlato via Lazarus wrote: > On 23 Apr 2017 10:30, "Graeme Geldenhuys >> Simply remove the listbox and then >> place error state icons in the tabs >> where applicable. So you will still get >> an overview of what settings are >> wrong. > > -1 > > IMHO left ListBox is better because error states are visible even if tab is > not selected. I would convert right tabs to frames or something similar. You can achieve the same with a status icon on the tabs. *If* something needs to be removed, I would remove the listbox. It only takes up a lot of space, and it's mostly empty. Michael. From mailinglists at geldenhuys.co.uk Sun Apr 23 11:00:42 2017 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Sun, 23 Apr 2017 10:00:42 +0100 Subject: [Lazarus] Configure IDE dlg tab-set In-Reply-To: References: <6b678951-b342-711c-150b-ef3976551e9b@geldenhuys.co.uk> Message-ID: On 2017-04-23 09:37, Sandro Cumerlato via Lazarus wrote: > IMHO left ListBox is better because error states are visible even if tab is > not selected. That is why I said to place status icons in the tabs itself next to the text "Compiler", "FPC Sources" etc. It will accomplish the same thing. But then there is the matter of LCL inconsistency.... Does all LCL widgetsets support icons in the tabs? 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 From mailinglists at geldenhuys.co.uk Sun Apr 23 11:01:37 2017 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Sun, 23 Apr 2017 10:01:37 +0100 Subject: [Lazarus] Configure IDE dlg tab-set In-Reply-To: References: <6b678951-b342-711c-150b-ef3976551e9b@geldenhuys.co.uk> Message-ID: <3b9473ae-dd68-dc99-59f3-2b3d8a78b158@geldenhuys.co.uk> On 2017-04-23 09:49, Michael Van Canneyt via Lazarus wrote: > *If* something needs to be removed, I would remove the listbox. > It only takes up a lot of space, and it's mostly empty. +1 It is takes up a lot of space with not much or no benefit at all. 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 From sandro.cumerlato at gmail.com Sun Apr 23 11:01:18 2017 From: sandro.cumerlato at gmail.com (Sandro Cumerlato) Date: Sun, 23 Apr 2017 11:01:18 +0200 Subject: [Lazarus] Configure IDE dlg tab-set In-Reply-To: <6b678951-b342-711c-150b-ef3976551e9b@geldenhuys.co.uk> References: <6b678951-b342-711c-150b-ef3976551e9b@geldenhuys.co.uk> Message-ID: With Michael explanation it looks like the best solution. Sorry for my misunderstanding. Sandro On 23 Apr 2017 10:30, "Graeme Geldenhuys via Lazarus" < lazarus at lists.lazarus-ide.org> wrote: > On 2017-04-23 07:21, Alexey via Lazarus wrote: > > This dialog has one tabset -from PageControl, and another - from left > > Listbox/Listview. Confusing. Better leave one Listbox. > > I kind-of see what you mean - duplicated information. The idea was > probably to have the "error state" available for all settings involved. > Obviously that can be resolved too. Simply remove the listbox and then > place error state icons in the tabs where applicable. So you will still > get an overview of what settings are wrong. > > 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 at lists.lazarus-ide.org > http://lists.lazarus-ide.org/listinfo/lazarus > -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Sun Apr 23 11:05:25 2017 From: michael at freepascal.org (Michael Van Canneyt) Date: Sun, 23 Apr 2017 11:05:25 +0200 (CEST) Subject: [Lazarus] Configure IDE dlg tab-set In-Reply-To: References: <6b678951-b342-711c-150b-ef3976551e9b@geldenhuys.co.uk> Message-ID: On Sun, 23 Apr 2017, Sandro Cumerlato via Lazarus wrote: > With Michael explanation it looks like the best solution. > > Sorry for my misunderstanding. ? No need to apologize. All is clear in the end, that's what matters :) Michael. From sandro.cumerlato at gmail.com Sun Apr 23 10:57:05 2017 From: sandro.cumerlato at gmail.com (Sandro Cumerlato) Date: Sun, 23 Apr 2017 10:57:05 +0200 Subject: [Lazarus] Configure IDE dlg tab-set In-Reply-To: References: <6b678951-b342-711c-150b-ef3976551e9b@geldenhuys.co.uk> Message-ID: Good idea! +1000 Sandro On 23 Apr 2017 10:49, "Michael Van Canneyt via Lazarus" < lazarus at lists.lazarus-ide.org> wrote: You can achieve the same with a status icon on the tabs. *If* something needs to be removed, I would remove the listbox. It only takes up a lot of space, and it's mostly empty. Michael. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nc-gaertnma at netcologne.de Sun Apr 23 11:09:13 2017 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sun, 23 Apr 2017 11:09:13 +0200 Subject: [Lazarus] Configure IDE dlg tab-set In-Reply-To: References: <6b678951-b342-711c-150b-ef3976551e9b@geldenhuys.co.uk> Message-ID: <20170423110913.20cff675@limapholos.matflo.wg> On Sun, 23 Apr 2017 10:49:02 +0200 (CEST) Michael Van Canneyt via Lazarus wrote: >[...] > *If* something needs to be removed, I would remove the listbox. > It only takes up a lot of space, and it's mostly empty. The idea was to add more checks/issues and some common choices, like language and docked/undocked. Then the tabs will soon run out of space. Mattias From michael at freepascal.org Sun Apr 23 11:13:43 2017 From: michael at freepascal.org (Michael Van Canneyt) Date: Sun, 23 Apr 2017 11:13:43 +0200 (CEST) Subject: [Lazarus] Configure IDE dlg tab-set In-Reply-To: <20170423110913.20cff675@limapholos.matflo.wg> References: <6b678951-b342-711c-150b-ef3976551e9b@geldenhuys.co.uk> <20170423110913.20cff675@limapholos.matflo.wg> Message-ID: On Sun, 23 Apr 2017, Mattias Gaertner via Lazarus wrote: > On Sun, 23 Apr 2017 10:49:02 +0200 (CEST) > Michael Van Canneyt via Lazarus wrote: > >> [...] >> *If* something needs to be removed, I would remove the listbox. >> It only takes up a lot of space, and it's mostly empty. > > The idea was to add more checks/issues and some common choices, like > language and docked/undocked. Then the tabs will soon run > out of space. I like your use of "soon" :-) Given that the dialog has not changed substantially in many years, I think we can safely remove the listbox, still assuming that something must be removed :) Michael. From nc-gaertnma at netcologne.de Sun Apr 23 11:55:56 2017 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sun, 23 Apr 2017 11:55:56 +0200 Subject: [Lazarus] Configure IDE dlg tab-set In-Reply-To: References: <6b678951-b342-711c-150b-ef3976551e9b@geldenhuys.co.uk> <20170423110913.20cff675@limapholos.matflo.wg> Message-ID: <20170423115556.42c5df9b@limapholos.matflo.wg> On Sun, 23 Apr 2017 11:13:43 +0200 (CEST) Michael Van Canneyt via Lazarus wrote: >[...] > I like your use of "soon" :-) > > Given that the dialog has not changed substantially in many years, > I think we can safely remove the listbox, still assuming that > something must be removed :) It would be more "safe" to remove the tabs, as AFAIK not all widgetsets support tab icons, other languages have wider captions and eventually more items will be added. Mattias From michael at freepascal.org Sun Apr 23 12:14:51 2017 From: michael at freepascal.org (Michael Van Canneyt) Date: Sun, 23 Apr 2017 12:14:51 +0200 (CEST) Subject: [Lazarus] Configure IDE dlg tab-set In-Reply-To: <20170423115556.42c5df9b@limapholos.matflo.wg> References: <6b678951-b342-711c-150b-ef3976551e9b@geldenhuys.co.uk> <20170423110913.20cff675@limapholos.matflo.wg> <20170423115556.42c5df9b@limapholos.matflo.wg> Message-ID: On Sun, 23 Apr 2017, Mattias Gaertner via Lazarus wrote: > On Sun, 23 Apr 2017 11:13:43 +0200 (CEST) > Michael Van Canneyt via Lazarus wrote: > >> [...] >> I like your use of "soon" :-) >> >> Given that the dialog has not changed substantially in many years, >> I think we can safely remove the listbox, still assuming that >> something must be removed :) > > It would be more "safe" to remove the tabs, as AFAIK not all widgetsets > support tab icons, other languages have wider captions and eventually > more items will be added. I don't think the dialog needs to be changed to begin with, but if general opinion is that it needs changing, I don't have strong opinions on how it is changed, so "go ahead..." Michael. From giuliano.colla at fastwebnet.it Sun Apr 23 13:18:46 2017 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Sun, 23 Apr 2017 13:18:46 +0200 Subject: [Lazarus] Configure IDE dlg tab-set In-Reply-To: References: <6b678951-b342-711c-150b-ef3976551e9b@geldenhuys.co.uk> <20170423110913.20cff675@limapholos.matflo.wg> <20170423115556.42c5df9b@limapholos.matflo.wg> Message-ID: <5c40cf0a-692a-2f8b-8d58-fd8ae0c27e0c@fastwebnet.it> Il 23/04/2017 12:14, Michael Van Canneyt via Lazarus ha scritto: > I don't think the dialog needs to be changed to begin with, +1 We have a summary on the left, and details on the right. If you just need to check what has to be fixed you look to the list box, while if you want to verify the proper Lazarus path, the selection of the right compiler, the right sources etc. you use the right side tabs. From badsectoracula at gmail.com Mon Apr 24 13:50:57 2017 From: badsectoracula at gmail.com (Kostas Michalopoulos) Date: Mon, 24 Apr 2017 14:50:57 +0300 Subject: [Lazarus] Window Maker form resizes when selecting component Message-ID: Hi all, Does anyone know why the form (in design mode) resizes itself every time i am selecting a component from the palette? Here is a small video showing the issue: https://webmshare.com/q78rb This only happens with Window Maker and only in Lazarus. I suspect it is either a Window Maker bug (since no other window manager has it, at least none of those that i tried) or a Lazarus bug that doesn't gracefully fail some missing extension from Window Maker (since no other program has the issue) but i cannot find what causes it by looking at the component palette code. Any ideas? Kostas -------------- next part -------------- An HTML attachment was scrubbed... URL: From zeljko at holobit.net Mon Apr 24 13:55:36 2017 From: zeljko at holobit.net (zeljko) Date: Mon, 24 Apr 2017 13:55:36 +0200 Subject: [Lazarus] Window Maker form resizes when selecting component In-Reply-To: References: Message-ID: On 24.04.2017 13:50, Kostas Michalopoulos via Lazarus wrote: > Hi all, > > Does anyone know why the form (in design mode) resizes itself every time > i am selecting a component from the palette? Here is a small video > showing the issue: > > https://webmshare.com/q78rb > > This only happens with Window Maker and only in Lazarus. I suspect it is > either a Window Maker bug (since no other window manager has it, at > least none of those that i tried) or a Lazarus bug that doesn't > gracefully fail some missing extension from Window Maker (since no other > program has the issue) but i cannot find what causes it by looking at > the component palette code. > > Any ideas? Widgetset ? Lazarus version ? zeljko From badsectoracula at gmail.com Mon Apr 24 14:04:10 2017 From: badsectoracula at gmail.com (Kostas Michalopoulos) Date: Mon, 24 Apr 2017 15:04:10 +0300 Subject: [Lazarus] Window Maker form resizes when selecting component In-Reply-To: References: Message-ID: (for some reason i do not see the message to the mailing list so i hit "Reply All" in case this is delayed) GTK2, latest SVN (54709) Note that this isn't new, i had it for at least a couple of years. I tried to figure out at the time but failed and ignored it (i switched to another WM when using Lazarus) but i decided again to see what is going on because switching WMs is annoying. On Mon, Apr 24, 2017 at 2:55 PM, zeljko wrote: > On 24.04.2017 13:50, Kostas Michalopoulos via Lazarus wrote: > >> Hi all, >> >> Does anyone know why the form (in design mode) resizes itself every time >> i am selecting a component from the palette? Here is a small video >> showing the issue: >> >> https://webmshare.com/q78rb >> >> This only happens with Window Maker and only in Lazarus. I suspect it is >> either a Window Maker bug (since no other window manager has it, at >> least none of those that i tried) or a Lazarus bug that doesn't >> gracefully fail some missing extension from Window Maker (since no other >> program has the issue) but i cannot find what causes it by looking at >> the component palette code. >> >> Any ideas? >> > > Widgetset ? Lazarus version ? > > zeljko > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zeljko at holobit.net Mon Apr 24 15:30:08 2017 From: zeljko at holobit.net (zeljko) Date: Mon, 24 Apr 2017 15:30:08 +0200 Subject: [Lazarus] Window Maker form resizes when selecting component In-Reply-To: References: Message-ID: <4700995b-cf53-cd2a-2040-c846d521e869@holobit.net> On 24.04.2017 14:04, Kostas Michalopoulos wrote: > (for some reason i do not see the message to the mailing list so i hit > "Reply All" in case this is delayed) > > GTK2, latest SVN (54709) > > Note that this isn't new, i had it for at least a couple of years. I > tried to figure out at the time but failed and ignored it (i switched to > another WM when using Lazarus) but i decided again to see what is going > on because switching WMs is annoying. Haven't used windowmaker for years, but used it for few weeks with Qt maybe 2 yrs ago and it was ok, so it's definitelly some trick with gtk2. zeljko From md at delfire.net Wed Apr 26 15:05:37 2017 From: md at delfire.net (Marcos Douglas B. Santos) Date: Wed, 26 Apr 2017 10:05:37 -0300 Subject: [Lazarus] How to know the Package version at runtime? Message-ID: I have some packages that contains business rules. They are used any many applications but sometimes I don't need to update all aplications if I change some in these packages. But if the application has catched an exeption, I would like to know which packages, and their versions, the executable was using. Is there any chance to know the version of packages that an executable is using? Best regards, Marcos Douglas -------------- next part -------------- An HTML attachment was scrubbed... URL: From el.es.cr at gmail.com Thu Apr 27 13:45:52 2017 From: el.es.cr at gmail.com (Lukasz Sokol) Date: Thu, 27 Apr 2017 12:45:52 +0100 Subject: [Lazarus] TTimer(s) & strange resize/move form interaction in Win10 with Win32 application ? Message-ID: I have a Win32 application that I compile either on Lazarus 1.4.4 r49931 FPC 2.6.4 i386-win32-win32/win64 (under WinXP SP3) Lazarus 1.6.2 r53354 FPC 3.0.0 x86_64-win64-win32/win64 (under Win10) (actually also downloaded fpc-3.0.2.i386-win32.exe from Hungarian mirror (as of 27/04/2017 ~12:00 GMT) for my application loads a 32bit library and refused to do it when built for 64bit target) It runs, it loads, it works. On windows XP under debugger in Lazarus, no problem. When I copy the executable made under WinXP to the Win10, 64bit computer, it also works; (only if I want to recompile it under Win10 I have to do it with 32bit target compiler). But, both copied AND the recompiled version, under Win10 has the following behavior: - I can click any buttons I have on the form, change size of the entire form, move dividers etc, but only until 2 TTimers are not active (they tick in about 10 and 20ms independent of each other and update 2 different sets of TLabels on the form, just about) But when I try to move the form, or resize it by the external edges, WITH the 2 TTimers running, the form 'sort of' freezes: sort-of, because the TLabels are still updated by my TTimers' OnTimer events running, but clicking buttons has no effect, I can't resize the dividers any more, and the form would not even move when dragged by the title bar. This happens from the onset of just clicking on the title bar, or clicking the edge of form when mouse pointer changes to 'two arrows'. If I stop the running TTimers, I can move and resize and click anything; Also when the form 'freezes' I can not click away from it - I have to use Alt+TAB to switch to another window, and kill it externally (through Task Manager) otherwise it will not yield. This (as I wrote above) does not happen on a 32bit computer under WinXP SP3. Hope it helps, Kind Regards Lukasz From aaa5500 at ya.ru Thu Apr 27 16:48:04 2017 From: aaa5500 at ya.ru (Alexey) Date: Thu, 27 Apr 2017 17:48:04 +0300 Subject: [Lazarus] LCL Grids: AscImageIndex/DescImageIndex Message-ID: <82ef747c-8379-6f9f-9383-24d575afc460@ya.ru> I like when props almost sorted by name. AscII / DescII will be not sorted, other props will mess it. So suggestion: names - SortAscImageIndex, SortDescImageIndex or - ImageIndexSortAsc, ImageIndexSortDesc -- Regards, Alexey From el.es.cr at gmail.com Thu Apr 27 17:31:18 2017 From: el.es.cr at gmail.com (Lukasz Sokol) Date: Thu, 27 Apr 2017 16:31:18 +0100 Subject: [Lazarus] TTimer(s) & strange resize/move form interaction in Win10 with Win32 application ? In-Reply-To: References: Message-ID: Hmm it must have been some weird timing issue... i have it recompiled (on winxp) with external debug symbols, and I copy the exe (without debug symbols) to win10 machine and this behavior does not occur any more.... -L. From donald at ziesig.org Thu Apr 27 21:38:46 2017 From: donald at ziesig.org (Donald Ziesig) Date: Thu, 27 Apr 2017 15:38:46 -0400 Subject: [Lazarus] Lazarus 1.9 ??? Message-ID: <2ce9cc7e-1f9b-3960-c275-af465c304653@ziesig.org> Hi All! I have been using Lazarus 1.7 with fpc 3.0.0 since February with excellent results (until Tuesday). Somehow, I managed to corrupt that installation (spent the last two days trying to isolate newly appearing Segfaults in the IDE which occurred when I tried to install components). Nothing I did seemed to help, including Rebuilding the IDE, FPC, looking for modified source files, etc. Today I gave up and decided to try the latest Lazarus and Fpc using fpcupdelux. I expected to get a later implementation of Lazarus 1.7, or perhaps 1.8. To my amazement I got 1.9! With the limited amount of testing I've done so far, it seems to be excellent. I'll let you know when I successfully install a few components ;-). Keep up the great work. Don Ziesig From werner.pamler at freenet.de Thu Apr 27 21:41:43 2017 From: werner.pamler at freenet.de (Werner Pamler) Date: Thu, 27 Apr 2017 21:41:43 +0200 Subject: [Lazarus] LCL Grids: AscImageIndex/DescImageIndex In-Reply-To: <82ef747c-8379-6f9f-9383-24d575afc460@ya.ru> References: <82ef747c-8379-6f9f-9383-24d575afc460@ya.ru> Message-ID: <469ffb78-b6e9-56bd-92f1-1ce42f96970e@freenet.de> Am 27.04.2017 um 16:48 schrieb Alexey via Lazarus: > I like when props almost sorted by name. AscII / DescII will be not > sorted, other props will mess it. > So suggestion: names > - SortAscImageIndex, SortDescImageIndex > or > - ImageIndexSortAsc, ImageIndexSortDesc Yes, this makes sense. Renamed to ImageIndexSortAsc and ImageIndexSortDesc in r54759. From nc-gaertnma at netcologne.de Thu Apr 27 23:07:05 2017 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 27 Apr 2017 23:07:05 +0200 Subject: [Lazarus] Lazarus 1.9 ??? In-Reply-To: <2ce9cc7e-1f9b-3960-c275-af465c304653@ziesig.org> References: <2ce9cc7e-1f9b-3960-c275-af465c304653@ziesig.org> Message-ID: <20170427230705.2a91ec6d@limapholos.matflo.wg> On Thu, 27 Apr 2017 15:38:46 -0400 Donald Ziesig via Lazarus wrote: > Hi All! > > I have been using Lazarus 1.7 with fpc 3.0.0 since February with > excellent results (until Tuesday). Somehow, I managed to corrupt that > installation (spent the last two days trying to isolate newly appearing > Segfaults in the IDE which occurred when I tried to install > components). Nothing I did seemed to help, including Rebuilding the > IDE, FPC, looking for modified source files, etc. > > Today I gave up and decided to try the latest Lazarus and Fpc using > fpcupdelux. I expected to get a later implementation of Lazarus 1.7, or > perhaps 1.8. To my amazement I got 1.9! 1.7 was the last development version. 1.8 will be released in a few weeks. 1.9 is now the development version. Mattias From donald at ziesig.org Thu Apr 27 23:52:05 2017 From: donald at ziesig.org (Donald Ziesig) Date: Thu, 27 Apr 2017 17:52:05 -0400 Subject: [Lazarus] IDE complains about missing Register procedure. Message-ID: Well, I found a bug in Lazarus 1.9 that I thought went away with Lazarus 1.2. I am in the process of refactoring the code from libraries I created in Delphi back in the early 1990's (I learned a lot since then :-D). I created a package, and copied a previously working component's .pas file into its directory, then added it to the package itself. The Package compiles with no errors. When I clicked on Use | Install, I got the error message: /The package arsmagicagui does not have any "Register" procedure, which typically means, it does not provide any IDE addon. Installing it will probably only increase the size of the IDE and may even make it unstable./ Within the component code I have: procedure Register; implementation uses LazLogger, Math; procedure Register; begin RegisterComponents('Ars Magica',[TAMFormPanel]); end; Within the package code I have: uses AMFormPanel, LazarusPackageIntf; implementation procedure Register; begin AMFormPanel.Register;// I added this. It did not change the error. end; initialization RegisterPackage('arsmagicagui', @Register); end. Years ago, I remember getting this error while I was first experimenting with Lazarus, but it went away (not sure why) and I have been able to create many components in the intervening time. What did I do wrong? :-[ Thanks, Don Ziesig -------------- next part -------------- An HTML attachment was scrubbed... URL: From giuliano.colla at fastwebnet.it Fri Apr 28 00:46:05 2017 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Fri, 28 Apr 2017 00:46:05 +0200 Subject: [Lazarus] How to deploy a Lazarus app for Windows? Message-ID: Hi all, I have no experience at all on deploying Lazarus app for Windows, because up to now I have always addressed to Linux platform. The few Windows Now I need to deploy an application for Windows, which requires not only the executable, but also some auxiliary files. It would be nice to put everything in a subfolder of the Programs folder, and maybe to touch also something in the Window registry. I have no idea of where to start from, in order to create a setup.exe which will take advantage of the Windows installer. Can someone point me in the right direction? Thanks in advance, Giuliano From lazarus at kluug.net Fri Apr 28 00:52:55 2017 From: lazarus at kluug.net (Ondrej Pokorny) Date: Fri, 28 Apr 2017 00:52:55 +0200 Subject: [Lazarus] How to deploy a Lazarus app for Windows? In-Reply-To: References: Message-ID: <828aa30e-17e7-a852-74e5-e2d2f193e8dc@kluug.net> On 28.04.2017 0:46, Giuliano Colla via Lazarus wrote: > I have no idea of where to start from, in order to create a setup.exe > which will take advantage of the Windows installer. Try InnoSetup. AFAIK Lazarus IDE setup is built with it as well. Ondrej From l.rame at griensu.com Fri Apr 28 00:55:56 2017 From: l.rame at griensu.com (=?UTF-8?Q?Leonardo_M._Ram=c3=a9?=) Date: Thu, 27 Apr 2017 19:55:56 -0300 Subject: [Lazarus] How to deploy a Lazarus app for Windows? In-Reply-To: References: Message-ID: El 27/04/17 a las 19:46, Giuliano Colla via Lazarus escribió: > Hi all, > > I have no experience at all on deploying Lazarus app for Windows, > because up to now I have always addressed to Linux platform. The few > Windows > > Now I need to deploy an application for Windows, which requires not > only the executable, but also some auxiliary files. It would be nice > to put everything in a subfolder of the Programs folder, and maybe to > touch also something in the Window registry. > > I have no idea of where to start from, in order to create a setup.exe > which will take advantage of the Windows installer. > > Can someone point me in the right direction? > > Thanks in advance, > > Giuliano > > I remember using these: http://nsis.sourceforge.net/Main_Page http://www.jrsoftware.org/isinfo.php Regards, -- Leonardo M. Ramé Medical IT - Griensu S.A. Av. Colón 636 - Piso 8 Of. A X5000EPT -- Córdoba Tel.: +54(351)4246924 +54(351)4247788 +54(351)4247979 int. 19 Cel.: +54 9 (011) 40871877 From giuliano.colla at fastwebnet.it Fri Apr 28 01:04:32 2017 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Fri, 28 Apr 2017 01:04:32 +0200 Subject: [Lazarus] How to deploy a Lazarus app for Windows? In-Reply-To: References: Message-ID: <8eb1cb00-2d6c-e680-d161-a9f91e5bcc32@fastwebnet.it> Il 28/04/2017 00:55, Leonardo M. Ramé via Lazarus ha scritto: > I remember using these: > > http://nsis.sourceforge.net/Main_Page > http://www.jrsoftware.org/isinfo.php Many thanks to you and to Ondrej. Giuliano From Sascha.Hestermann at gmx.de Fri Apr 28 01:45:39 2017 From: Sascha.Hestermann at gmx.de (Gabor Boros) Date: Thu, 27 Apr 2017 19:45:39 -0400 Subject: [Lazarus] =?utf-8?q?I=27m_so_happy?= Message-ID: <1402162605.20170428024539@gmx.de> Hey, I just wanted to share some great news with you, I'm so happy! You may read the news here http://yugtel.com/observation.php?9998 See you around, Gabor Boros From: Lazarus mailing list [mailto:lazarus at lists.lazarus.freepascal.org] Sent: Thursday, April 27, 2017 7:45 PM To: Sascha.Hestermann at gmx.de Subject: Hubby??? U there Role selection is often just a subset of worker placement. For instance, you can envision a round of **Puerto Rico** as each player putting a worker on the space that they want to activate. Mechanically, it's different, but in practical effect it's identical. One of the three big sources of points in **Caylus** is an area-majority subgame. Sent from Mail for Windows 10 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 597337FECE2A372A212097BFF808B668.jpg Type: image/jpeg Size: 14255 bytes Desc: not available URL: From hfiandor at ceniai.inf.cu Fri Apr 28 01:55:30 2017 From: hfiandor at ceniai.inf.cu (hfiandor) Date: Thu, 27 Apr 2017 19:55:30 -0400 Subject: [Lazarus] How to deploy a Lazarus app for Windows? In-Reply-To: References: Message-ID: Dear Giuliano: When I finisf the design phase, I copy the executable and the auxiliary files in other folder: "executable". Then I compress in a winrar, and in a self-extracting winrar. When deploy, I instruct the user to create/open the new folder "executable", copy the self-extracting and execute. Yours Ing. Héctor Fiandor Rosario From donald at ziesig.org Fri Apr 28 02:05:36 2017 From: donald at ziesig.org (Donald Ziesig) Date: Thu, 27 Apr 2017 20:05:36 -0400 Subject: [Lazarus] IDE complains about missing Register procedure. [SOLVED] In-Reply-To: References: Message-ID: <84093a4c-cae7-9c06-d0ab-d489051a02e3@ziesig.org> On 04/27/2017 05:52 PM, Donald Ziesig via Lazarus wrote: > > Well, I found a bug in Lazarus 1.9 that I thought went away with > Lazarus 1.2. > It is not a bug in the code, just a very obscure and not well documented checkbox that only appears when the particular file is selected in the Package dialog. The option is "Register unit" and it must be checked so the IDE knows what to do with it. > > I am in the process of refactoring the code from libraries I created > in Delphi back in the early 1990's (I learned a lot since then :-D). > > I created a package, and copied a previously working component's .pas > file into its directory, then added it to the package itself. The > Package compiles with no errors. > > When I clicked on Use | Install, I got the error message: > > /The package arsmagicagui does not have any "Register" procedure, > which typically means, it does not provide any IDE addon. Installing > it will probably only increase the size of the IDE and may even make > it unstable./ > > Within the component code I have: > > procedure Register; > > implementation > > uses > LazLogger, > Math; > > procedure Register; > begin > RegisterComponents('Ars Magica',[TAMFormPanel]); > end; > > Within the package code I have: > > uses > AMFormPanel, LazarusPackageIntf; > > implementation > > procedure Register; > begin > AMFormPanel.Register;// I added this. It did not change the error. > end; > > initialization > RegisterPackage('arsmagicagui', @Register); > end. > > Years ago, I remember getting this error while I was first > experimenting with Lazarus, but it went away (not sure why) and I have > been able to create many components in the intervening time. > > What did I do wrong? :-[ > > Thanks, > > Don Ziesig > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lacak at zoznam.sk Fri Apr 28 07:11:53 2017 From: lacak at zoznam.sk (LacaK) Date: Fri, 28 Apr 2017 07:11:53 +0200 Subject: [Lazarus] How to deploy a Lazarus app for Windows? In-Reply-To: <8eb1cb00-2d6c-e680-d161-a9f91e5bcc32@fastwebnet.it> References: <8eb1cb00-2d6c-e680-d161-a9f91e5bcc32@fastwebnet.it> Message-ID: <1cf07bae-e574-a9be-a257-bd472edb03d2@zoznam.sk> >> I remember using these: >> >> http://nsis.sourceforge.net/Main_Page >> http://www.jrsoftware.org/isinfo.php > > If you need installer in Microsoft Installation Package format (*.msi) then you can look at WiX toolset: http://wixtoolset.org and WixEdit: http://wixedit.sourceforge.net/ -Laco. From jmlandmesser at gmx.de Fri Apr 28 11:05:23 2017 From: jmlandmesser at gmx.de (John Landmesser) Date: Fri, 28 Apr 2017 11:05:23 +0200 Subject: [Lazarus] compiling svn Lazarus -> error Message-ID: <6a24cd55-3931-dd3a-33a0-55dfc27912e7@gmx.de> does anyone got the same error when compiling svn Lazarus? Revision 54762 Lazarus 1.9.0 r54742 FPC 3.0.0 x86_64-linux-gtk2 Revision 54762 message: (3104) Compiling directorycacher.pas /home/john1/lazarus/components/codetools/directorycacher.pas(1257,14) Error: (3026) Wrong number of parameters specified for call to "IsValidIdent" Error: (5088) Found declaration: IsValidIdent(const AnsiString):Boolean; directorycacher.pas(1906) Fatal: (10026) There were 2 errors compiling module, stopping Fatal: (1018) Compilation aborted Makefile:2615: die Regel für Ziel »codetools.ppu« scheiterte make[1]: *** [codetools.ppu] Fehler 1 make[1]: Verzeichnis »/home/john1/lazarus/components/codetools« wird verlassen Makefile:3140: die Regel für Ziel »codetools« scheiterte make: *** [codetools] Fehler 2 From tc at epidata.info Fri Apr 28 11:06:59 2017 From: tc at epidata.info (Torsten Bonde Christiansen) Date: Fri, 28 Apr 2017 11:06:59 +0200 Subject: [Lazarus] compiling svn Lazarus -> error In-Reply-To: <6a24cd55-3931-dd3a-33a0-55dfc27912e7@gmx.de> References: <6a24cd55-3931-dd3a-33a0-55dfc27912e7@gmx.de> Message-ID: <1429257f-998b-6bb4-9724-3a0254812010@epidata.info> Same here! -Torsten. On 2017-04-28 11:05, John Landmesser via Lazarus wrote: > does anyone got the same error when compiling svn Lazarus? > > Revision 54762 > > Lazarus 1.9.0 r54742 FPC 3.0.0 x86_64-linux-gtk2 Revision 54762 > > message: > > (3104) Compiling directorycacher.pas > /home/john1/lazarus/components/codetools/directorycacher.pas(1257,14) > Error: (3026) Wrong number of parameters specified for call to > "IsValidIdent" > Error: (5088) Found declaration: IsValidIdent(const AnsiString):Boolean; > directorycacher.pas(1906) Fatal: (10026) There were 2 errors compiling > module, stopping > Fatal: (1018) Compilation aborted > Makefile:2615: die Regel für Ziel »codetools.ppu« scheiterte > make[1]: *** [codetools.ppu] Fehler 1 > make[1]: Verzeichnis »/home/john1/lazarus/components/codetools« wird > verlassen > Makefile:3140: die Regel für Ziel »codetools« scheiterte > make: *** [codetools] Fehler 2 > > From nc-gaertnma at netcologne.de Fri Apr 28 12:42:02 2017 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Fri, 28 Apr 2017 12:42:02 +0200 Subject: [Lazarus] compiling svn Lazarus -> error In-Reply-To: <6a24cd55-3931-dd3a-33a0-55dfc27912e7@gmx.de> References: <6a24cd55-3931-dd3a-33a0-55dfc27912e7@gmx.de> Message-ID: <20170428124202.10160879@limapholos.matflo.wg> On Fri, 28 Apr 2017 11:05:23 +0200 John Landmesser via Lazarus wrote: > does anyone got the same error when compiling svn Lazarus? > > Revision 54762 > > Lazarus 1.9.0 r54742 FPC 3.0.0 x86_64-linux-gtk2 Revision 54762 > > message: > > (3104) Compiling directorycacher.pas > /home/john1/lazarus/components/codetools/directorycacher.pas(1257,14) > Error: (3026) Wrong number of parameters specified for call to > "IsValidIdent" Sorry. My fault. Fixed. Mattias From giuliano.colla at fastwebnet.it Fri Apr 28 18:22:54 2017 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Fri, 28 Apr 2017 18:22:54 +0200 Subject: [Lazarus] How to deploy a Lazarus app for Windows? In-Reply-To: <1cf07bae-e574-a9be-a257-bd472edb03d2@zoznam.sk> References: <8eb1cb00-2d6c-e680-d161-a9f91e5bcc32@fastwebnet.it> <1cf07bae-e574-a9be-a257-bd472edb03d2@zoznam.sk> Message-ID: <8a34d7cc-a098-f1db-d03e-64a9eb57c8d3@fastwebnet.it> Il 28/04/2017 07:11, LacaK via Lazarus ha scritto: > If you need installer in Microsoft Installation Package format (*.msi) > then you can look at WiX toolset: http://wixtoolset.org and WixEdit: > http://wixedit.sourceforge.net/ > -Laco. Thanks again to everybody. I'll investigate what is more suitable for my case. Giuliano From coppolastudio at gmail.com Fri Apr 28 19:51:05 2017 From: coppolastudio at gmail.com (coppolastudio) Date: Fri, 28 Apr 2017 19:51:05 +0200 Subject: [Lazarus] How to deploy a Lazarus app for Windows? References: Message-ID: An HTML attachment was scrubbed... URL: From gaston.dalloglio at gmail.com Fri Apr 28 20:13:06 2017 From: gaston.dalloglio at gmail.com (=?UTF-8?Q?Gast=C3=B3n_Dall=27_Oglio?=) Date: Fri, 28 Apr 2017 15:13:06 -0300 Subject: [Lazarus] How to deploy a Lazarus app for Windows? In-Reply-To: References: Message-ID: Hello all. I to use InnoSetup with Inno Script Studio https://www.kymoto.org/products/inno-script-studio/screenshots Best. 2017-04-28 14:51 GMT-03:00 coppolastudio via Lazarus < lazarus at lists.lazarus-ide.org>: > innosetup has scrips in Pascal that allows some special features > > Inviato tramite il client di Posta WPS > Il Giuliano Colla via Lazarus , > 28/apr/2017 06:22 PM ha scritto: > > Il 28/04/2017 07:11, LacaK via Lazarus ha scritto: > > If you need installer in Microsoft Installation Package format (*.msi) > > then you can look at WiX toolset: http://wixtoolset.org and WixEdit: > > http://wixedit.sourceforge.net/ > > -Laco. > > Thanks again to everybody. I'll investigate what is more suitable for my > case. > > Giuliano > > -- > _______________________________________________ > Lazarus mailing list > Lazarus at lists.lazarus-ide.org > http://lists.lazarus-ide.org/listinfo/lazarus > > > -- > _______________________________________________ > Lazarus mailing list > Lazarus at lists.lazarus-ide.org > http://lists.lazarus-ide.org/listinfo/lazarus > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From acardenas at bsd-peru.org Fri Apr 28 20:44:29 2017 From: acardenas at bsd-peru.org (=?UTF-8?Q?Alonso_C=C3=A1rdenas_M=C3=A1rquez?=) Date: Fri, 28 Apr 2017 13:44:29 -0500 Subject: [Lazarus] Call for translations updates for 1.8 release In-Reply-To: <2ccacec0-7797-c4d5-0fb2-7f9341672d07@narod.ru> References: <2ccacec0-7797-c4d5-0fb2-7f9341672d07@narod.ru> Message-ID: 2017-04-18 16:44 GMT-05:00 Maxim Ganetsky via Lazarus < lazarus at lists.lazarus-ide.org>: > Hello. > > Hi Maxim > Now that Lazarus 1.8 branch has been created it is time for translators to > review and update their translations. > Spanish translation done. http://bugs.freepascal.org/view.php?id=31731 > > Check out fixes branch (http://svn.freepascal.org/svn > /lazarus/branches/fixes_1_8 ), review and update your translations and > post updates to our bugtracker. See \languages\README.txt > for details. > > Mark your reports with Lazarus version clearly in order to avoid confusion. > > Greetings ACM -------------- next part -------------- An HTML attachment was scrubbed... URL: From acardenas at bsd-peru.org Fri Apr 28 20:44:29 2017 From: acardenas at bsd-peru.org (=?UTF-8?Q?Alonso_C=C3=A1rdenas_M=C3=A1rquez?=) Date: Fri, 28 Apr 2017 13:44:29 -0500 Subject: [Lazarus] Call for translations updates for 1.8 release In-Reply-To: <2ccacec0-7797-c4d5-0fb2-7f9341672d07@narod.ru> References: <2ccacec0-7797-c4d5-0fb2-7f9341672d07@narod.ru> Message-ID: 2017-04-18 16:44 GMT-05:00 Maxim Ganetsky via Lazarus < lazarus at lists.lazarus-ide.org>: > Hello. > > Hi Maxim > Now that Lazarus 1.8 branch has been created it is time for translators to > review and update their translations. > Spanish translation done. http://bugs.freepascal.org/view.php?id=31731 > > Check out fixes branch (http://svn.freepascal.org/svn > /lazarus/branches/fixes_1_8 ), review and update your translations and > post updates to our bugtracker. See \languages\README.txt > for details. > > Mark your reports with Lazarus version clearly in order to avoid confusion. > > Greetings ACM -------------- next part -------------- An HTML attachment was scrubbed... URL: From tony.whyman at mccallumwhyman.com Sat Apr 29 10:00:14 2017 From: tony.whyman at mccallumwhyman.com (Tony Whyman) Date: Sat, 29 Apr 2017 09:00:14 +0100 Subject: [Lazarus] How to deploy a Lazarus app for Windows? In-Reply-To: <1cf07bae-e574-a9be-a257-bd472edb03d2@zoznam.sk> References: <8eb1cb00-2d6c-e680-d161-a9f91e5bcc32@fastwebnet.it> <1cf07bae-e574-a9be-a257-bd472edb03d2@zoznam.sk> Message-ID: +1 IMHO, WIX is the best way to create Windows installer packages. It has the great advantage of using XML scripts to define the installation package. This allows you to put them under proper change control and makes it easy to copy and edit the script for each new application rather than start from scratch. The WIX toolset also runs under wine and with a FPC cross-compiler, it is possible to build both a Windows executable and the installer package under Linux. I have some applications that I deploy under both Windows and Linux and all the builds are performed from a single bash script under Linux. You can also use 7-zip to create a self-installer package from the .msi. On 28/04/17 06:11, LacaK via Lazarus wrote: > >>> I remember using these: >>> >>> http://nsis.sourceforge.net/Main_Page >>> http://www.jrsoftware.org/isinfo.php >> >> > If you need installer in Microsoft Installation Package format (*.msi) > then you can look at WiX toolset: http://wixtoolset.org and WixEdit: > http://wixedit.sourceforge.net/ > -Laco. > From aaa5500 at ya.ru Sun Apr 30 17:59:17 2017 From: aaa5500 at ya.ru (Alexey) Date: Sun, 30 Apr 2017 18:59:17 +0300 Subject: [Lazarus] Gtk2 log "Refused invalidating during paint msg": how to check Message-ID: <14451624-5fdb-b77b-80ff-c9d920fb3007@ya.ru> How can I check that im inside Paint code? Maybe come control flag, or something, exists. -- Regards, Alexey From aaa5500 at ya.ru Sun Apr 30 18:06:18 2017 From: aaa5500 at ya.ru (Alexey) Date: Sun, 30 Apr 2017 19:06:18 +0300 Subject: [Lazarus] WMPaint Message-ID: procedure TCustomControl.WMPaint(var Message: TLMPaint); begin if (csDestroying in ComponentState) or (not HandleAllocated) then exit; Include(FControlState, csCustomPaint); inherited WMPaint(Message); Exclude(FControlState, csCustomPaint); end; Maybe use try-finally here for Exclude? -- Regards, Alexey From listmember at letterboxes.org Sun Apr 30 18:16:06 2017 From: listmember at letterboxes.org (ListMember) Date: Sun, 30 Apr 2017 19:16:06 +0300 Subject: [Lazarus] WMPaint In-Reply-To: References: Message-ID: <59060DC6.5050907@letterboxes.org> Just curious: What use is altering a local variable (i.e. FControlState) when you are calling an inherited code? I mean, shouldn't you alter ControlState (I am assuming it exist in the 'inherited')? On 2017-04-30 19:06, Alexey via Lazarus wrote: > procedure TCustomControl.WMPaint(var Message: TLMPaint); > begin > if (csDestroying in ComponentState) or (not HandleAllocated) then exit; > Include(FControlState, csCustomPaint); > inherited WMPaint(Message); > Exclude(FControlState, csCustomPaint); > end; > > Maybe use try-finally here for Exclude? > > From md at delfire.net Sun Apr 30 18:37:17 2017 From: md at delfire.net (Marcos Douglas B. Santos) Date: Sun, 30 Apr 2017 13:37:17 -0300 Subject: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority) Message-ID: It months ago I realized that Lazarus was saving the sources like that: 1- If there is only ANSI chars, save it as ANSI encode; 2. If there is more than ANSI chars, save it as UTF8 encode; (correct me if I'm wrong about that) I think this was changed when I updated my FPC to 3.* and Lazarus (trunk). Everything continues works. This new behavior was completly transparent to me... but I have a doubt: If Delphi sources don't use UTF8, how is the best way to mantain sources that need to work in both compilers? I mean, I would like to work with FPC and Lazarus as I am used to doing, without take concerns about "remember to change the encode of these files", "remember to not put accented chars on code", or something like that. Is there some wiki page that explains this? Are you working on projects that have these problems? Could you tell me which is the best approach to deal with it? Thank you. Best regards, Marcos Douglas -------------- next part -------------- An HTML attachment was scrubbed... URL: From md at delfire.net Sun Apr 30 21:27:00 2017 From: md at delfire.net (Marcos Douglas B. Santos) Date: Sun, 30 Apr 2017 16:27:00 -0300 Subject: [Lazarus] Quick Video: A Web Application In-Reply-To: References: <48574413-7f52-ea91-439b-b1f868c92891@geldenhuys.co.uk> <75d8bdcc-12af-1bae-63b4-62c9d58b9843@ciberpiula.net> Message-ID: On Thu, Apr 20, 2017 at 6:03 AM, Michael Van Canneyt via Lazarus < lazarus at lists.lazarus-ide.org> wrote: > On Thu, 20 Apr 2017, Santiago A. via Lazarus wrote: > > El 19/04/2017 a las 17:09, Anthony Walter via Lazarus escribió: >> >>> Thank you all for the feedback and discussion. From me, the >>> implementer and designer, I can say the most difficult part of >>> creating this project, and in most projects, is not the actual >>> programming. It's the creation of the user interface design. Choosing >>> and creating a layout, and deciding on css values. That by far took >>> more time than the actual code, and I'm sure that part could be vastly >>> improved. >>> >> Of course, GUIs are massive time consuming. Have you ever create a form >> by hand in runtime? >> >> That is what RAD and GUI designers were created for ;-) >> >> I'm afraid that the world is still waiting for a good GUI designer for >> web. >> > > We will deliver it :) Can you share with us when? :) Marcos Douglas -------------- next part -------------- An HTML attachment was scrubbed... URL: From lazarus at kluug.net Sun Apr 30 21:30:44 2017 From: lazarus at kluug.net (Ondrej Pokorny) Date: Sun, 30 Apr 2017 21:30:44 +0200 Subject: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority) In-Reply-To: References: Message-ID: On 30.04.2017 18:37, Marcos Douglas B. Santos via Lazarus wrote: > Are you working on projects that have these problems? Could you tell > me which is the best approach to deal with it? Speaking from my experience, the only approach (not only the best one but the only one) is not to use characters above #255. Ondrej From michael at freepascal.org Sun Apr 30 21:42:19 2017 From: michael at freepascal.org (Michael Van Canneyt) Date: Sun, 30 Apr 2017 21:42:19 +0200 (CEST) Subject: [Lazarus] Quick Video: A Web Applicationx In-Reply-To: References: <48574413-7f52-ea91-439b-b1f868c92891@geldenhuys.co.uk> <75d8bdcc-12af-1bae-63b4-62c9d58b9843@ciberpiula.net> Message-ID: On Sun, 30 Apr 2017, Marcos Douglas B. Santos via Lazarus wrote: > On Thu, Apr 20, 2017 at 6:03 AM, Michael Van Canneyt via Lazarus < > lazarus at lists.lazarus-ide.org> wrote: > >> On Thu, 20 Apr 2017, Santiago A. via Lazarus wrote: >> >> El 19/04/2017 a las 17:09, Anthony Walter via Lazarus escribió: >>> >>>> Thank you all for the feedback and discussion. From me, the >>>> implementer and designer, I can say the most difficult part of >>>> creating this project, and in most projects, is not the actual >>>> programming. It's the creation of the user interface design. Choosing >>>> and creating a layout, and deciding on css values. That by far took >>>> more time than the actual code, and I'm sure that part could be vastly >>>> improved. >>>> >>> Of course, GUIs are massive time consuming. Have you ever create a form >>> by hand in runtime? >>> >>> That is what RAD and GUI designers were created for ;-) >>> >>> I'm afraid that the world is still waiting for a good GUI designer for >>> web. >>> >> >> We will deliver it :) > > > Can you share with us when? :) Current tentative schedule is september. But no guarantees. It doesn't depend only on me :) But today an important milestone (for me) was reached, so there is hope :) Michael. From md at delfire.net Sun Apr 30 22:21:29 2017 From: md at delfire.net (Marcos Douglas B. Santos) Date: Sun, 30 Apr 2017 17:21:29 -0300 Subject: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority) In-Reply-To: References: Message-ID: On Sun, Apr 30, 2017 at 4:30 PM, Ondrej Pokorny via Lazarus < lazarus at lists.lazarus-ide.org> wrote: > On 30.04.2017 18:37, Marcos Douglas B. Santos via Lazarus wrote: > >> Are you working on projects that have these problems? Could you tell me >> which is the best approach to deal with it? >> > > Speaking from my experience, the only approach (not only the best one but > the only one) is not to use characters above #255. I see... Well, this is not the best approach for me, as you've said... I'm brazilian and is common to use accents here. I can forget this 'rule' easily. :( But is this the only problem that you got? Marcos Douglas -------------- next part -------------- An HTML attachment was scrubbed... URL: From md at delfire.net Sun Apr 30 22:23:44 2017 From: md at delfire.net (Marcos Douglas B. Santos) Date: Sun, 30 Apr 2017 17:23:44 -0300 Subject: [Lazarus] Quick Video: A Web Applicationx In-Reply-To: References: <48574413-7f52-ea91-439b-b1f868c92891@geldenhuys.co.uk> <75d8bdcc-12af-1bae-63b4-62c9d58b9843@ciberpiula.net> Message-ID: On Sun, Apr 30, 2017 at 4:42 PM, Michael Van Canneyt via Lazarus < lazarus at lists.lazarus-ide.org> wrote: > > > On Sun, 30 Apr 2017, Marcos Douglas B. Santos via Lazarus wrote: > > On Thu, Apr 20, 2017 at 6:03 AM, Michael Van Canneyt via Lazarus < >> lazarus at lists.lazarus-ide.org> wrote: >> >> On Thu, 20 Apr 2017, Santiago A. via Lazarus wrote: >>> >>> El 19/04/2017 a las 17:09, Anthony Walter via Lazarus escribió: >>> >>>> >>>> Thank you all for the feedback and discussion. From me, the >>>>> implementer and designer, I can say the most difficult part of >>>>> creating this project, and in most projects, is not the actual >>>>> programming. It's the creation of the user interface design. Choosing >>>>> and creating a layout, and deciding on css values. That by far took >>>>> more time than the actual code, and I'm sure that part could be vastly >>>>> improved. >>>>> >>>>> Of course, GUIs are massive time consuming. Have you ever create a form >>>> by hand in runtime? >>>> >>>> That is what RAD and GUI designers were created for ;-) >>>> >>>> I'm afraid that the world is still waiting for a good GUI designer for >>>> web. >>>> >>>> >>> We will deliver it :) >>> >> >> >> Can you share with us when? :) >> > > Current tentative schedule is september. But no guarantees. It doesn't > depend only on me :) > > But today an important milestone (for me) was reached, so there is hope :) Ok Michael, stay focused, stay focused... :) Marcos Douglas -------------- next part -------------- An HTML attachment was scrubbed... URL: From ptrg at freemail.hu Sun Apr 30 23:13:57 2017 From: ptrg at freemail.hu (=?UTF-8?B?UMOpdGVyIEfDoWJvcg==?=) Date: Sun, 30 Apr 2017 23:13:57 +0200 Subject: [Lazarus] Call for translations updates for 1.8 release In-Reply-To: <2ccacec0-7797-c4d5-0fb2-7f9341672d07@narod.ru> References: <2ccacec0-7797-c4d5-0fb2-7f9341672d07@narod.ru> Message-ID: <33d4fa89-7bff-b862-47e0-74590ba932e2@freemail.hu> Hello! Hungarian translation updated: http://bugs.freepascal.org/view.php?id=31739 2017-04-18 23:44 keltezéssel, Maxim Ganetsky via Lazarus írta: > Hello. > > Now that Lazarus 1.8 branch has been created it is time for translators > to review and update their translations. > > Check out fixes branch > (http://svn.freepascal.org/svn/lazarus/branches/fixes_1_8 ), review and > update your translations and post updates to our bugtracker. See > \languages\README.txt for details. > > Mark your reports with Lazarus version clearly in order to avoid confusion. > -- Péter Gábor ptrg at freemail.hu