From dle3ab at angelbase.com Thu Sep 1 02:12:32 2016 From: dle3ab at angelbase.com (David Emerson) Date: Wed, 31 Aug 2016 17:12:32 -0700 Subject: [Lazarus] how to delete codetools source cache? Message-ID: <64241bd7-e415-ae60-a3b7-696b55ce3434@angelbase.com> I use the matrix unit in my project, and from it the types tmatrix4_single and tmatrix4_vector It is located here: /usr/share/fpcsrc/3.0.0/packages/rtl-extra/src/inc/matrix.pp Recently while debugging, codetools somehow got the wrong unit, /usr/share/fpcsrc/3.0.0/tests/bench/shootout/obsolete/matrix.pp I have been struggling with this for a couple hours now, and so I went ahead and deleted those obsolete shootout units. I definitely will never need them. I closed and restarted lazarus. But codetools seems to have cached the bad path. If I ctrl+return on uses matrix -- it prompts me, 'File "/usr/share/fpcsrc/3.0.0/tests/bench/shootout/obsolete/matrix.pp" not found. Do you want to create it?' So codetools has cached this garbage path, and I have no idea how to reset/delete the path. I've grepped for "obsolete" in $HOME/.lazarus and I can't find any reference to the garbage path, but it persists. So original question - how do I delete the codetools source cache... or whatever it's called? Thanks! ~David. From nc-gaertnma at netcologne.de Thu Sep 1 08:11:59 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 1 Sep 2016 08:11:59 +0200 Subject: [Lazarus] how to delete codetools source cache? In-Reply-To: <64241bd7-e415-ae60-a3b7-696b55ce3434@angelbase.com> References: <64241bd7-e415-ae60-a3b7-696b55ce3434@angelbase.com> Message-ID: <20160901081159.1d34c993@limapholos.matflo.wg> On Wed, 31 Aug 2016 17:12:32 -0700 David Emerson wrote: >[...] > Recently while debugging, codetools somehow got the wrong unit, > /usr/share/fpcsrc/3.0.0/tests/bench/shootout/obsolete/matrix.pp >[...] > So original question - how do I delete the codetools source cache... or > whatever it's called? Tools / Rescan FPC source directory Or close IDE and delete ~/.lazarus/fpcdefines.xml Mattias From dle3ab at angelbase.com Thu Sep 1 08:52:21 2016 From: dle3ab at angelbase.com (David Emerson) Date: Wed, 31 Aug 2016 23:52:21 -0700 Subject: [Lazarus] how to delete codetools source cache? In-Reply-To: <20160901081159.1d34c993@limapholos.matflo.wg> References: <64241bd7-e415-ae60-a3b7-696b55ce3434@angelbase.com> <20160901081159.1d34c993@limapholos.matflo.wg> Message-ID: <328a6bee-b370-3424-2556-61317c9ff9d0@angelbase.com> On 08/31/2016 11:11 PM, Mattias Gaertner wrote: > On Wed, 31 Aug 2016 17:12:32 -0700 > David Emerson wrote: > >> [...] >> Recently while debugging, codetools somehow got the wrong unit, >> /usr/share/fpcsrc/3.0.0/tests/bench/shootout/obsolete/matrix.pp >> [...] >> So original question - how do I delete the codetools source cache... or >> whatever it's called? > > Tools / Rescan FPC source directory > > Or close IDE and delete ~/.lazarus/fpcdefines.xml > > Mattias > Thanks very much!! ~David. From giuliano.colla at fastwebnet.it Thu Sep 1 12:53:57 2016 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Thu, 1 Sep 2016 12:53:57 +0200 Subject: [Lazarus] Failure to recompile with a different define Message-ID: <0794fe73-d850-1459-1160-8af2d7d6cadc@fastwebnet.it> I have two Lazarus projects, let's call them project A and project B, which share the same sources, only with a different define: let's say -dProjA and -dProjB. If, starting from a clean situation, I compile first project A, and then project B, most of the modules aren't recompiled, and I end up with a project B built with a mix-up of units, some compiled with project A define and some compiled with project B define. I managed to find a way out: setting different unit paths for project A and project B solves the issue, but this situation may be rather confusing for an inexperienced user. IMHO this is not a very unusual setup: it applies to any situation where the same base project must provide different options or features. Is this a Lazarus issue or rather an fpc issue? Do ppu's include the defines used for compilation? If not, wouldn't it be advisable to add them somehow? Giuliano From nc-gaertnma at netcologne.de Thu Sep 1 13:12:56 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 1 Sep 2016 13:12:56 +0200 Subject: [Lazarus] Failure to recompile with a different define In-Reply-To: <0794fe73-d850-1459-1160-8af2d7d6cadc@fastwebnet.it> References: <0794fe73-d850-1459-1160-8af2d7d6cadc@fastwebnet.it> Message-ID: <20160901131256.642513f6@limapholos.matflo.wg> On Thu, 1 Sep 2016 12:53:57 +0200 Giuliano Colla wrote: > I have two Lazarus projects, let's call them project A and project B, > which share the same sources, only with a different define: let's say > -dProjA and -dProjB. > > If, starting from a clean situation, I compile first project A, and then > project B, most of the modules aren't recompiled, and I end up with a > project B built with a mix-up of units, some compiled with project A > define and some compiled with project B define. > > I managed to find a way out: setting different unit paths for project A > and project B solves the issue, but this situation may be rather > confusing for an inexperienced user. > > IMHO this is not a very unusual setup: it applies to any situation where > the same base project must provide different options or features. > > Is this a Lazarus issue or rather an fpc issue? Do ppu's include the > defines used for compilation? If not, wouldn't it be advisable to add > them somehow? ppus do not include the defines, so a simple compile won't rebuild ppu files. That's by design. How do you share units? If you do it manually by adding unit paths to the Compiler Options then you have to clean up manually. If you use Lazarus packages, then Lazarus will detect the changes and pass the -B automatically. Mattias From giuliano.colla at fastwebnet.it Thu Sep 1 13:58:10 2016 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Thu, 1 Sep 2016 13:58:10 +0200 Subject: [Lazarus] Failure to recompile with a different define In-Reply-To: <20160901131256.642513f6@limapholos.matflo.wg> References: <0794fe73-d850-1459-1160-8af2d7d6cadc@fastwebnet.it> <20160901131256.642513f6@limapholos.matflo.wg> Message-ID: <5d504c62-df6a-d1fc-5cb0-fc0cc85864bd@fastwebnet.it> Il 01/09/2016 13:12, Mattias Gaertner ha scritto: > ppus do not include the defines, so a simple compile won't rebuild ppu > files. That's by design. > > How do you share units? > If you do it manually by adding unit paths to the Compiler Options then > you have to clean up manually. > If you use Lazarus packages, then Lazarus will detect the changes and > pass the -B automatically. Using a package isn't a very intuitive solution, when *all* the units belong to the project. A simple option could be to change the default unit path proposed by Lazarus: in place of lib/$(TargetCPU)-$(TargetOS), make it lib/$(ProjectName)/$(TargetCPU)-$(TargetOS) this could make it much easier to have more than one project in the same directory, without any risk of mix-ups. Just my 2c Giuliano From nc-gaertnma at netcologne.de Thu Sep 1 15:25:03 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 1 Sep 2016 15:25:03 +0200 Subject: [Lazarus] Failure to recompile with a different define In-Reply-To: <5d504c62-df6a-d1fc-5cb0-fc0cc85864bd@fastwebnet.it> References: <0794fe73-d850-1459-1160-8af2d7d6cadc@fastwebnet.it> <20160901131256.642513f6@limapholos.matflo.wg> <5d504c62-df6a-d1fc-5cb0-fc0cc85864bd@fastwebnet.it> Message-ID: <20160901152503.7cb438a3@limapholos.matflo.wg> On Thu, 1 Sep 2016 13:58:10 +0200 Giuliano Colla wrote: >[...] > Using a package isn't a very intuitive solution, when *all* the units > belong to the project. Because of circular dependencies or because of company rules? > this could make it much easier to have more than one project in the same > directory, without any risk of mix-ups. Why do you must put all projects and units into a single directory? > A simple option could be to change the default unit path proposed by > Lazarus: in place of lib/$(TargetCPU)-$(TargetOS), make it > lib/$(ProjectName)/$(TargetCPU)-$(TargetOS) See here: http://wiki.lazarus.freepascal.org/IDE_Window:_Compiler_Options#Change_the_output_directory_of_project_and_all_packages Mattias From mailinglists at geldenhuys.co.uk Thu Sep 1 15:39:10 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Thu, 1 Sep 2016 14:39:10 +0100 Subject: [Lazarus] fpdebug: "List index out of bounds" errors In-Reply-To: References: Message-ID: On 2016-08-26 13:55, Graeme Geldenhuys wrote: > I am on the latest Lazarus Trunk revision. Does anybody else see loads > of "Index out of bounds" errors when using the native Free Pascal > debugger, fpdebug? Is nobody using fpdebug? No confirmation if it is a bug or local issue... Oh well, I'll report it in Mantis either way. Regards, Graeme From nc-gaertnma at netcologne.de Thu Sep 1 15:54:54 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 1 Sep 2016 15:54:54 +0200 Subject: [Lazarus] fpdebug: "List index out of bounds" errors In-Reply-To: References: Message-ID: <20160901155454.71c72229@limapholos.matflo.wg> On Thu, 1 Sep 2016 14:39:10 +0100 Graeme Geldenhuys wrote: > On 2016-08-26 13:55, Graeme Geldenhuys wrote: > > I am on the latest Lazarus Trunk revision. Does anybody else see loads > > of "Index out of bounds" errors when using the native Free Pascal > > debugger, fpdebug? > > Is nobody using fpdebug? No confirmation if it is a bug or local > issue... Oh well, I'll report it in Mantis either way. I confirm the list index out of bounds. It works when the callstack window is open, so probably some initialization is missing. Mattias From mailinglists at geldenhuys.co.uk Thu Sep 1 16:24:05 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Thu, 1 Sep 2016 15:24:05 +0100 Subject: [Lazarus] fpdebug: "List index out of bounds" errors In-Reply-To: <20160901155454.71c72229@limapholos.matflo.wg> References: <20160901155454.71c72229@limapholos.matflo.wg> Message-ID: <1cdda679-8d41-cf5a-9334-c098bef0b723@geldenhuys.co.uk> On 2016-09-01 14:54, Mattias Gaertner wrote: > I confirm the list index out of bounds. Thank you Mattias. Reported on Mantis: http://mantis.freepascal.org/view.php?id=30540 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 giuliano.colla at fastwebnet.it Thu Sep 1 18:29:42 2016 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Thu, 1 Sep 2016 18:29:42 +0200 Subject: [Lazarus] Failure to recompile with a different define In-Reply-To: <20160901152503.7cb438a3@limapholos.matflo.wg> References: <0794fe73-d850-1459-1160-8af2d7d6cadc@fastwebnet.it> <20160901131256.642513f6@limapholos.matflo.wg> <5d504c62-df6a-d1fc-5cb0-fc0cc85864bd@fastwebnet.it> <20160901152503.7cb438a3@limapholos.matflo.wg> Message-ID: Il 01/09/2016 15:25, Mattias Gaertner ha scritto: >> [...] >> >Using a package isn't a very intuitive solution, when*all* the units >> >belong to the project. > Because of circular dependencies or because of company rules? No, I just mean that while putting into a package a group of units which perform a given task and can be used by many project is rather intuitive, putting all the units of a project into a package isn't very intuitive for an inexperienced user. Moreover in that way *all* units would be recompiled every time one switches from one project to the other. > >> >this could make it much easier to have more than one project in the same >> >directory, without any risk of mix-ups. > Why do you must put all projects and units into a single directory? You don't have to, but you may happen to keep more than one project in a single directory. E.g. I have a "Sandbox" directory which I use for simple tests, and where you can find a number of small projects, >> >A simple option could be to change the default unit path proposed by >> >Lazarus: in place of lib/$(TargetCPU)-$(TargetOS), make it >> >lib/$(ProjectName)/$(TargetCPU)-$(TargetOS) > See here: > http://wiki.lazarus.freepascal.org/IDE_Window:_Compiler_Options#Change_the_output_directory_of_project_and_all_packages Thank you, I'm aware of that, and personally I'm perfectly happy with what is provided by Lazarus. I was just suggesting something which might help inexperienced users to avoid pitfalls. Giuliano -------------- next part -------------- An HTML attachment was scrubbed... URL: From silvioprog at gmail.com Thu Sep 1 20:58:19 2016 From: silvioprog at gmail.com (silvioprog) Date: Thu, 1 Sep 2016 15:58:19 -0300 Subject: [Lazarus] How do I add the "View | Leaks and Traces" as button at the toolbar? Message-ID: Hello, How to add the "View | Leaks and Traces" as button at the toolbar? I want to add it on the right to "Desktops" button, but that isn't showed by filtering 'leak' at the "Toolbar Configuration" window. Thank you! -- Silvio Clécio -------------- next part -------------- An HTML attachment was scrubbed... URL: From getmem1 at gmail.com Fri Sep 2 08:36:32 2016 From: getmem1 at gmail.com (=?UTF-8?B?QmFsw6F6cyBTesOpa2VseQ==?=) Date: Fri, 2 Sep 2016 09:36:32 +0300 Subject: [Lazarus] How do I add the "View | Leaks and Traces" as button at the toolbar? Message-ID: Hi silvioprog, Open unit $(LazarusDir)/components/leakview/heaptrcview.pas . Replace Register procedure with: procedure Register; var IDEShortCutX: TIDEShortCut; IDECommandCategory: TIDECommandCategory; IDECommand: TIDECommand; IDEButtonCommand: TIDEButtonCommand; begin RegisterIDEMenuCommand(itmViewMainWindows, 'mnuLeakView', rsLeakView, nil, @IDEMenuClicked); IDEShortCutX := IDEShortCut(VK_UNKNOWN, [], VK_UNKNOWN, []); IDECommandCategory := IDECommandList.FindCategoryByName(CommandCategoryViewName); if IDECommandCategory <> nil then begin IDECommand := RegisterIDECommand(IDECommandCategory, rsLeakView, rsLeakView, IDEShortCutX, nil, @IDEMenuClicked); if IDECommand <> nil then IDEButtonCommand := RegisterIDEButtonCommand(IDECommand); end; end; Alternatively you can apply the attached patch. regards, Balázs -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: heaptrcview.patch Type: application/octet-stream Size: 1275 bytes Desc: not available URL: From jmlandmesser at gmx.de Fri Sep 2 17:46:29 2016 From: jmlandmesser at gmx.de (John Landmesser) Date: Fri, 2 Sep 2016 17:46:29 +0200 Subject: [Lazarus] Where does Lazarus save path to installed Packages? Message-ID: <540775ae-cc0f-4817-3d5e-b704c52b1fee@gmx.de> i adjust path in packagefiles.xml, but that seems to be not enough. Reason: i copied .lazarus from a different pc and i don't want to reinstall "lost" packages. Ok, i'll googel too ... Thanks for hints From jmlandmesser at gmx.de Fri Sep 2 19:05:06 2016 From: jmlandmesser at gmx.de (John Landmesser) Date: Fri, 2 Sep 2016 19:05:06 +0200 Subject: [Lazarus] Where does Lazarus save path to installed Packages? In-Reply-To: <540775ae-cc0f-4817-3d5e-b704c52b1fee@gmx.de> References: <540775ae-cc0f-4817-3d5e-b704c52b1fee@gmx.de> Message-ID: <2866fc52-bab3-10ac-e8d6-3cf6c963ba8d@gmx.de> seems to be ok to adjust path in packagefiles.xml, could compile! Was wondering seeing no path in List Installed Packages, before i compile and after adjusting the path in packagefiles.xml Solved, i think :-)) Am 02.09.2016 um 17:46 schrieb John Landmesser: > i adjust path in packagefiles.xml, but that seems to be not enough. > > Reason: i copied .lazarus from a different pc and i don't want to > reinstall "lost" packages. > > Ok, i'll googel too ... > > Thanks for hints > > From nc-gaertnma at netcologne.de Fri Sep 2 22:29:47 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Fri, 2 Sep 2016 22:29:47 +0200 Subject: [Lazarus] Where does Lazarus save path to installed Packages? In-Reply-To: <540775ae-cc0f-4817-3d5e-b704c52b1fee@gmx.de> References: <540775ae-cc0f-4817-3d5e-b704c52b1fee@gmx.de> Message-ID: <20160902222947.1f9197c1@limapholos.matflo.wg> On Fri, 2 Sep 2016 17:46:29 +0200 John Landmesser wrote: > i adjust path in packagefiles.xml, but that seems to be not enough. It is enough. The same is done, by calling lazbuild --add-package-link=/new/path/of/package.lpk Mattias From listbox at martoks-place.de Sat Sep 3 23:55:44 2016 From: listbox at martoks-place.de (Martok) Date: Sat, 3 Sep 2016 23:55:44 +0200 Subject: [Lazarus] API-Import of "PUTF8Char" Message-ID: <680f4d0b-36fc-3431-7620-9612973d7ff1@martoks-place.de> Hi List, I'm writing an API interface that passes #0-terminated cstrings with encoding UTF8. What data type should be used to declare these parameters so that I may be able to use as much of 3.0+'s automatic encoding conversion as possible? Some example declarations would look like: procedure SetUserID(const NewValue: PUTF8Char); function GetUserID(const Buf: PUTF8Char; const BufLength: UInt32): UInt32; If I read the wiki correctly, PAnsiChar would not be clear as it is always assumed to be CP_ACP, causing the compiler to generate conversions to DefaultSystemCodePage. I'm posting this to the Lazarus list instead of fpc-pascal because I already use LazUTF8 so CP_ACP really is CP_UTF8, but I want to be sure that the header always works whether LazUTF8 is used or not. Is there a good way to do what I want, or would it be easier to use PUnicodeChar and pass the strings as UTF-16? How well would other languages work with that? Thank you for any hints, Martok From md at delfire.net Sun Sep 4 03:02:37 2016 From: md at delfire.net (Marcos Douglas) Date: Sat, 3 Sep 2016 22:02:37 -0300 Subject: [Lazarus] Feature request: Project Groups In-Reply-To: <20160225114700.298525c4@limapholos.matflo.wg> References: <56CED523.6090805@geldenhuys.co.uk> <20160225114700.298525c4@limapholos.matflo.wg> Message-ID: On Thu, Feb 25, 2016 at 7:47 AM, Mattias Gaertner wrote: > > On Thu, 25 Feb 2016 10:19:15 +0000 > Graeme Geldenhuys wrote: > > >[...] > > One suggestion though. Can the "current project" be highlighted in Bold. > > At the moment there is no way of seeing which project in the project > > group window is the active project. > > It's already on my todo list. > > > > Also, what is the point of the "removed targets" tree node? > > As an Undo. The user does not need to confirm the deletion. > > > I'm assuming > > when you remove a project from the group it appears under the "removed > > targets" node. But why would you want a removed project to still hang > > around in the project group window? You removed it for a reason right? > > If you want to undo an accidental remove, doesn't simply not saving the > > group, or Ctrl-Z, or your SCM system handle that for you? It seems we > > already have plenty of "undo" choice, and the "removed targets" is just > > overkill. > > Ctrl-Z is not implemented. The "removed targets" allow to easily spot > accidental deletions and to examine the removed target. Continuing this thread, I would like to know how can I see the Project Group window on IDE if I close? Is there a shortcut? I didn't find. Marcos Douglas From silvioprog at gmail.com Sun Sep 4 06:22:52 2016 From: silvioprog at gmail.com (silvioprog) Date: Sun, 4 Sep 2016 01:22:52 -0300 Subject: [Lazarus] How do I add the "View | Leaks and Traces" as button at the toolbar? In-Reply-To: References: Message-ID: On Fri, Sep 2, 2016 at 3:36 AM, Balázs Székely wrote: > Hi silvioprog, > > Open unit $(LazarusDir)/components/leakview/heaptrcview.pas . Replace > Register procedure with: > [...] > Alternatively you can apply the attached patch. > > regards, > Balázs > PERFECT! :-) Patch applied properly and now the feature works fine as showed in attached picture. Did you send it to the Lazarus bugtracker? If you prefer I can do it referencing this topic there. Thank you! -- Silvio Clécio -------------- next part -------------- An HTML attachment was scrubbed... URL: From getmem1 at gmail.com Sun Sep 4 09:28:55 2016 From: getmem1 at gmail.com (GetMem1) Date: Sun, 4 Sep 2016 00:28:55 -0700 (MST) Subject: [Lazarus] How do I add the "View | Leaks and Traces" as button at the toolbar? In-Reply-To: References: Message-ID: <1472974134974-4049448.post@n3.nabble.com> >>Patch applied properly and now the feature works fine as showed in attached picture. I'm glad it's working! >>Did you send it to the Lazarus bugtracker? If you prefer I can do it referencing this topic there. Feel free to create a bug report with the attached patch. Thank you! -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-How-do-I-add-the-View-Leaks-and-Traces-as-button-at-the-toolbar-tp4049438p4049448.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. From nc-gaertnma at netcologne.de Sun Sep 4 10:33:18 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sun, 4 Sep 2016 10:33:18 +0200 Subject: [Lazarus] API-Import of "PUTF8Char" In-Reply-To: <680f4d0b-36fc-3431-7620-9612973d7ff1@martoks-place.de> References: <680f4d0b-36fc-3431-7620-9612973d7ff1@martoks-place.de> Message-ID: <20160904103318.40bacd47@limapholos.matflo.wg> On Sat, 3 Sep 2016 23:55:44 +0200 Martok wrote: > Hi List, > > I'm writing an API interface that passes #0-terminated cstrings with encoding > UTF8. What data type should be used to declare these parameters so that I may be > able to use as much of 3.0+'s automatic encoding conversion as possible? > > Some example declarations would look like: > procedure SetUserID(const NewValue: PUTF8Char); > function GetUserID(const Buf: PUTF8Char; const BufLength: UInt32): UInt32; > > If I read the wiki correctly, PAnsiChar would not be clear as it is always > assumed to be CP_ACP, causing the compiler to generate conversions to > DefaultSystemCodePage. I'm posting this to the Lazarus list instead of > fpc-pascal because I already use LazUTF8 so CP_ACP really is CP_UTF8, but I want > to be sure that the header always works whether LazUTF8 is used or not. PAnsiChar is usually a PChar. They are different when using $mode delphiunicode, in which case PChar becomes PWideChar. So PAnsiChar is always a pointer to a CP_ACP char. Thus assigning a PAnsiChar (=PChar) to a String, AnsiString, RawbyteString or ShortString does not add conversion code and therefore does no conversion with or without LazUTF8. Assigning it to another string type (UnicodeString, UTF8String or AnsiString[cp]) will add conversion code. With LazUTF8 this means your PChar will be treated as CP_UTF8, without it will be treated as the runtime system codepage. The other way round - assigning a string to a PChar - is not supported by FPC. So only with LazUTF8 you can use a simple type cast. Without LazUTF8 you must convert the string first, before type casting. If your header should work whether LazUTF8 is used or not then you can provide a helper function: procedure SetUserIDUTF8(const NewValue: PChar); begin ... end; procedure SetUserID(const NewValue: UTF8String); begin SetUserIDUTF8(PChar(NewValue)); end; Alternatively you can use a more optimized version in case LazUTF8 is used: procedure SetUserID(const NewValue: AnsiString); var uValue: String; begin if (DefaultSystemCodePage=CP_UTF8) then SetUserIDUTF8(PChar(NewValue)) else begin uValue:=AnsiToUTF8(NewValue); SetUserIDUTF8(PChar(uValue)); end; end; > Is there a good way to do what I want, or would it be easier to use PUnicodeChar > and pass the strings as UTF-16? How well would other languages work with that? Whether it's easier totally depends on the other language. Mattias From nc-gaertnma at netcologne.de Sun Sep 4 10:38:15 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sun, 4 Sep 2016 10:38:15 +0200 Subject: [Lazarus] Feature request: Project Groups In-Reply-To: References: <56CED523.6090805@geldenhuys.co.uk> <20160225114700.298525c4@limapholos.matflo.wg> Message-ID: <20160904103815.5db5f249@limapholos.matflo.wg> On Sat, 3 Sep 2016 22:02:37 -0300 Marcos Douglas wrote: >[...] > Continuing this thread, I would like to know how can I see the Project > Group window on IDE if I close? > Is there a shortcut? I didn't find. Not yet. There should be a menu item View -> Project Groups and a short cut. Mattias From michael at freepascal.org Sun Sep 4 10:49:06 2016 From: michael at freepascal.org (Michael Van Canneyt) Date: Sun, 4 Sep 2016 10:49:06 +0200 (CEST) Subject: [Lazarus] Feature request: Project Groups In-Reply-To: <20160904103815.5db5f249@limapholos.matflo.wg> References: <56CED523.6090805@geldenhuys.co.uk> <20160225114700.298525c4@limapholos.matflo.wg> <20160904103815.5db5f249@limapholos.matflo.wg> Message-ID: On Sun, 4 Sep 2016, Mattias Gaertner wrote: > On Sat, 3 Sep 2016 22:02:37 -0300 > Marcos Douglas wrote: > >> [...] >> Continuing this thread, I would like to know how can I see the Project >> Group window on IDE if I close? >> Is there a shortcut? I didn't find. > > Not yet. > There should be a menu item View -> Project Groups and a short cut. It still crashes the IDE when I install it :( Michael. From michael at freepascal.org Sun Sep 4 10:49:06 2016 From: michael at freepascal.org (Michael Van Canneyt) Date: Sun, 4 Sep 2016 10:49:06 +0200 (CEST) Subject: [Lazarus] Feature request: Project Groups In-Reply-To: <20160904103815.5db5f249@limapholos.matflo.wg> References: <56CED523.6090805@geldenhuys.co.uk> <20160225114700.298525c4@limapholos.matflo.wg> <20160904103815.5db5f249@limapholos.matflo.wg> Message-ID: On Sun, 4 Sep 2016, Mattias Gaertner wrote: > On Sat, 3 Sep 2016 22:02:37 -0300 > Marcos Douglas wrote: > >> [...] >> Continuing this thread, I would like to know how can I see the Project >> Group window on IDE if I close? >> Is there a shortcut? I didn't find. > > Not yet. > There should be a menu item View -> Project Groups and a short cut. It still crashes the IDE when I install it :( Michael. From md at delfire.net Sun Sep 4 14:45:42 2016 From: md at delfire.net (Marcos Douglas) Date: Sun, 4 Sep 2016 09:45:42 -0300 Subject: [Lazarus] Feature request: Project Groups In-Reply-To: <20160904103815.5db5f249@limapholos.matflo.wg> References: <56CED523.6090805@geldenhuys.co.uk> <20160225114700.298525c4@limapholos.matflo.wg> <20160904103815.5db5f249@limapholos.matflo.wg> Message-ID: On Sun, Sep 4, 2016 at 5:38 AM, Mattias Gaertner wrote: > On Sat, 3 Sep 2016 22:02:37 -0300 > Marcos Douglas wrote: > >>[...] >> Continuing this thread, I would like to know how can I see the Project >> Group window on IDE if I close? >> Is there a shortcut? I didn't find. > > Not yet. > There should be a menu item View -> Project Groups and a short cut. OK, thank you. Marcos Douglas From listbox at martoks-place.de Sun Sep 4 15:56:49 2016 From: listbox at martoks-place.de (Martok) Date: Sun, 4 Sep 2016 15:56:49 +0200 Subject: [Lazarus] API-Import of "PUTF8Char" In-Reply-To: <20160904103318.40bacd47@limapholos.matflo.wg> References: <680f4d0b-36fc-3431-7620-9612973d7ff1@martoks-place.de> <20160904103318.40bacd47@limapholos.matflo.wg> Message-ID: Okay, that's pretty much what I thought, thanks. However: > The other way round - assigning a string to a PChar - is not supported > by FPC. So only with LazUTF8 you can use a simple type cast. Without > LazUTF8 you must convert the string first, before type casting. This does not work either, assigning a UnicodeString to a PChar simply does nothing, as if PChar was CP_NONE... This works as expected and is effectively the same as calling UnicodeToUTF8() directly: pc:= PChar(UTF8String(UniStr)); If there is no conversion at all that would be okay too, but if not I would have to define PUTF8Char = PByte or something just to be safe. > Alternatively you can use a more optimized version in case LazUTF8 is > used: > > procedure SetUserID(const NewValue: AnsiString); AnsiString? Why would that help? >> Is there a good way to do what I want, or would it be easier to use PUnicodeChar >> and pass the strings as UTF-16? How well would other languages work with that? > > Whether it's easier totally depends on the other language. Well, people with Windows experience will probably expect a wchar_t * as UCS-2 or UTF-16, but in contrast Rust would work far better with UTF-8 (because that's their native string type). >From your code examples I think I didn't mention one thing: the internal fields are all UnicodeString. This question is just about the external (non-pascal-facing) interface and how to design it without having to use explicit Utf8ToUnicode everytime. Regards, Martok From thierry.andriamirado at free.fr Sun Sep 4 16:27:24 2016 From: thierry.andriamirado at free.fr (Thierry Andriamirado) Date: Sun, 04 Sep 2016 17:27:24 +0300 Subject: [Lazarus] Feature request: Project Groups In-Reply-To: References: <56CED523.6090805@geldenhuys.co.uk> <20160225114700.298525c4@limapholos.matflo.wg> <20160904103815.5db5f249@limapholos.matflo.wg> Message-ID: Le 4 septembre 2016 11:49:06 EAT, Michael Van Canneyt a écrit : > > >On Sun, 4 Sep 2016, Mattias Gaertner wrote: > >It still crashes the IDE when I install it :( > > >Michael. Still happening to me too. Is it possible to patch the "official release" in order to solve those crashes issue? -- Envoyé de mon téléphone Android avec K-9 Mail. Excusez la brièveté. From mailinglists at geldenhuys.co.uk Sun Sep 4 21:15:13 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Sun, 4 Sep 2016 20:15:13 +0100 Subject: [Lazarus] Feature request: Project Groups In-Reply-To: References: <56CED523.6090805@geldenhuys.co.uk> <20160225114700.298525c4@limapholos.matflo.wg> <20160904103815.5db5f249@limapholos.matflo.wg> Message-ID: <991f9b13-4872-de2d-cc3b-61814d254bb8@geldenhuys.co.uk> On 2016-09-04 15:27, Thierry Andriamirado wrote: > Still happening to me too. Me too, at least on my main development system FreeBSD. In one of my Linux VM's it works perfectly and never crashes. I'm thinking there is maybe a lazarus package conflict or something causing the crash. My Linux VM uses a Lazarus with very limited packages installed as the VM is purpose built for a client's development work. 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 noreply at z505.com Mon Sep 5 11:29:09 2016 From: noreply at z505.com (Lars) Date: Mon, 5 Sep 2016 03:29:09 -0600 Subject: [Lazarus] CMS in Pascal ? Message-ID: On 2016-03-14 12:49, Michael Van Canneyt wrote: >> AFAICS It's on Github: >> https://github.com/z505/powtils/ Graeme replied: > It seems so, though I see the "simple-scm" demo is not included any > more, though the "simple-wiki" is still there. The Simple CMS for some reason did not get copied over to github during the export process from Google Code. Github claimed everything went smoothly during the export, but it appears there are missing files. The simple cms was missing file locking or file sharing for multiple users, as at the time, fpc didn't have file sharing ability. It's also, not really a CMS and more of a basis for an absolute bone simple wiki style content management, with no bells and whistles whatsoever. Most of the examples in powtils were meant to be pure learning demos, minimal as possibly could be without any bells and whistles. I will upload the files to github after I figure out what was lost during the export. Slowly I am learning Github (after first learning a bit of CVS years ago, then everyone went to SVN, now it's github.. what next...) Plan to release simple wiki too as just the parser is there, without actual code that runs the wiki. The main issue was file sharing was not available in fpc (other than unix sys calls or winapi calls directly) at the time of development.. but now FPC has implemented file sharing and locking as part of the RTL. GoLang is also missing file locking and sharing tools in their main cross platform RTL and this is a common problem. File sharing is essential when doing a flat file (no database) content management system or wiki... as without file sharing only one user can really use it safely. Regards, Lars Back from the dead, as Lazarus Bible story goes. From nc-gaertnma at netcologne.de Mon Sep 5 17:20:27 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Mon, 5 Sep 2016 17:20:27 +0200 Subject: [Lazarus] Feature request: Project Groups In-Reply-To: References: <56CED523.6090805@geldenhuys.co.uk> <20160225114700.298525c4@limapholos.matflo.wg> <20160904103815.5db5f249@limapholos.matflo.wg> Message-ID: <20160905172027.735f0815@limapholos.matflo.wg> On Sun, 4 Sep 2016 10:49:06 +0200 (CEST) Michael Van Canneyt wrote: > On Sun, 4 Sep 2016, Mattias Gaertner wrote: > > > On Sat, 3 Sep 2016 22:02:37 -0300 > > Marcos Douglas wrote: > > > >> [...] > >> Continuing this thread, I would like to know how can I see the Project > >> Group window on IDE if I close? > >> Is there a shortcut? I didn't find. > > > > Not yet. > > There should be a menu item View -> Project Groups and a short cut. > > It still crashes the IDE when I install it :( I fixed a crash that might be the cause. Please test. Mattias From silvioprog at gmail.com Mon Sep 5 17:39:49 2016 From: silvioprog at gmail.com (silvioprog) Date: Mon, 5 Sep 2016 12:39:49 -0300 Subject: [Lazarus] How to open the help for the selected identifier? Message-ID: Hello, Is there some IDE configuration to open the online help of a selected identifier instead of the "Code Brower" window? Thank you! -- Silvio Clécio -------------- next part -------------- An HTML attachment was scrubbed... URL: From silvioprog at gmail.com Mon Sep 5 17:46:33 2016 From: silvioprog at gmail.com (silvioprog) Date: Mon, 5 Sep 2016 12:46:33 -0300 Subject: [Lazarus] How do I add the "View | Leaks and Traces" as button at the toolbar? In-Reply-To: <1472974134974-4049448.post@n3.nabble.com> References: <1472974134974-4049448.post@n3.nabble.com> Message-ID: On Sun, Sep 4, 2016 at 4:28 AM, GetMem1 wrote: > >>Patch applied properly and now the feature works fine as showed in > attached > picture. > I'm glad it's working! > > >>Did you send it to the Lazarus bugtracker? If you prefer I can do it > referencing this topic there. > Feel free to create a bug report with the attached patch. Thank you! Issued as #30562 . Thanks again! :-) -- Silvio Clécio -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Mon Sep 5 19:30:39 2016 From: michael at freepascal.org (Michael Van Canneyt) Date: Mon, 5 Sep 2016 19:30:39 +0200 (CEST) Subject: [Lazarus] Feature request: Project Groups In-Reply-To: <20160905172027.735f0815@limapholos.matflo.wg> References: <56CED523.6090805@geldenhuys.co.uk> <20160225114700.298525c4@limapholos.matflo.wg> <20160904103815.5db5f249@limapholos.matflo.wg> <20160905172027.735f0815@limapholos.matflo.wg> Message-ID: On Mon, 5 Sep 2016, Mattias Gaertner wrote: > On Sun, 4 Sep 2016 10:49:06 +0200 (CEST) > Michael Van Canneyt wrote: > >> On Sun, 4 Sep 2016, Mattias Gaertner wrote: >> >> > On Sat, 3 Sep 2016 22:02:37 -0300 >> > Marcos Douglas wrote: >> > >> >> [...] >> >> Continuing this thread, I would like to know how can I see the Project >> >> Group window on IDE if I close? >> >> Is there a shortcut? I didn't find. >> > >> > Not yet. >> > There should be a menu item View -> Project Groups and a short cut. >> >> It still crashes the IDE when I install it :( > > I fixed a crash that might be the cause. > Please test. !!!!!!!!!!!!!!!!!!!!!!!!! !!!! YES ! YES ! YES !!!! !!!!!!!!!!!!!!!!!!!!!!!!! It works ! Finally I get to use it... This is going to make life so much easier :-) Many thanks for the fix :-) Michael. From michael at freepascal.org Mon Sep 5 19:30:39 2016 From: michael at freepascal.org (Michael Van Canneyt) Date: Mon, 5 Sep 2016 19:30:39 +0200 (CEST) Subject: [Lazarus] Feature request: Project Groups In-Reply-To: <20160905172027.735f0815@limapholos.matflo.wg> References: <56CED523.6090805@geldenhuys.co.uk> <20160225114700.298525c4@limapholos.matflo.wg> <20160904103815.5db5f249@limapholos.matflo.wg> <20160905172027.735f0815@limapholos.matflo.wg> Message-ID: On Mon, 5 Sep 2016, Mattias Gaertner wrote: > On Sun, 4 Sep 2016 10:49:06 +0200 (CEST) > Michael Van Canneyt wrote: > >> On Sun, 4 Sep 2016, Mattias Gaertner wrote: >> >> > On Sat, 3 Sep 2016 22:02:37 -0300 >> > Marcos Douglas wrote: >> > >> >> [...] >> >> Continuing this thread, I would like to know how can I see the Project >> >> Group window on IDE if I close? >> >> Is there a shortcut? I didn't find. >> > >> > Not yet. >> > There should be a menu item View -> Project Groups and a short cut. >> >> It still crashes the IDE when I install it :( > > I fixed a crash that might be the cause. > Please test. !!!!!!!!!!!!!!!!!!!!!!!!! !!!! YES ! YES ! YES !!!! !!!!!!!!!!!!!!!!!!!!!!!!! It works ! Finally I get to use it... This is going to make life so much easier :-) Many thanks for the fix :-) Michael. From dcorning at ecentral.com Mon Sep 5 22:21:17 2016 From: dcorning at ecentral.com (Dale Corning) Date: Mon, 5 Sep 2016 14:21:17 -0600 Subject: [Lazarus] Google API components Message-ID: <347F99210A47408CA1BE46C457DCE268@Cornings> How do I obtain/install the Google API’s onto my Lazarus component Pallet. I have Lazarus v1.6 and free pascal 3.0.0 svn 51630 --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus -------------- next part -------------- An HTML attachment was scrubbed... URL: From mailinglists at geldenhuys.co.uk Tue Sep 6 02:02:33 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Tue, 6 Sep 2016 01:02:33 +0100 Subject: [Lazarus] How to open the help for the selected identifier? In-Reply-To: References: Message-ID: <318d71c3-c36f-0f5d-ac27-a90bae69ea4c@geldenhuys.co.uk> On 2016-09-05 16:39, silvioprog wrote: > Is there some IDE configuration to open the online help of a selected > identifier instead of the "Code Brower" window? http://fpgui.sourceforge.net/docview_ide_integration.shtml 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 Tue Sep 6 13:19:36 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Tue, 6 Sep 2016 12:19:36 +0100 Subject: [Lazarus] editor: Horizontal scrollbar position after pressing ENTER Message-ID: <9061b8e1-dda2-a561-8568-207f507f5920@geldenhuys.co.uk> Hi, Please see attached screenshot to help explain. When I have a long line of code that causes horizontal scrolling and I press ENTER to start a new line, the cursor moves to the correct indentation level, but the editor view is still scrolled a few spaces off the screen (see (1) in screenshot). See of the word "const" is only partially visible two lines down. What I would like to see after pressing ENTER is that the editor scrolls back to column 0, and the edit cursor placed in the normal indented position. As indicated by (2) in the screenshot. Note how the word "const" is now fully visible. Is there a editor setting that alters the behaviour of (1) somewhere? I had a look through the various editor settings, but can't see anything obvious. 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: screenshot01.png Type: image/png Size: 26909 bytes Desc: not available URL: From juergen.hestermann at gmx.de Tue Sep 6 13:50:35 2016 From: juergen.hestermann at gmx.de (=?UTF-8?Q?J=c3=bcrgen_Hestermann?=) Date: Tue, 6 Sep 2016 13:50:35 +0200 Subject: [Lazarus] VirtualTreeView: Expand/Collapse without OnNodeClick Message-ID: I already spend quite a lot of time to find a way around a certain behaviour in VirtualTreeView (5.5.3-R1) but with no luck: When I click on a plus/minus button left of a node in the tree to collapse/expand all sub-nodes then always the event OnNodeClick is called too. It seems to be impossible to start an action by clicking on a node while still allowing to collapse/expand sub-nodes as a stand-alone function. It's annoying to have the event fired when I only want to expand/collapse nodes. Is this (again) a bug in VTV or is there a way to avoid this behaviour? From tc at epidata.info Tue Sep 6 13:54:59 2016 From: tc at epidata.info (Torsten Bonde Christiansen) Date: Tue, 6 Sep 2016 13:54:59 +0200 Subject: [Lazarus] TEdit on GTK2 Message-ID: <22015c9d-a9e5-5f9e-f684-dfa07be773fb@epidata.info> Hi all. Am i the only one who have notices that lazarus trunk on GTK has a malfunctioning TEdit component. All backspace and delete keys automatically moves the cursor one space to the right after the delete, hence if you wish to delete multiple characters in a row it completely messes with the text. I can't tell which rev. this started in, but my current rev. is 52919 on FPC 3.0.0 (x86_64, linux, GTK2) Kind regards, Torsten. From getmem1 at gmail.com Tue Sep 6 16:33:54 2016 From: getmem1 at gmail.com (=?UTF-8?Q?Bal=C3=A1zs_Sz=C3=A9kely?=) Date: Tue, 6 Sep 2016 07:33:54 -0700 (MST) Subject: [Lazarus] VirtualTreeView: Expand/Collapse without OnNodeClick In-Reply-To: References: Message-ID: <1473172434881-4049466.post@n3.nabble.com> This should work: procedure TfMain.VSTCollapsing(Sender: TBaseVirtualTree; Node: PVirtualNode; var Allowed: Boolean); begin CollapsingOrExapnding := True; end; procedure TfMain.VSTExpanding(Sender: TBaseVirtualTree; Node: PVirtualNode; var Allowed: Boolean); begin CollapsingOrExapnding := True; end; procedure TfMain.OnNodeClick(Sender: TObject); begin if not CollapsingOrExapnding then begin //regular node click(not +/- buttons), do something... ShowMessage('ok') end else CollapsingOrExapnding := False; end; -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-VirtualTreeView-Expand-Collapse-without-OnNodeClick-tp4049464p4049466.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. From juergen.hestermann at gmx.de Tue Sep 6 17:06:22 2016 From: juergen.hestermann at gmx.de (=?UTF-8?Q?J=c3=bcrgen_Hestermann?=) Date: Tue, 6 Sep 2016 17:06:22 +0200 Subject: [Lazarus] VirtualTreeView: Expand/Collapse without OnNodeClick In-Reply-To: <1473172434881-4049466.post@n3.nabble.com> References: <1473172434881-4049466.post@n3.nabble.com> Message-ID: <2093a446-1747-282d-d62b-b4a526c79b48@gmx.de> Am 2016-09-06 um 16:33 schrieb Balázs Székely: > This should work: > procedure TfMain.VSTCollapsing(Sender: TBaseVirtualTree; Node: PVirtualNode; > var Allowed: Boolean); > begin > CollapsingOrExapnding := True; > end; > procedure TfMain.VSTExpanding(Sender: TBaseVirtualTree; Node: PVirtualNode; > var Allowed: Boolean); > begin > CollapsingOrExapnding := True; > end; > procedure TfMain.OnNodeClick(Sender: TObject); > begin > if not CollapsingOrExapnding then > begin > //regular node click(not +/- buttons), do something... > ShowMessage('ok') > end > else > CollapsingOrExapnding := False; > end; Thanks, yes, this workaround works okay. Still I am wondering why such a workaround is needed at all. The NodeClick-event should not be fired when nodes are just expanded/collapsed. I have another VirtualTreeView instance where clicking on a node just selects this node (which VTV does internally). Interestingly, in this case I can collapse/expand without VTV selecting the node. Only if I use the NodeClick-event it is fired together with expand/collapse. IMO this is a bug. From getmem1 at gmail.com Tue Sep 6 17:22:50 2016 From: getmem1 at gmail.com (=?UTF-8?Q?Bal=C3=A1zs_Sz=C3=A9kely?=) Date: Tue, 6 Sep 2016 08:22:50 -0700 (MST) Subject: [Lazarus] VirtualTreeView: Expand/Collapse without OnNodeClick In-Reply-To: <2093a446-1747-282d-d62b-b4a526c79b48@gmx.de> References: <1473172434881-4049466.post@n3.nabble.com> <2093a446-1747-282d-d62b-b4a526c79b48@gmx.de> Message-ID: <1473175370548-4049468.post@n3.nabble.com> >>Still I am wondering why such a workaround is needed at all. >>The NodeClick-event should not be fired when nodes are just expanded/collapsed. Did you try the OnFocusChanged event instead of OnNodeClick? You can replace the OnNodeClick functionality in most cases(depends on the specific code though). -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-VirtualTreeView-Expand-Collapse-without-OnNodeClick-tp4049464p4049468.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. From juergen.hestermann at gmx.de Tue Sep 6 17:46:59 2016 From: juergen.hestermann at gmx.de (=?UTF-8?Q?J=c3=bcrgen_Hestermann?=) Date: Tue, 6 Sep 2016 17:46:59 +0200 Subject: [Lazarus] VirtualTreeView: Expand/Collapse without OnNodeClick In-Reply-To: <1473175370548-4049468.post@n3.nabble.com> References: <1473172434881-4049466.post@n3.nabble.com> <2093a446-1747-282d-d62b-b4a526c79b48@gmx.de> <1473175370548-4049468.post@n3.nabble.com> Message-ID: <9522bce3-f8e7-1301-8b07-356be2f8cc42@gmx.de> Am 2016-09-06 um 17:22 schrieb Balázs Székely: >>> Still I am wondering why such a workaround is needed at all. >>> The NodeClick-event should not be fired when nodes are just > expanded/collapsed. > Did you try the OnFocusChanged event instead of OnNodeClick? You can replace > the OnNodeClick functionality in most cases(depends on the specific code > though). Well, yet another workaround. I think this will not work because when someone clicks twice on the same node then OnFocusChanged would not be called (I think) as the focused node does not change. From jmlandmesser at gmx.de Tue Sep 6 18:16:33 2016 From: jmlandmesser at gmx.de (John Landmesser) Date: Tue, 6 Sep 2016 18:16:33 +0200 Subject: [Lazarus] DateDiff in Freepascal 3.0 now? Message-ID: <2cf64a91-b806-30dd-fc6a-3579eb3c826b@gmx.de> see this thread: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-DateDif-function-needed-tt4034182.html#none Is a function similiar to Jedi's DateDiff part of Freepascal now? As i remember Michael van Canneyt wanted to implement that to Pascal 3.0?? That's Jedi's version: procedure DateDiff(Date1, Date2: TDateTime; var Days, Months, Years: word); var DtSwap: TDateTime; Day1, Day2, Month1, Month2, Year1, Year2: word; begin if Date1 > Date2 then begin DtSwap := Date1; Date1 := Date2; Date2 := DtSwap; end; DecodeDate(Date1, Year1, Month1, Day1); DecodeDate(Date2, Year2, Month2, Day2); Years := Year2 - Year1; Months := 0; Days := 0; if Month2 < Month1 then begin Inc(Months, 12); Dec(Years); end; Inc(Months, Month2 - Month1); if Day2 < Day1 then begin // von mir auskommentiert Inc(Days, DaysPerMonth(Year1, Month1)); Inc(Days, DaysInAMonth(Year1, Month1)); if Months = 0 then begin Dec(Years); Months := 11; end else Dec(Months); end; Inc(Days, Day2 - Day1); end; From michael at freepascal.org Tue Sep 6 20:53:51 2016 From: michael at freepascal.org (Michael Van Canneyt) Date: Tue, 6 Sep 2016 20:53:51 +0200 (CEST) Subject: [Lazarus] DateDiff in Freepascal 3.0 now? In-Reply-To: <2cf64a91-b806-30dd-fc6a-3579eb3c826b@gmx.de> References: <2cf64a91-b806-30dd-fc6a-3579eb3c826b@gmx.de> Message-ID: On Tue, 6 Sep 2016, John Landmesser wrote: > see this thread: > > http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-DateDif-function-needed-tt4034182.html#none > > Is a function similiar to Jedi's DateDiff part of Freepascal now? Yes. PeriodBetween. See http://www.freepascal.org/docs-html/current/rtl/dateutils/periodbetween.html Michael. From juergen.hestermann at gmx.de Wed Sep 7 00:55:35 2016 From: juergen.hestermann at gmx.de (=?UTF-8?Q?J=c3=bcrgen_Hestermann?=) Date: Wed, 7 Sep 2016 00:55:35 +0200 Subject: [Lazarus] VirtualTreeView: Expand/Collapse without OnNodeClick In-Reply-To: <2093a446-1747-282d-d62b-b4a526c79b48@gmx.de> References: <1473172434881-4049466.post@n3.nabble.com> <2093a446-1747-282d-d62b-b4a526c79b48@gmx.de> Message-ID: Am 2016-09-06 um 17:06 schrieb Jürgen Hestermann: > Am 2016-09-06 um 16:33 schrieb Balázs Székely: > > This should work: > > procedure TfMain.VSTCollapsing(Sender: TBaseVirtualTree; Node: PVirtualNode; > > var Allowed: Boolean); > > begin > > CollapsingOrExapnding := True; > > end; > > procedure TfMain.VSTExpanding(Sender: TBaseVirtualTree; Node: PVirtualNode; > > var Allowed: Boolean); > > begin > > CollapsingOrExapnding := True; > > end; > > procedure TfMain.OnNodeClick(Sender: TObject); > > begin > > if not CollapsingOrExapnding then > > begin > > //regular node click(not +/- buttons), do something... > > ShowMessage('ok') > > end > > else > > CollapsingOrExapnding := False; > > end; > > Thanks, yes, this workaround works okay. > Unfortunately, this workaround has another side effect because the OnCollapsing/OnExpanding routines are not only called when someone clicks on the buttons but also when I do expand/collapse internally or when VTV does this. Then the boolean variable stays true and the first click on the node does not work. So I have to again work around the workaround... I am still wondering why this is needed at all... From getmem1 at gmail.com Wed Sep 7 06:32:00 2016 From: getmem1 at gmail.com (=?UTF-8?Q?Bal=C3=A1zs_Sz=C3=A9kely?=) Date: Tue, 6 Sep 2016 21:32:00 -0700 (MST) Subject: [Lazarus] VirtualTreeView: Expand/Collapse without OnNodeClick In-Reply-To: References: <1473172434881-4049466.post@n3.nabble.com> <2093a446-1747-282d-d62b-b4a526c79b48@gmx.de> Message-ID: <1473222720907-4049473.post@n3.nabble.com> >>I am still wondering why this is needed at all... TTreeView behaves the same. When you click on the +/- buttons is still considered a node click, because technically you do click a node. >>So I have to again work around the workaround... What exactly are you trying to achieve on NodeClick? Perhaps it can be replaced with something else. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-VirtualTreeView-Expand-Collapse-without-OnNodeClick-tp4049464p4049473.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. From juergen.hestermann at gmx.de Wed Sep 7 10:19:05 2016 From: juergen.hestermann at gmx.de (=?UTF-8?Q?J=c3=bcrgen_Hestermann?=) Date: Wed, 7 Sep 2016 10:19:05 +0200 Subject: [Lazarus] VirtualTreeView: Expand/Collapse without OnNodeClick In-Reply-To: <1473222720907-4049473.post@n3.nabble.com> References: <1473172434881-4049466.post@n3.nabble.com> <2093a446-1747-282d-d62b-b4a526c79b48@gmx.de> <1473222720907-4049473.post@n3.nabble.com> Message-ID: Am 2016-09-07 um 06:32 schrieb Balázs Székely: >>> I am still wondering why this is needed at all... > TTreeView behaves the same. When you click on the +/- buttons is still > considered a node click, because technically you do click a node. IMO this is not true. I am not clicking on the node but on the button to the left of it. When I click on expand/collapse, why should I want to trigger any other function with this? Also, as already written, when I use the internal functions of VTV to let me *select* a node by clicking on it, then this selection does not happen together with expand/collapse (although in your logic I am clicking on the node too). So why should NodeClick be fired? >>> So I have to again work around the workaround... > What exactly are you trying to achieve on NodeClick? Perhaps it can be > replaced with something else. I have a (hierarchical) list of functions which should be invoked when the user clicks on them. But of course, arranging the tree of functions by expanding/collapsing should not fire any of the functions. I have now a (new) workaround to my problem so there is no need to look for an alternative solution. Still I think that this behaviour of VTV is a bug. From giuliano.colla at fastwebnet.it Wed Sep 7 13:09:07 2016 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Wed, 7 Sep 2016 13:09:07 +0200 Subject: [Lazarus] UTF8 issue Message-ID: <68b7b0c8-e1ce-396f-e578-247f283a8fcc@fastwebnet.it> I'm unsure whether this is a Lazarus issue, an fpc issue, or if I'm doing something wrong. I'm in Linux environment, where everything is supposed to be UTF8. LANG environment is it_IT_.UTF-8, and I do not declare anything about codepages, leaving Lazarus and fpc work with their defaults. 1) Under Lazarus 1.6 and fpc 3.0 If I declare CamelStrings: array [0..5] of String =( .... 'Entry éèàù'); and I load the strings in a ComboBox, the ComboBox displays Entry éèàù as expected But declaring CamelStrings: array [0..5] of UTF8String =( .... 'Entry éèàù'); then the ComboBox displays Entry éèà ù 2) Under Lazarus 1.4.5 and fpc 2.6.4 Declaring either String or UTF8String doesn't make any difference, and the ComboBox always displays the proper string. What I'm missing? Is that an "improvement" generated by fpc 3.0.0 or I'm doing something wrong? Giuliano From nc-gaertnma at netcologne.de Wed Sep 7 15:08:09 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Wed, 7 Sep 2016 15:08:09 +0200 Subject: [Lazarus] UTF8 issue In-Reply-To: <68b7b0c8-e1ce-396f-e578-247f283a8fcc@fastwebnet.it> References: <68b7b0c8-e1ce-396f-e578-247f283a8fcc@fastwebnet.it> Message-ID: <20160907150809.7e23963f@limapholos.matflo.wg> On Wed, 7 Sep 2016 13:09:07 +0200 Giuliano Colla wrote: >[...] > CamelStrings: array [0..5] of UTF8String =( > .... > 'Entry éèàù'); > > then the ComboBox displays > > Entry éèà ù FPC does not use your LANG variable. Instead it always assumes ISO-8859-1. See here: http://wiki.lazarus.freepascal.org/FPC_Unicode_support#String_constants Same for WideString and UnicodeString. > 2) Under Lazarus 1.4.5 and fpc 2.6.4 > > Declaring either String or UTF8String doesn't make any difference, and > the ComboBox always displays the proper string. > > What I'm missing? Is that an "improvement" generated by fpc 3.0.0 or I'm > doing something wrong? Mattias From thierry.andriamirado at free.fr Wed Sep 7 17:14:22 2016 From: thierry.andriamirado at free.fr (Thierry Andriamirado) Date: Wed, 07 Sep 2016 18:14:22 +0300 Subject: [Lazarus] Feature request: Project Groups In-Reply-To: References: <56CED523.6090805@geldenhuys.co.uk> <20160225114700.298525c4@limapholos.matflo.wg> <20160904103815.5db5f249@limapholos.matflo.wg> <20160905172027.735f0815@limapholos.matflo.wg> Message-ID: <3A37AD04-C02E-4B17-AA6C-A99003FF6A8D@free.fr> Le 5 septembre 2016 20:30:39 UTC+03:00, Michael Van Canneyt a écrit : >> I fixed a crash that might be the cause. >> Please test. > >!!!!!!!!!!!!!!!!!!!!!!!!! >!!!! YES ! YES ! YES !!!! >!!!!!!!!!!!!!!!!!!!!!!!!! > >It works ! Finally I get to use it... >This is going to make life so much easier :-) Good news! Is it possible to patch the 1.6 official release, or do I have to use the SVN one? >Many thanks for the fix :-) You guys rock!! > >Michael. >-- >_______________________________________________ >Lazarus mailing list >Lazarus at lists.lazarus-ide.org >http://lists.lazarus-ide.org/listinfo/lazarus -- Envoyé de mon téléphone Android avec K-9 Mail. Excusez la brièveté. From giuliano.colla at fastwebnet.it Wed Sep 7 18:31:59 2016 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Wed, 7 Sep 2016 18:31:59 +0200 Subject: [Lazarus] UTF8 issue In-Reply-To: <20160907150809.7e23963f@limapholos.matflo.wg> References: <68b7b0c8-e1ce-396f-e578-247f283a8fcc@fastwebnet.it> <20160907150809.7e23963f@limapholos.matflo.wg> Message-ID: <797c1f1d-39d2-6cab-442a-b3513b3f5d1f@fastwebnet.it> Il 07/09/2016 15:08, Mattias Gaertner ha scritto: > FPC does not use your LANG variable. Instead it always assumes > ISO-8859-1. See here: I could swallow it more easily if it were the opposite, i.e. the String type is misinterpreted and UTF8String is properly handled. But what happens is that the String type is handled correctly, while UTF8String is not. IOW the compiler is told what to expect from a string and it messes it up. Moreover calling SetMultiByteConversionCodePage(CP_UTF8) at program startup doesn't change a thing: String type is correct, UTF8String type is wrong. fpc bug? Giuliano From nc-gaertnma at netcologne.de Wed Sep 7 18:34:08 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Wed, 7 Sep 2016 18:34:08 +0200 Subject: [Lazarus] Feature request: Project Groups In-Reply-To: <3A37AD04-C02E-4B17-AA6C-A99003FF6A8D@free.fr> References: <56CED523.6090805@geldenhuys.co.uk> <20160225114700.298525c4@limapholos.matflo.wg> <20160904103815.5db5f249@limapholos.matflo.wg> <20160905172027.735f0815@limapholos.matflo.wg> <3A37AD04-C02E-4B17-AA6C-A99003FF6A8D@free.fr> Message-ID: <20160907183408.5c5abf6f@limapholos.matflo.wg> On Wed, 07 Sep 2016 18:14:22 +0300 Thierry Andriamirado wrote: >[...] > Is it possible to patch the 1.6 official release, or do I have to use the SVN one? I merged the changes to fixes_1_6. Mattias From nc-gaertnma at netcologne.de Wed Sep 7 19:08:49 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Wed, 7 Sep 2016 19:08:49 +0200 Subject: [Lazarus] UTF8 issue In-Reply-To: <797c1f1d-39d2-6cab-442a-b3513b3f5d1f@fastwebnet.it> References: <68b7b0c8-e1ce-396f-e578-247f283a8fcc@fastwebnet.it> <20160907150809.7e23963f@limapholos.matflo.wg> <797c1f1d-39d2-6cab-442a-b3513b3f5d1f@fastwebnet.it> Message-ID: <20160907190849.4ae37eaf@limapholos.matflo.wg> On Wed, 7 Sep 2016 18:31:59 +0200 Giuliano Colla wrote: > Il 07/09/2016 15:08, Mattias Gaertner ha scritto: > > FPC does not use your LANG variable. Instead it always assumes > > ISO-8859-1. See here: > > I could swallow it more easily if it were the opposite, i.e. the String > type is misinterpreted and UTF8String is properly handled. > > But what happens is that the String type is handled correctly, while > UTF8String is not. IOW the compiler is told what to expect from a string > and it messes it up. > > Moreover calling SetMultiByteConversionCodePage(CP_UTF8) at program > startup doesn't change a thing: String type is correct, UTF8String type > is wrong. > > fpc bug? This has become a FAQ: http://wiki.lazarus.freepascal.org/Better_Unicode_Support_in_Lazarus#Why_does_UTF8String_show_strange_characters_and_String_works Mattias From giuliano.colla at fastwebnet.it Wed Sep 7 19:46:17 2016 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Wed, 7 Sep 2016 19:46:17 +0200 Subject: [Lazarus] UTF8 issue In-Reply-To: <20160907190849.4ae37eaf@limapholos.matflo.wg> References: <68b7b0c8-e1ce-396f-e578-247f283a8fcc@fastwebnet.it> <20160907150809.7e23963f@limapholos.matflo.wg> <797c1f1d-39d2-6cab-442a-b3513b3f5d1f@fastwebnet.it> <20160907190849.4ae37eaf@limapholos.matflo.wg> Message-ID: Il 07/09/2016 19:08, Mattias Gaertner ha scritto: > This has become a FAQ: OK. I keep my opinion that this is a bit crazy, but a documented bug is a feature ;-) . Thank for your time Giuliano From michael at freepascal.org Wed Sep 7 22:23:04 2016 From: michael at freepascal.org (Michael Van Canneyt) Date: Wed, 7 Sep 2016 22:23:04 +0200 (CEST) Subject: [Lazarus] Object Inspector reuse ? Message-ID: Hi, Can the IDE's object inspector be used independent of the IDE ? I need to create a report designer, and it would save me a lot of work if I could re-use the IDE's object inspector. So before I dive in the code, I thought I'd ask here first. Maybe someone has already attempted such a thing. As an alternative: can the RTTI property grid be used on a list of objects ? Last time I worked with it, it could only handle 1 object at a time. Michael. From giuliano.colla at fastwebnet.it Thu Sep 8 00:12:54 2016 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Thu, 8 Sep 2016 00:12:54 +0200 Subject: [Lazarus] Object Inspector reuse ? In-Reply-To: References: Message-ID: If I remember well, Lazreport does something of this sort. Worth giving a look. Giuliano Inviato da iPhone > Il giorno 07 set 2016, alle ore 22:23, Michael Van Canneyt ha scritto: > > > > Hi, > > Can the IDE's object inspector be used independent of the IDE ? > > I need to create a report designer, and it would save me a lot of work if I > could re-use the IDE's object inspector. So before I dive in the code, I > thought I'd ask here first. Maybe someone has already attempted such a > thing. > > As an alternative: can the RTTI property grid be used on a list of objects ? > Last time I worked with it, it could only handle 1 object at a time. > > Michael. > -- > _______________________________________________ > Lazarus mailing list > Lazarus at lists.lazarus-ide.org > http://lists.lazarus-ide.org/listinfo/lazarus From zoe at scootersoftware.com Thu Sep 8 01:11:12 2016 From: zoe at scootersoftware.com (=?UTF-8?Q?Zo=c3=ab_Peterson?=) Date: Wed, 7 Sep 2016 18:11:12 -0500 Subject: [Lazarus] Suppress compiler switches? Message-ID: <77c79ad7-be6b-2941-a32e-34044f51d1d7@scootersoftware.com> As part of our automated build process, we have a .cfg file that we pass to fpc with all of the command line arguments necessary. Currently, all of those settings are duplicated in the associated Lazarus .lpi file and I'd like to fix that so they're only stored in one place. I see "Use additional compiler config file (@)" in the "Config and Target" section of the Project Options, but there doesn't appear to be a way to /only/ use that, so it isn't passing in unnecessary inherited configuration options. Is there any way to do so? If not, is there a preferred way compile from the command line? Thanks, Zoë Peterson Scooter Software From michael at freepascal.org Thu Sep 8 08:04:18 2016 From: michael at freepascal.org (Michael Van Canneyt) Date: Thu, 8 Sep 2016 08:04:18 +0200 (CEST) Subject: [Lazarus] Object Inspector reuse ? In-Reply-To: References: Message-ID: On Thu, 8 Sep 2016, Giuliano Colla wrote: > If I remember well, Lazreport does something of this sort. Worth giving a look. > Giuliano Indeed. I had a look... I copy here the uses section of the Object Inspector unit: // IMPORTANT: the object inspector is a tool and can be used in other programs // too. Don't put Lazarus IDE specific things here. If you look at the above 'Important' warning and then look below: // RTL / FCL SysUtils, Types, Classes, TypInfo, math, FPCanvas, // LCL InterfaceBase, LCLType, LCLIntf, Forms, Buttons, Graphics, GraphType, StdCtrls, Controls, ComCtrls, ExtCtrls, Menus, Dialogs, Themes, LMessages, LCLProc, // LazControls {$IFnDEF UseOINormalCheckBox} CheckBoxThemed, {$ENDIF} TreeFilterEdit, ListFilterEdit, // LazUtils LazConfigStorage, LazLoggerBase, // IdeIntf IDEImagesIntf, IDEHelpIntf, ObjInspStrConsts, PropEdits, PropEditUtils, ComponentTreeView, OIFavoriteProperties, ListViewPropEdit, ImageListEditor, ComponentEditors, ChangeParentDlg; Everything below "IdeIntf" seems quite "Lazarus IDE specific" to me. So the 'Important' warning can be removed, it is useless. So using the object inspector is already out. Well, I got an answer to my question :-) Michael. > > Inviato da iPhone > >> Il giorno 07 set 2016, alle ore 22:23, Michael Van Canneyt ha scritto: >> >> >> >> Hi, >> >> Can the IDE's object inspector be used independent of the IDE ? >> >> I need to create a report designer, and it would save me a lot of work if I >> could re-use the IDE's object inspector. So before I dive in the code, I >> thought I'd ask here first. Maybe someone has already attempted such a >> thing. >> >> As an alternative: can the RTTI property grid be used on a list of objects ? >> Last time I worked with it, it could only handle 1 object at a time. >> >> Michael. >> -- >> _______________________________________________ >> 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 From nc-gaertnma at netcologne.de Thu Sep 8 08:40:42 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 8 Sep 2016 08:40:42 +0200 Subject: [Lazarus] Suppress compiler switches? In-Reply-To: <77c79ad7-be6b-2941-a32e-34044f51d1d7@scootersoftware.com> References: <77c79ad7-be6b-2941-a32e-34044f51d1d7@scootersoftware.com> Message-ID: <20160908084042.3d404aab@limapholos.matflo.wg> On Wed, 7 Sep 2016 18:11:12 -0500 Zoë Peterson wrote: > As part of our automated build process, we have a .cfg file that we pass > to fpc with all of the command line arguments necessary. Currently, all > of those settings are duplicated in the associated Lazarus .lpi file and > I'd like to fix that so they're only stored in one place. > > I see "Use additional compiler config file (@)" in the "Config and > Target" section of the Project Options, but there doesn't appear to be a > way to /only/ use that, so it isn't passing in unnecessary inherited > configuration options. Is there any way to do so? No. The IDE does not even know the options in this file. It does not know the options of the default fpc.cfg either. It runs the compiler once with a test file and reads the output, so the IDE only knows the total options of compiler defaults plus fpc.cfg. > If not, is there a > preferred way compile from the command line? You can use lazbuild http://wiki.lazarus.freepascal.org/lazbuild Mattias From nc-gaertnma at netcologne.de Thu Sep 8 08:43:04 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 8 Sep 2016 08:43:04 +0200 Subject: [Lazarus] Object Inspector reuse ? In-Reply-To: References: Message-ID: <20160908084304.6b6a3dbc@limapholos.matflo.wg> On Wed, 7 Sep 2016 22:23:04 +0200 (CEST) Michael Van Canneyt wrote: > Hi, > > Can the IDE's object inspector be used independent of the IDE ? Yes. See examples/objectinspector/ Mattias From nc-gaertnma at netcologne.de Thu Sep 8 08:50:09 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 8 Sep 2016 08:50:09 +0200 Subject: [Lazarus] Object Inspector reuse ? In-Reply-To: References: Message-ID: <20160908085009.1b90699d@limapholos.matflo.wg> On Thu, 8 Sep 2016 08:04:18 +0200 (CEST) Michael Van Canneyt wrote: >[...] > // IMPORTANT: the object inspector is a tool and can be used in other programs > // too. Don't put Lazarus IDE specific things here. > > If you look at the above 'Important' warning and then look below: > >[...] > // IdeIntf > IDEImagesIntf, IDEHelpIntf, ObjInspStrConsts, > PropEdits, PropEditUtils, ComponentTreeView, OIFavoriteProperties, > ListViewPropEdit, ImageListEditor, ComponentEditors, ChangeParentDlg; > > > Everything below "IdeIntf" seems quite "Lazarus IDE specific" to me. > So the 'Important' warning can be removed, it is useless. These are property editors for the FCL/LCL types and the component tree view. They are LCL specific, not IDE specific. If you don't need the LCL editors, it should be easy to add some IFDEFs. > So using the object inspector is already out. > Well, I got an answer to my question :-) Mattias From michael at freepascal.org Thu Sep 8 09:13:49 2016 From: michael at freepascal.org (Michael Van Canneyt) Date: Thu, 8 Sep 2016 09:13:49 +0200 (CEST) Subject: [Lazarus] Object Inspector reuse ? In-Reply-To: <20160908085009.1b90699d@limapholos.matflo.wg> References: <20160908085009.1b90699d@limapholos.matflo.wg> Message-ID: On Thu, 8 Sep 2016, Mattias Gaertner wrote: > On Thu, 8 Sep 2016 08:04:18 +0200 (CEST) > Michael Van Canneyt wrote: > >> [...] >> // IMPORTANT: the object inspector is a tool and can be used in other programs >> // too. Don't put Lazarus IDE specific things here. >> >> If you look at the above 'Important' warning and then look below: >> >> [...] >> // IdeIntf >> IDEImagesIntf, IDEHelpIntf, ObjInspStrConsts, >> PropEdits, PropEditUtils, ComponentTreeView, OIFavoriteProperties, >> ListViewPropEdit, ImageListEditor, ComponentEditors, ChangeParentDlg; >> >> >> Everything below "IdeIntf" seems quite "Lazarus IDE specific" to me. >> So the 'Important' warning can be removed, it is useless. > > These are property editors for the FCL/LCL types and the component tree > view. They are LCL specific, not IDE specific. I beg to differ somwhat.... A quick glance reveals that they reference for example the help system of the IDE. IDEWindowIntf is also not really something I want in my end-user binary. I can probably find more.. > If you don't need the LCL editors, it should be easy to add some IFDEFs. That will create a serious mess, because for my project I would need to enable the define, and when compiling the IDE the define must be disabled etc. IMHO Better is to have a TBaseObjectInspector/TIDEObjectInspector approach: a base class that can be used without all (or most of) the IDEIntf stuff, and a descendent that uses the IDE stuff to provide additional functionality. As far as I can see, the only needed thing is the PropEdits unit, since that is what is needed to enable property editors. Michael. From nc-gaertnma at netcologne.de Thu Sep 8 09:27:23 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 8 Sep 2016 09:27:23 +0200 Subject: [Lazarus] Object Inspector reuse ? In-Reply-To: References: <20160908085009.1b90699d@limapholos.matflo.wg> Message-ID: <20160908092723.51d6a1bf@limapholos.matflo.wg> On Thu, 8 Sep 2016 09:13:49 +0200 (CEST) Michael Van Canneyt wrote: >[...] > > These are property editors for the FCL/LCL types and the component tree > > view. They are LCL specific, not IDE specific. > > I beg to differ somwhat.... > A quick glance reveals that they reference for example the help system of the IDE. It uses the hint window. You can use this to show your own hints in your application. > IDEWindowIntf is also not really something I want in my end-user binary. IDEWindowIntf? > I can probably find more.. > > > If you don't need the LCL editors, it should be easy to add some IFDEFs. > > That will create a serious mess, because for my project I would need to > enable the define, and when compiling the IDE the define must be disabled > etc. A project can add defines to its packages. These will not be used when compiling the IDE. See here: http://wiki.lazarus.freepascal.org/IDE_Window:_Compiler_Options#Add_a_flag_to_one_package_without_altering_the_lpk_itself > IMHO Better is to have a TBaseObjectInspector/TIDEObjectInspector approach: > a base class that can be used without all (or most of) the IDEIntf stuff, > and a descendent that uses the IDE stuff to provide additional functionality. > > As far as I can see, the only needed thing is the PropEdits unit, since that > is what is needed to enable property editors. Feel free to create a patch. The name TObjectInspectorDlg should be changed anyway. "Dlg" is used in the Lazarus sources for modal windows. TBaseObjectInspector/TIDEObjectInspector is good. Mattias From nc-gaertnma at netcologne.de Thu Sep 8 09:37:12 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 8 Sep 2016 09:37:12 +0200 Subject: [Lazarus] Object Inspector reuse ? In-Reply-To: References: Message-ID: <20160908093712.095cb6b0@limapholos.matflo.wg> On Wed, 7 Sep 2016 22:23:04 +0200 (CEST) Michael Van Canneyt wrote: >[...] > As an alternative: can the RTTI property grid be used on a list of objects ? > Last time I worked with it, it could only handle 1 object at a time. It should be able to handle lists of persistents, because it is the full OI grid. Set the TIObject to the lookup root. Then set the Selection. Mattias From michael at freepascal.org Thu Sep 8 09:52:46 2016 From: michael at freepascal.org (Michael Van Canneyt) Date: Thu, 8 Sep 2016 09:52:46 +0200 (CEST) Subject: [Lazarus] Object Inspector reuse ? In-Reply-To: <20160908092723.51d6a1bf@limapholos.matflo.wg> References: <20160908085009.1b90699d@limapholos.matflo.wg> <20160908092723.51d6a1bf@limapholos.matflo.wg> Message-ID: On Thu, 8 Sep 2016, Mattias Gaertner wrote: > On Thu, 8 Sep 2016 09:13:49 +0200 (CEST) > Michael Van Canneyt wrote: > >> [...] >> > These are property editors for the FCL/LCL types and the component tree >> > view. They are LCL specific, not IDE specific. >> >> I beg to differ somwhat.... >> A quick glance reveals that they reference for example the help system of the IDE. > > It uses the hint window. > You can use this to show your own hints in your application. I suppose you know that the IDEHelpIntf contains a whole lot more than just that ? > > >> IDEWindowIntf is also not really something I want in my end-user binary. > > IDEWindowIntf? >From PropEdits: // Forms with .lfm files FrmSelectProps, StringsPropEditDlg, KeyValPropEditDlg, CollectionPropEditForm, FileFilterPropEditor, IDEWindowIntf; >From my point of view, none of these should appear in propedits. Some are probably for Delphi compatibility. I can see that an effort was made to make the OI independent of the IDE, but it is either not sufficient, or it has been watered down over time. In each case, it pulls in way more than I consider appropriate. (from an IDE point of view, the tight integration makes sense, no discussion there) So it seems that either I take the whole shebang, or I must roll my own. Michael. From michael at freepascal.org Thu Sep 8 09:52:46 2016 From: michael at freepascal.org (Michael Van Canneyt) Date: Thu, 8 Sep 2016 09:52:46 +0200 (CEST) Subject: [Lazarus] Object Inspector reuse ? In-Reply-To: <20160908092723.51d6a1bf@limapholos.matflo.wg> References: <20160908085009.1b90699d@limapholos.matflo.wg> <20160908092723.51d6a1bf@limapholos.matflo.wg> Message-ID: On Thu, 8 Sep 2016, Mattias Gaertner wrote: > On Thu, 8 Sep 2016 09:13:49 +0200 (CEST) > Michael Van Canneyt wrote: > >> [...] >> > These are property editors for the FCL/LCL types and the component tree >> > view. They are LCL specific, not IDE specific. >> >> I beg to differ somwhat.... >> A quick glance reveals that they reference for example the help system of the IDE. > > It uses the hint window. > You can use this to show your own hints in your application. I suppose you know that the IDEHelpIntf contains a whole lot more than just that ? > > >> IDEWindowIntf is also not really something I want in my end-user binary. > > IDEWindowIntf? >From PropEdits: // Forms with .lfm files FrmSelectProps, StringsPropEditDlg, KeyValPropEditDlg, CollectionPropEditForm, FileFilterPropEditor, IDEWindowIntf; >From my point of view, none of these should appear in propedits. Some are probably for Delphi compatibility. I can see that an effort was made to make the OI independent of the IDE, but it is either not sufficient, or it has been watered down over time. In each case, it pulls in way more than I consider appropriate. (from an IDE point of view, the tight integration makes sense, no discussion there) So it seems that either I take the whole shebang, or I must roll my own. Michael. From michael at freepascal.org Thu Sep 8 09:54:13 2016 From: michael at freepascal.org (Michael Van Canneyt) Date: Thu, 8 Sep 2016 09:54:13 +0200 (CEST) Subject: [Lazarus] Object Inspector reuse ? In-Reply-To: <20160908093712.095cb6b0@limapholos.matflo.wg> References: <20160908093712.095cb6b0@limapholos.matflo.wg> Message-ID: On Thu, 8 Sep 2016, Mattias Gaertner wrote: > On Wed, 7 Sep 2016 22:23:04 +0200 (CEST) > Michael Van Canneyt wrote: > >> [...] >> As an alternative: can the RTTI property grid be used on a list of objects ? >> Last time I worked with it, it could only handle 1 object at a time. > > It should be able to handle lists of persistents, because it is the full > OI grid. > Set the TIObject to the lookup root. > Then set the Selection. OK, I think that will be a better approach for what I have in mind, thanks ! Michael. From nc-gaertnma at netcologne.de Thu Sep 8 10:14:38 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 8 Sep 2016 10:14:38 +0200 Subject: [Lazarus] Object Inspector reuse ? In-Reply-To: References: <20160908085009.1b90699d@limapholos.matflo.wg> <20160908092723.51d6a1bf@limapholos.matflo.wg> Message-ID: <20160908101438.43172bb6@limapholos.matflo.wg> On Thu, 8 Sep 2016 09:52:46 +0200 (CEST) Michael Van Canneyt wrote: > On Thu, 8 Sep 2016, Mattias Gaertner wrote: > > > On Thu, 8 Sep 2016 09:13:49 +0200 (CEST) > > Michael Van Canneyt wrote: > > > >> [...] > >> > These are property editors for the FCL/LCL types and the component tree > >> > view. They are LCL specific, not IDE specific. > >> > >> I beg to differ somwhat.... > >> A quick glance reveals that they reference for example the help system of the IDE. > > > > It uses the hint window. > > You can use this to show your own hints in your application. > > I suppose you know that the IDEHelpIntf contains a whole lot more than just that ? Yes. Although no initialization sections. > >> IDEWindowIntf is also not really something I want in my end-user binary. > > > > IDEWindowIntf? > > From PropEdits: > > // Forms with .lfm files > FrmSelectProps, StringsPropEditDlg, KeyValPropEditDlg, CollectionPropEditForm, > FileFilterPropEditor, IDEWindowIntf; For one call: SetPopupModeParentForPropertyEditor(CollectionForm); I'm not sure why this is needed. > From my point of view, none of these should appear in propedits. > Some are probably for Delphi compatibility. > > I can see that an effort was made to make the OI independent of the IDE, > but it is either not sufficient, or it has been watered down over time. The later. > In each case, it pulls in way more than I consider appropriate. > (from an IDE point of view, the tight integration makes sense, no discussion > there) > > So it seems that either I take the whole shebang, or I must roll my own. Well, a TBaseObjectInspector could reduce the shebang. Mattias From michael at freepascal.org Thu Sep 8 10:45:13 2016 From: michael at freepascal.org (Michael Van Canneyt) Date: Thu, 8 Sep 2016 10:45:13 +0200 (CEST) Subject: [Lazarus] Object Inspector reuse ? In-Reply-To: <20160908101438.43172bb6@limapholos.matflo.wg> References: <20160908085009.1b90699d@limapholos.matflo.wg> <20160908092723.51d6a1bf@limapholos.matflo.wg> <20160908101438.43172bb6@limapholos.matflo.wg> Message-ID: On Thu, 8 Sep 2016, Mattias Gaertner wrote: >> > It uses the hint window. >> > You can use this to show your own hints in your application. >> >> I suppose you know that the IDEHelpIntf contains a whole lot more than just that ? > > Yes. Although no initialization sections. Luckily, but I don't want all this code in my binary :-) >> >> IDEWindowIntf is also not really something I want in my end-user binary. >> > >> > IDEWindowIntf? >> >> From PropEdits: >> >> // Forms with .lfm files >> FrmSelectProps, StringsPropEditDlg, KeyValPropEditDlg, CollectionPropEditForm, >> FileFilterPropEditor, IDEWindowIntf; > > For one call: > SetPopupModeParentForPropertyEditor(CollectionForm); > I'm not sure why this is needed. If you don't know, I certainly do not know... :/ > > >> From my point of view, none of these should appear in propedits. >> Some are probably for Delphi compatibility. >> >> I can see that an effort was made to make the OI independent of the IDE, >> but it is either not sufficient, or it has been watered down over time. > > The later. > >> In each case, it pulls in way more than I consider appropriate. >> (from an IDE point of view, the tight integration makes sense, no discussion >> there) >> >> So it seems that either I take the whole shebang, or I must roll my own. > > Well, a TBaseObjectInspector could reduce the shebang. When I start my implementation, I will consider it. The OI is quite powerful, it would be a shame not to be able to use it. Michael. From mailinglists at geldenhuys.co.uk Thu Sep 8 11:56:58 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Thu, 8 Sep 2016 10:56:58 +0100 Subject: [Lazarus] Debugger: on exception, debugger has no values to inspect Message-ID: <8cb97752-5a8c-f71e-0f5a-ed45db921629@geldenhuys.co.uk> Hi, I'm running my application via the IDE and get an Exception error. The dialog pops up showing me the exception with two options - Break or Continue. I select Break which takes me to the code in question (well almost). I then use the Call Stack dialog to move further back in the code (say Index = 10 in the Call Stack dialog), but I can't inspect any variables at that point. Is this by design? Is it a bug with the debugger? If by design and I can't inspect variables at that point, then what's the point of the Exception dialog giving me the option to Break into the code. 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 Sep 8 12:06:30 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Thu, 8 Sep 2016 11:06:30 +0100 Subject: [Lazarus] Debugger: on exception, debugger has no values to inspect In-Reply-To: <8cb97752-5a8c-f71e-0f5a-ed45db921629@geldenhuys.co.uk> References: <8cb97752-5a8c-f71e-0f5a-ed45db921629@geldenhuys.co.uk> Message-ID: <1969a1d6-c4be-f070-0fe9-8224ccc09ec6@geldenhuys.co.uk> On 2016-09-08 10:56, Graeme Geldenhuys wrote: > I then use the Call Stack dialog to move further back in the > code (say Index = 10 in the Call Stack dialog), but I can't inspect any > variables at that point. I forgot to mention - in case this is of help... $ gdb --version GNU gdb (GDB) Red Hat Enterprise Linux (7.2-83.el6) and Lazarus 1.7 r52715 FPC 2.6.4 x86_64-linux-gtk 2 Regards, Graeme From silvioprog at gmail.com Thu Sep 8 19:03:29 2016 From: silvioprog at gmail.com (silvioprog) Date: Thu, 8 Sep 2016 14:03:29 -0300 Subject: [Lazarus] How to open the help for the selected identifier? In-Reply-To: <318d71c3-c36f-0f5d-ac27-a90bae69ea4c@geldenhuys.co.uk> References: <318d71c3-c36f-0f5d-ac27-a90bae69ea4c@geldenhuys.co.uk> Message-ID: On Mon, Sep 5, 2016 at 9:02 PM, Graeme Geldenhuys < mailinglists at geldenhuys.co.uk> wrote: > On 2016-09-05 16:39, silvioprog wrote: > > Is there some IDE configuration to open the online help of a selected > > identifier instead of the "Code Brower" window? > > http://fpgui.sourceforge.net/docview_ide_integration.shtml > > Regards, > Graeme I'm going to take a look at this. Just another doubt, couldn't Lazarus open the help using the default browser instead of a third party tool? -- Silvio Clécio -------------- next part -------------- An HTML attachment was scrubbed... URL: From silvioprog at gmail.com Thu Sep 8 19:05:21 2016 From: silvioprog at gmail.com (silvioprog) Date: Thu, 8 Sep 2016 14:05:21 -0300 Subject: [Lazarus] Feature request: Project Groups In-Reply-To: References: <56CED523.6090805@geldenhuys.co.uk> <20160225114700.298525c4@limapholos.matflo.wg> <20160904103815.5db5f249@limapholos.matflo.wg> <20160905172027.735f0815@limapholos.matflo.wg> Message-ID: On Mon, Sep 5, 2016 at 2:30 PM, Michael Van Canneyt wrote: > On Mon, 5 Sep 2016, Mattias Gaertner wrote: > >> On Sun, 4 Sep 2016 10:49:06 +0200 (CEST) >> Michael Van Canneyt wrote: >> >> On Sun, 4 Sep 2016, Mattias Gaertner wrote: >>> >>> > On Sat, 3 Sep 2016 22:02:37 -0300 >>> > Marcos Douglas wrote: >>> > >> [...] >>> >> Continuing this thread, I would like to know how can I see the Project >>> >> Group window on IDE if I close? >>> >> Is there a shortcut? I didn't find. > >>> > Not yet. >>> > There should be a menu item View -> Project Groups and a short cut. >>> It still crashes the IDE when I install it :( >>> >> >> I fixed a crash that might be the cause. >> Please test. >> > > !!!!!!!!!!!!!!!!!!!!!!!!! > !!!! YES ! YES ! YES !!!! > !!!!!!!!!!!!!!!!!!!!!!!!! > > It works ! Finally I get to use it... This is going to make life so much > easier :-) > > Many thanks for the fix :-) I'm so glad to see this feature finally available on Lazarus, it is really a very useful feature and could be installed by default. I remember when we asked that about five years ago... finally I can have a drink to celebrate this news. :-) Thanks a lot for release it! -- Silvio Clécio -------------- next part -------------- An HTML attachment was scrubbed... URL: From lazarus at mfriebe.de Thu Sep 8 20:00:21 2016 From: lazarus at mfriebe.de (Martin Frb) Date: Thu, 8 Sep 2016 19:00:21 +0100 Subject: [Lazarus] editor: Horizontal scrollbar position after pressing ENTER In-Reply-To: <9061b8e1-dda2-a561-8568-207f507f5920@geldenhuys.co.uk> References: <9061b8e1-dda2-a561-8568-207f507f5920@geldenhuys.co.uk> Message-ID: <67ffce95-b468-5208-332a-48138ffb157e@mfriebe.de> On 06/09/2016 12:19, Graeme Geldenhuys wrote: > When I have a long line > of code that causes horizontal scrolling and I press ENTER to start a > new line, the cursor moves to the correct indentation level, but the > editor view is still scrolled a few spaces off the screen .... > What I would like to see after pressing ENTER is that the editor scrolls > back to column 0 .... > Is there a editor setting that alters the behaviour of (1) somewhere? I > had a look through the various editor settings, but can't see anything > obvious. > unfortunately not. you could try to re-assign the enter key to an editor macro, and in the macro perform the line-break, and then try and find a way to scroll to zero. begin ecLineBreak; ecScrollLeft; ecScrollLeft; ecScrollLeft; ecScrollLeft; // as many as you may need end. From thierry.andriamirado at free.fr Thu Sep 8 17:44:26 2016 From: thierry.andriamirado at free.fr (Thierry Andriamirado) Date: Thu, 08 Sep 2016 18:44:26 +0300 Subject: [Lazarus] Feature request: Project Groups In-Reply-To: <20160907183408.5c5abf6f@limapholos.matflo.wg> References: <56CED523.6090805@geldenhuys.co.uk> <20160225114700.298525c4@limapholos.matflo.wg> <20160904103815.5db5f249@limapholos.matflo.wg> <20160905172027.735f0815@limapholos.matflo.wg> <3A37AD04-C02E-4B17-AA6C-A99003FF6A8D@free.fr> <20160907183408.5c5abf6f@limapholos.matflo.wg> Message-ID: <4E6DF9FF-24E8-4E55-B407-188E01210B01@free.fr> Le 7 septembre 2016 19:34:08 UTC+03:00, Mattias Gaertner a écrit : >> Is it possible to patch the 1.6 official release, or do I have to use >the SVN one? > >I merged the changes to fixes_1_6. Thanks a lot, Mattias! (Y) Thierry -- Envoyé de mon téléphone Android avec K-9 Mail. Excusez la brièveté. From lazarus at mfriebe.de Thu Sep 8 20:07:31 2016 From: lazarus at mfriebe.de (Martin Frb) Date: Thu, 8 Sep 2016 19:07:31 +0100 Subject: [Lazarus] Debugger: on exception, debugger has no values to inspect In-Reply-To: <1969a1d6-c4be-f070-0fe9-8224ccc09ec6@geldenhuys.co.uk> References: <8cb97752-5a8c-f71e-0f5a-ed45db921629@geldenhuys.co.uk> <1969a1d6-c4be-f070-0fe9-8224ccc09ec6@geldenhuys.co.uk> Message-ID: <4fc8ac18-f2fc-2125-054a-15a65e60a83c@mfriebe.de> On 08/09/2016 11:06, Graeme Geldenhuys wrote: > On 2016-09-08 10:56, Graeme Geldenhuys wrote: >> I then use the Call Stack dialog to move further back in the >> code (say Index = 10 in the Call Stack dialog), but I can't inspect any >> variables at that point. > > I forgot to mention - in case this is of help... > > $ gdb --version > GNU gdb (GDB) Red Hat Enterprise Linux (7.2-83.el6) > > and Lazarus 1.7 r52715 FPC 2.6.4 x86_64-linux-gtk 2 > > it should work. what does the "locals" window show? Does it change, when you change the stack? And you need to press the "current" button in the stack. doubleclick does not select it. From mailinglists at geldenhuys.co.uk Fri Sep 9 10:29:25 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Fri, 9 Sep 2016 09:29:25 +0100 Subject: [Lazarus] editor: Horizontal scrollbar position after pressing ENTER In-Reply-To: <67ffce95-b468-5208-332a-48138ffb157e@mfriebe.de> References: <9061b8e1-dda2-a561-8568-207f507f5920@geldenhuys.co.uk> <67ffce95-b468-5208-332a-48138ffb157e@mfriebe.de> Message-ID: <640636cc-4e6d-f6f1-04e8-2f389f742db4@geldenhuys.co.uk> On 2016-09-08 19:00, Martin Frb wrote: > you could try to re-assign the enter key to an editor macro, For now I've simply disabled "Auto Indent" and that seems like a sufficient work-around. Regards, Graeme From mailinglists at geldenhuys.co.uk Fri Sep 9 10:34:17 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Fri, 9 Sep 2016 09:34:17 +0100 Subject: [Lazarus] Editor doesn't scroll horizontally - no scrollbar Message-ID: <1a43e287-b0c3-7090-8b81-6aa7ac804e29@geldenhuys.co.uk> Hi, I see this bug quite frequently in my Linux version of Lazarus. Lazarus 1.7 r52715 FPC 2.6.4 x86_64-linux-gtk 2 I can't remember ever seeing it under FreeBSD, where Lazarus IDE also uses LCL-GTK2. Anyway. I'm in the editor, and have a long line of code that goes off the screen to the right. I press END, and my cursor is off the screen, but the editor never scrolled horizontally. There is no horizontal scrollbar either. I can still scroll vertically though. The only way to fix this is to restart Lazarus IDE. I can't reproduce this bug on demand, but I do experience this bug about 3-5 times per day. I've tried to do a clean rebuild of Lazarus IDE, but that did not resolve the issue. Anybody else experienced this bug? 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 denisgolovan at yandex.ru Fri Sep 9 10:40:15 2016 From: denisgolovan at yandex.ru (denisgolovan) Date: Fri, 09 Sep 2016 11:40:15 +0300 Subject: [Lazarus] Editor doesn't scroll horizontally - no scrollbar In-Reply-To: <1a43e287-b0c3-7090-8b81-6aa7ac804e29@geldenhuys.co.uk> References: <1a43e287-b0c3-7090-8b81-6aa7ac804e29@geldenhuys.co.uk> Message-ID: <59861473410415@web25h.yandex.ru> 09.09.2016, 11:34, "Graeme Geldenhuys" : > Hi, > > I see this bug quite frequently in my Linux version of Lazarus. >   Lazarus 1.7 r52715 FPC 2.6.4 x86_64-linux-gtk 2 > > I can't remember ever seeing it under FreeBSD, where Lazarus IDE also > uses LCL-GTK2. > > Anyway. I'm in the editor, and have a long line of code that goes off > the screen to the right. I press END, and my cursor is off the screen, > but the editor never scrolled horizontally. There is no horizontal > scrollbar either. I can still scroll vertically though. > > The only way to fix this is to restart Lazarus IDE. I can't reproduce > this bug on demand, but I do experience this bug about 3-5 times per > day. I've tried to do a clean rebuild of Lazarus IDE, but that did not > resolve the issue. > > Anybody else experienced this bug? > > Regards, >   Graeme Hi Graeme Not sure if it's the same bug, but I frequently experience following Lazarus behavior. Also Linux version under GTK2. Suddenly cursor in editor disappears and I can't return it back. Sometimes switching tabs back and forth helps, sometimes not. Looks like SynEdit bug. -- Regards, Denis Golovan From denisgolovan at yandex.ru Fri Sep 9 10:40:15 2016 From: denisgolovan at yandex.ru (denisgolovan) Date: Fri, 09 Sep 2016 11:40:15 +0300 Subject: [Lazarus] Editor doesn't scroll horizontally - no scrollbar In-Reply-To: <1a43e287-b0c3-7090-8b81-6aa7ac804e29@geldenhuys.co.uk> References: <1a43e287-b0c3-7090-8b81-6aa7ac804e29@geldenhuys.co.uk> Message-ID: <59861473410415@web25h.yandex.ru> 09.09.2016, 11:34, "Graeme Geldenhuys" : > Hi, > > I see this bug quite frequently in my Linux version of Lazarus. >   Lazarus 1.7 r52715 FPC 2.6.4 x86_64-linux-gtk 2 > > I can't remember ever seeing it under FreeBSD, where Lazarus IDE also > uses LCL-GTK2. > > Anyway. I'm in the editor, and have a long line of code that goes off > the screen to the right. I press END, and my cursor is off the screen, > but the editor never scrolled horizontally. There is no horizontal > scrollbar either. I can still scroll vertically though. > > The only way to fix this is to restart Lazarus IDE. I can't reproduce > this bug on demand, but I do experience this bug about 3-5 times per > day. I've tried to do a clean rebuild of Lazarus IDE, but that did not > resolve the issue. > > Anybody else experienced this bug? > > Regards, >   Graeme Hi Graeme Not sure if it's the same bug, but I frequently experience following Lazarus behavior. Also Linux version under GTK2. Suddenly cursor in editor disappears and I can't return it back. Sometimes switching tabs back and forth helps, sometimes not. Looks like SynEdit bug. -- Regards, Denis Golovan From mailinglists at geldenhuys.co.uk Fri Sep 9 10:42:29 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Fri, 9 Sep 2016 09:42:29 +0100 Subject: [Lazarus] Debugger: on exception, debugger has no values to inspect In-Reply-To: <4fc8ac18-f2fc-2125-054a-15a65e60a83c@mfriebe.de> References: <8cb97752-5a8c-f71e-0f5a-ed45db921629@geldenhuys.co.uk> <1969a1d6-c4be-f070-0fe9-8224ccc09ec6@geldenhuys.co.uk> <4fc8ac18-f2fc-2125-054a-15a65e60a83c@mfriebe.de> Message-ID: <905b3849-f53b-3221-4433-6c090b8afdf9@geldenhuys.co.uk> On 2016-09-08 19:07, Martin Frb wrote: > And you need to press the "current" button in the stack. doubleclick > does not select it. Ah, that was the problem. Thanks for help. Amazing I never noticed it before. A question though: Why must you click "current" before the stack (an local variables) update? Wouldn't that be the obvious thing to do (desired behaviour) when you double click back into the stack history? The "current" button just seems redundant. 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 Fri Sep 9 10:57:32 2016 From: markMLl.lazarus at telemetry.co.uk (Mark Morgan Lloyd) Date: Fri, 9 Sep 2016 08:57:32 +0000 Subject: [Lazarus] Debugger: on exception, debugger has no values to inspect In-Reply-To: <905b3849-f53b-3221-4433-6c090b8afdf9@geldenhuys.co.uk> References: <8cb97752-5a8c-f71e-0f5a-ed45db921629@geldenhuys.co.uk> <1969a1d6-c4be-f070-0fe9-8224ccc09ec6@geldenhuys.co.uk> <4fc8ac18-f2fc-2125-054a-15a65e60a83c@mfriebe.de> <905b3849-f53b-3221-4433-6c090b8afdf9@geldenhuys.co.uk> Message-ID: On 09/09/16 08:54, Graeme Geldenhuys wrote: > On 2016-09-08 19:07, Martin Frb wrote:> And you need to press the "current" button in the stack. doubleclick > does not select it. > Ah, that was the problem. Thanks for help. Amazing I never noticed itbefore. Thanks also from me, I'd always assumed there were good reasons for that behaviour (stack destroyed by exception or somesuch) which I think makes Graeme's question pertinent: > A question though:Why must you click "current" before the stack (an local variables)update? Wouldn't that be the obvious thing to do (desired behaviour)when you double click back into the stack history? The "current" buttonjust seems redundant. > Regards, Graeme -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] From lazarus at mfriebe.de Fri Sep 9 11:22:39 2016 From: lazarus at mfriebe.de (Martin Frb) Date: Fri, 9 Sep 2016 10:22:39 +0100 Subject: [Lazarus] Editor doesn't scroll horizontally - no scrollbar In-Reply-To: <1a43e287-b0c3-7090-8b81-6aa7ac804e29@geldenhuys.co.uk> References: <1a43e287-b0c3-7090-8b81-6aa7ac804e29@geldenhuys.co.uk> Message-ID: <7759853c-881e-cdcb-f665-1e259b9fcfb9@mfriebe.de> On 09/09/2016 09:34, Graeme Geldenhuys wrote: > Hi, > > I see this bug quite frequently in my Linux version of Lazarus. > Lazarus 1.7 r52715 FPC 2.6.4 x86_64-linux-gtk 2 > > I can't remember ever seeing it under FreeBSD, where Lazarus IDE also > uses LCL-GTK2. > > Anyway. I'm in the editor, and have a long line of code that goes off > the screen to the right. I press END, and my cursor is off the screen, > but the editor never scrolled horizontally. There is no horizontal > scrollbar either. I can still scroll vertically though. > > The only way to fix this is to restart Lazarus IDE. I can't reproduce > this bug on demand, but I do experience this bug about 3-5 times per > day. I've tried to do a clean rebuild of Lazarus IDE, but that did not > resolve the issue. > > > Anybody else experienced this bug? I have seen it once (a few month back) on windows. Not sure what causes it (or if it is a new issue). IIRC some edit action on some line worked around it. (edit the longest line, or temporarily append to a line to make it longest) If you get it frequently put some debugln into unit SynEditTextTabExpander function TSynEditStringTabExpander.GetLengthOfLongestLine: integer; above the "try" block if blockif Line2>=Line1 then debugln(['TSynEditStringTabExpander.GetLengthOfLongestLine ', FIndexOfLongestLine,': ', Result, ' / ', FFirstUnknownLongestLine,'-', FLastUnknownLongestLine, ' / ', Line1,'-',Line2]); when it happens, copy the tail of the output (there may be a lot of output before). Also note which line you are on, what length the current line is, and if the current line is the longest line. (and what the longest line is) From lazarus at mfriebe.de Fri Sep 9 11:32:17 2016 From: lazarus at mfriebe.de (Martin Frb) Date: Fri, 9 Sep 2016 10:32:17 +0100 Subject: [Lazarus] Debugger: on exception, debugger has no values to inspect In-Reply-To: <905b3849-f53b-3221-4433-6c090b8afdf9@geldenhuys.co.uk> References: <8cb97752-5a8c-f71e-0f5a-ed45db921629@geldenhuys.co.uk> <1969a1d6-c4be-f070-0fe9-8224ccc09ec6@geldenhuys.co.uk> <4fc8ac18-f2fc-2125-054a-15a65e60a83c@mfriebe.de> <905b3849-f53b-3221-4433-6c090b8afdf9@geldenhuys.co.uk> Message-ID: <85a1f59e-1ba0-fa76-c9b4-586f089bf16b@mfriebe.de> On 09/09/2016 09:42, Graeme Geldenhuys wrote: > On 2016-09-08 19:07, Martin Frb wrote: >> And you need to press the "current" button in the stack. doubleclick >> does not select it. > Ah, that was the problem. Thanks for help. Amazing I never noticed it > before. > > A question though: > Why must you click "current" before the stack (an local variables) > update? Wouldn't that be the obvious thing to do (desired behaviour) > when you double click back into the stack history? The "current" button > just seems redundant. > No idea why, but iirc it always was like this. (that applies to breakpoints too) double click => jump to code current => set the frame for inspection Years ago the debugger would get all watches before it could do any further action, if "current" was changed (and with many watches this could be very slow). So if you would double click, several frames, to find the one you are interested, you would have a lot of waiting time. Now the debugger, can continue even if there are still watches to inspect, so it would be faster. Maybe double click can (optionally?) include "current". ------------------------ Not sure, if in case of exception the correct frame is selected (ideally not the one in fpc_except). This is sometimes one frame off, because some methods in RTL have no stackframe. From mailinglists at geldenhuys.co.uk Fri Sep 9 16:04:41 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Fri, 9 Sep 2016 15:04:41 +0100 Subject: [Lazarus] Tabbed view of IDE debug windows Message-ID: <1f822eac-ef64-ebf8-bc1e-3c90ca781938@geldenhuys.co.uk> Hi, Is it possible to have a single window with a Tabbed interface of your selection (or all) IDE debug windows? Something like the attached screenshot. Or has anybody created a IDE add-on that allows this? I'm simply running out of desktop space trying to keep all debug windows visible or easily accessible. 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: debug_windows.png Type: image/png Size: 16223 bytes Desc: not available URL: From nc-gaertnma at netcologne.de Fri Sep 9 16:22:47 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Fri, 9 Sep 2016 16:22:47 +0200 Subject: [Lazarus] Tabbed view of IDE debug windows In-Reply-To: <1f822eac-ef64-ebf8-bc1e-3c90ca781938@geldenhuys.co.uk> References: <1f822eac-ef64-ebf8-bc1e-3c90ca781938@geldenhuys.co.uk> Message-ID: <20160909162247.6c59406d@limapholos.matflo.wg> On Fri, 9 Sep 2016 15:04:41 +0100 Graeme Geldenhuys wrote: > Hi, > > Is it possible to have a single window with a Tabbed interface of your > selection (or all) IDE debug windows? Something like the attached > screenshot. > > Or has anybody created a IDE add-on that allows this? Yes, anchordockingdsgn supports docking with tabs. > I'm simply running out of desktop space trying to keep all debug windows > visible or easily accessible. Mattias From mailinglists at geldenhuys.co.uk Fri Sep 9 16:32:39 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Fri, 9 Sep 2016 15:32:39 +0100 Subject: [Lazarus] Tabbed view of IDE debug windows In-Reply-To: <20160909162247.6c59406d@limapholos.matflo.wg> References: <1f822eac-ef64-ebf8-bc1e-3c90ca781938@geldenhuys.co.uk> <20160909162247.6c59406d@limapholos.matflo.wg> Message-ID: On 2016-09-09 15:22, Mattias Gaertner wrote: > Yes, anchordockingdsgn supports docking with tabs. Fantastic, many thanks for the info. Regards, Graeme From michael at freepascal.org Fri Sep 9 16:48:32 2016 From: michael at freepascal.org (Michael Van Canneyt) Date: Fri, 9 Sep 2016 16:48:32 +0200 (CEST) Subject: [Lazarus] Tabbed view of IDE debug windows In-Reply-To: References: <1f822eac-ef64-ebf8-bc1e-3c90ca781938@geldenhuys.co.uk> <20160909162247.6c59406d@limapholos.matflo.wg> Message-ID: On Fri, 9 Sep 2016, Graeme Geldenhuys wrote: > On 2016-09-09 15:22, Mattias Gaertner wrote: >> Yes, anchordockingdsgn supports docking with tabs. > > Fantastic, many thanks for the info. A word of warning: One of my collegues - a seasoned Delphi developer, but never used Lazarus - tried to install this during the summer, using 1.6, because he wants to use the docked interface. He got the package to install, but got so many errors trying to work (even simple tasks such as dropping a button and setting some properties) that he simply gave up on Lazarus as a whole. Maybe the situation has improved since the release of 1.6 Michael. From mailinglists at geldenhuys.co.uk Fri Sep 9 16:59:55 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Fri, 9 Sep 2016 15:59:55 +0100 Subject: [Lazarus] Tabbed view of IDE debug windows In-Reply-To: References: <1f822eac-ef64-ebf8-bc1e-3c90ca781938@geldenhuys.co.uk> <20160909162247.6c59406d@limapholos.matflo.wg> Message-ID: <8114fd49-5bac-c763-ef9a-936ecef5e80e@geldenhuys.co.uk> On 2016-09-09 15:48, Michael Van Canneyt wrote: > He got the package to install, but got so many errors trying to work > (even simple tasks such as dropping a button and setting some properties) > that he simply gave up on Lazarus as a whole. Thanks for the warning... I haven't installed it yet. The layout I would like is for everything to still be undocked (eg: Object Inspector, Source Editor, Project Inspector), but only want the Debug windows docked in a tabbed window. If AnchorDocking can't do that'll not use it. 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 Fri Sep 9 17:09:21 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Fri, 9 Sep 2016 17:09:21 +0200 Subject: [Lazarus] Tabbed view of IDE debug windows In-Reply-To: <8114fd49-5bac-c763-ef9a-936ecef5e80e@geldenhuys.co.uk> References: <1f822eac-ef64-ebf8-bc1e-3c90ca781938@geldenhuys.co.uk> <20160909162247.6c59406d@limapholos.matflo.wg> <8114fd49-5bac-c763-ef9a-936ecef5e80e@geldenhuys.co.uk> Message-ID: <20160909170921.3ad67fcb@limapholos.matflo.wg> On Fri, 9 Sep 2016 15:59:55 +0100 Graeme Geldenhuys wrote: > On 2016-09-09 15:48, Michael Van Canneyt wrote: > > He got the package to install, but got so many errors trying to work > > (even simple tasks such as dropping a button and setting some properties) > > that he simply gave up on Lazarus as a whole. > > Thanks for the warning... I haven't installed it yet. The layout I > would like is for everything to still be undocked (eg: Object Inspector, > Source Editor, Project Inspector), but only want the Debug windows > docked in a tabbed window. If AnchorDocking can't do that'll not use it. It can do that. Mattias From parkingspace26 at yahoo.com Sat Sep 10 00:54:39 2016 From: parkingspace26 at yahoo.com (Bob B.) Date: Fri, 9 Sep 2016 22:54:39 +0000 (UTC) Subject: [Lazarus] bmp icons References: <2075394362.2669513.1473461679703.ref@mail.yahoo.com> Message-ID: <2075394362.2669513.1473461679703@mail.yahoo.com> what is a good collection of free, useful BMP images for speedbuttons? Bob B. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mailinglists at geldenhuys.co.uk Sat Sep 10 09:39:15 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Sat, 10 Sep 2016 08:39:15 +0100 Subject: [Lazarus] bmp icons In-Reply-To: <2075394362.2669513.1473461679703@mail.yahoo.com> References: <2075394362.2669513.1473461679703.ref@mail.yahoo.com> <2075394362.2669513.1473461679703@mail.yahoo.com> Message-ID: On 2016-09-09 23:54, Bob B. wrote: > what is a good collection of free, useful BMP images for speedbuttons? Silk: http://www.famfamfam.com/lab/icons/silk/ Tango: http://tango.freedesktop.org/Tango_Icon_Library 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 aradeonas at operamail.com Sat Sep 10 16:13:32 2016 From: aradeonas at operamail.com (Aradeonas) Date: Sat, 10 Sep 2016 07:13:32 -0700 Subject: [Lazarus] Key Handling problem in Windows Message-ID: <1473516812.1394165.721588769.17B8890B@webmail.messagingengine.com> Hi, I have issue In windows if you hold the key down for more than 30-40 second it will not send new messages to the form and event will not run. This is my code and it works in Ubuntu very good but not in windows L > unit Unit1; > > {$mode objfpc}{$H+} > > interface > > uses > Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, > ExtCtrls, LMessages; > > type > > { TForm1 } > > TForm1 = class(TForm) > Panel1: TPanel; > procedure FormKeyDown(Sender: TObject; var Key: word; Shift: > TShiftState); > procedure FormKeyUp(Sender: TObject; var Key: word; Shift: > TShiftState); > procedure FormShortCut(var Msg: TLMKey; var Handled: boolean); > private > > public > kd: integer; > end; > > var > Form1: TForm1; > > implementation > > {$R *.lfm} > > { TForm1 } > > procedure TForm1.FormKeyDown(Sender: TObject; var Key: word; Shift: > TShiftState); > begin > WriteLn('FormKeyDown'); > WriteLn(GetTickCount64); > end; > > procedure TForm1.FormKeyUp(Sender: TObject; var Key: word; Shift: > TShiftState); > begin > WriteLn('FormKeyUp'); > Self.OnKeyDown := @FormKeyDown; > Self.OnShortcut := @FormShortCut; > end; > > procedure TForm1.FormShortCut(var Msg: TLMKey; var Handled: boolean); > begin > Handled := True; > WriteLn('FormShortCut'); > end; > > end. Regards, Ara -- http://www.fastmail.com - The professional email service -------------- next part -------------- An HTML attachment was scrubbed... URL: From dezlov at gmail.com Sat Sep 10 20:19:35 2016 From: dezlov at gmail.com (Denis Kozlov) Date: Sat, 10 Sep 2016 19:19:35 +0100 Subject: [Lazarus] bmp icons In-Reply-To: <2075394362.2669513.1473461679703@mail.yahoo.com> References: <2075394362.2669513.1473461679703.ref@mail.yahoo.com> <2075394362.2669513.1473461679703@mail.yahoo.com> Message-ID: On 09/09/2016 23:54, Bob B. wrote: > what is a good collection of free, useful BMP images for speedbuttons? 3926 Free "Farm-Fresh Web Icons" http://www.fatcow.com/free-icons They are licensed under Creative Commons Attribution 3.0 License. Denis -------------- next part -------------- An HTML attachment was scrubbed... URL: From dezlov at gmail.com Sat Sep 10 20:20:47 2016 From: dezlov at gmail.com (Denis Kozlov) Date: Sat, 10 Sep 2016 19:20:47 +0100 Subject: [Lazarus] Key Handling problem in Windows In-Reply-To: <1473516812.1394165.721588769.17B8890B@webmail.messagingengine.com> References: <1473516812.1394165.721588769.17B8890B@webmail.messagingengine.com> Message-ID: <325f3780-5df8-58f6-6242-88d5ecfd4bfc@gmail.com> On 10/09/2016 15:13, Aradeonas wrote: > I have issue In windows if you hold the key down for more than 30-40 > second it will not send new messages to the form and event will not run. > This is my code and it works in Ubuntu very good but not in windows L Which version of Lazarus and FPC are you using? Denis From dezlov at gmail.com Sat Sep 10 20:43:55 2016 From: dezlov at gmail.com (Denis Kozlov) Date: Sat, 10 Sep 2016 19:43:55 +0100 Subject: [Lazarus] Key Handling problem in Windows In-Reply-To: <325f3780-5df8-58f6-6242-88d5ecfd4bfc@gmail.com> References: <1473516812.1394165.721588769.17B8890B@webmail.messagingengine.com> <325f3780-5df8-58f6-6242-88d5ecfd4bfc@gmail.com> Message-ID: <1aa89080-06a6-c12b-a998-239cb7be0ebd@gmail.com> On 10/09/2016 19:20, Denis Kozlov wrote: > On 10/09/2016 15:13, Aradeonas wrote: >> I have issue In windows if you hold the key down for more than 30-40 >> second it will not send new messages to the form and event will not run. >> This is my code and it works in Ubuntu very good but not in windows L > > Which version of Lazarus and FPC are you using? Just ran a quick test with: Lazarus 1.4.4 + FPC 2.6.4 Lazarus 1.6.1 + FPC 3.0.0 No issues, even if the key is down for 2 minutes. Provide more details and a complete example project, otherwise it seems that you may have a problem elsewhere in your code. Denis From giuliano.colla at fastwebnet.it Sun Sep 11 00:16:06 2016 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Sun, 11 Sep 2016 00:16:06 +0200 Subject: [Lazarus] bmp icons In-Reply-To: References: <2075394362.2669513.1473461679703.ref@mail.yahoo.com> <2075394362.2669513.1473461679703@mail.yahoo.com> Message-ID: Il 10/09/2016 20:19, Denis Kozlov ha scritto: > They are licensed under Creative Commons Attribution 3.0 License. Meaning in a nutshell, that you may freely use, share and adapt them for any purpose, even commercial, provided you give appropriate credit, provide a link to the license, and indicate if changes were made. (as opposed to Tango icons which are just Public domain) Giuliano From aradeonas at operamail.com Sun Sep 11 08:29:32 2016 From: aradeonas at operamail.com (Aradeonas) Date: Sat, 10 Sep 2016 23:29:32 -0700 Subject: [Lazarus] Key Handling problem in Windows In-Reply-To: <1aa89080-06a6-c12b-a998-239cb7be0ebd@gmail.com> References: <1473516812.1394165.721588769.17B8890B@webmail.messagingengine.com> <325f3780-5df8-58f6-6242-88d5ecfd4bfc@gmail.com> <1aa89080-06a6-c12b-a998-239cb7be0ebd@gmail.com> Message-ID: <1473575372.3669896.722004977.0F12EB4A@webmail.messagingengine.com> Ok, I tested it in other machines and turns out this is a keyboard problem, it will freeze after a while. Regards, Ara -- http://www.fastmail.com - The way an email service should be -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartjunk64 at gmail.com Sun Sep 11 14:47:20 2016 From: bartjunk64 at gmail.com (Bart) Date: Sun, 11 Sep 2016 14:47:20 +0200 Subject: [Lazarus] Does this mail actually arrive on the list? Can somebody respond please? Message-ID: Hi, I just got an email from lazarus-request at lists.lazarus-ide.org saying that mail from me was bounced. Can anybody see this mail on the list? If so, can you reply (reply to the list please)? Bart From Special at Joepgen.com Sun Sep 11 15:05:16 2016 From: Special at Joepgen.com (Special) Date: Sun, 11 Sep 2016 15:05:16 +0200 Subject: [Lazarus] Does this mail actually arrive on the list? Can somebody respond please? In-Reply-To: References: Message-ID: Am 11.09.2016 um 14:47 schrieb Bart: > Hi, > > I just got an email from lazarus-request at lists.lazarus-ide.org saying > that mail from me was bounced. > > Can anybody see this mail on the list? > If so, can you reply (reply to the list please)? > > Bart Yes, seen. Regards- Joe From markMLl.lazarus at telemetry.co.uk Sun Sep 11 15:16:56 2016 From: markMLl.lazarus at telemetry.co.uk (Mark Morgan Lloyd) Date: Sun, 11 Sep 2016 13:16:56 +0000 Subject: [Lazarus] Does this mail actually arrive on the list? Can somebody respond please? In-Reply-To: References: Message-ID: On 11/09/16 13:00, Bart wrote: > Hi, > I just got an email from lazarus-request at lists.lazarus-ide.org sayingthat mail from me was bounced. > Can anybody see this mail on the list?If so, can you reply (reply to the list please)? Actually, it does. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] From aradeonas at operamail.com Sun Sep 11 15:52:42 2016 From: aradeonas at operamail.com (Aradeonas) Date: Sun, 11 Sep 2016 06:52:42 -0700 Subject: [Lazarus] JCF roblem with operators for records Message-ID: <1473601962.3741886.722198425.4F80184B@webmail.messagingengine.com> Hi, JCF will show error for this code: > TTestRecord = record > V:integer; > class operator =(const A, B: TTestRecord): Boolean; > class operator <>(const A, B: TTestRecord): Boolean; > *end;* Should I add a bug report or Im missing something? Regards, Ara -- http://www.fastmail.com - Email service worth paying for. Try it for free -------------- next part -------------- An HTML attachment was scrubbed... URL: From mailinglists at geldenhuys.co.uk Sun Sep 11 16:23:32 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Sun, 11 Sep 2016 15:23:32 +0100 Subject: [Lazarus] Does this mail actually arrive on the list? Can somebody respond please? In-Reply-To: References: Message-ID: On 2016-09-11 13:47, Bart wrote: > Can anybody see this mail on the list? Yup, came through on the list just fine. 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 zeljko at holobit.net Sun Sep 11 17:22:49 2016 From: zeljko at holobit.net (zeljko) Date: Sun, 11 Sep 2016 17:22:49 +0200 Subject: [Lazarus] Does this mail actually arrive on the list? Can somebody respond please? In-Reply-To: References: Message-ID: <634a5133-3a6a-2db6-b020-f51084ff31a0@holobit.net> On 09/11/2016 02:47 PM, Bart wrote: > Hi, > > I just got an email from lazarus-request at lists.lazarus-ide.org saying > that mail from me was bounced. > > Can anybody see this mail on the list? > If so, can you reply (reply to the list please)? Pong :) zeljko From bartjunk64 at gmail.com Sun Sep 11 23:01:01 2016 From: bartjunk64 at gmail.com (Bart) Date: Sun, 11 Sep 2016 23:01:01 +0200 Subject: [Lazarus] Does this mail actually arrive on the list? Can somebody respond please? In-Reply-To: <634a5133-3a6a-2db6-b020-f51084ff31a0@holobit.net> References: <634a5133-3a6a-2db6-b020-f51084ff31a0@holobit.net> Message-ID: On 9/11/16, zeljko wrote: >> Can anybody see this mail on the list? >> If so, can you reply (reply to the list please)? > > Pong :) > > zeljko Thanks all for replying! Bart From luizamericop at gmail.com Mon Sep 12 03:14:18 2016 From: luizamericop at gmail.com (Luiz Americo Pereira Camara) Date: Sun, 11 Sep 2016 22:14:18 -0300 Subject: [Lazarus] Lazarus IDE compilation error due to "No memory left" Message-ID: When i try to recompile the IDE i'm getting the error below: Error: (1026) Compilation raised exception internally Fatal: (1009) No memory left Error: C:\bin\code\fpcdev\bin\i386-win32\ppc386.exe returned an error exitcode I have a decent computer 8 GB ram, core i5 third generation. Running windows 10, fpc trunk 32bit, lazarus trunk. In the task manager, i get 42% of memory usage (3,3 GB of 7,9GB) having more then 4GB free The problems seems related to number of packages installed (i have 78). Trying to compile in a linux VM with fewer packges runs fine. In previous times, i rebooted and the compilation suceeded. Today still not tried. Is someone having similar issue? The number of packages affects the memory usage? Is there anything i can do beyond removing packages? Luiz -------------- next part -------------- An HTML attachment was scrubbed... URL: From lazarus at mfriebe.de Mon Sep 12 03:34:45 2016 From: lazarus at mfriebe.de (Martin Frb) Date: Mon, 12 Sep 2016 02:34:45 +0100 Subject: [Lazarus] Lazarus IDE compilation error due to "No memory left" In-Reply-To: References: Message-ID: On 12/09/2016 02:14, Luiz Americo Pereira Camara wrote: > When i try to recompile the IDE i'm getting the error below: > > Error: (1026) Compilation raised exception internally > Fatal: (1009) No memory left > Error: C:\bin\code\fpcdev\bin\i386-win32\ppc386.exe returned an error > exitcode > > I have a decent computer 8 GB ram, core i5 third generation. > > Running windows 10, fpc trunk 32bit, lazarus trunk. > > In the task manager, i get 42% of memory usage (3,3 GB of 7,9GB) > having more then 4GB free 32 bit doesnt use more than 4GB, and some goes to the system. > > The problems seems related to number of packages installed (i have > 78). Trying to compile in a linux VM with fewer packges runs fine. > > In previous times, i rebooted and the compilation suceeded. Today > still not tried. Switch of smart linking for the IDE. You can keep the units smartlink-able (for your projects). -------------- next part -------------- An HTML attachment was scrubbed... URL: From luizamericop at gmail.com Mon Sep 12 11:34:03 2016 From: luizamericop at gmail.com (Luiz Americo Pereira Camara) Date: Mon, 12 Sep 2016 06:34:03 -0300 Subject: [Lazarus] Lazarus IDE compilation error due to "No memory left" In-Reply-To: References: Message-ID: 2016-09-11 22:34 GMT-03:00 Martin Frb : > On 12/09/2016 02:14, Luiz Americo Pereira Camara wrote: > > Running windows 10, fpc trunk 32bit, lazarus trunk. > > In the task manager, i get 42% of memory usage (3,3 GB of 7,9GB) having > more then 4GB free > > 32 bit doesnt use more than 4GB, and some goes to the system. > The system (Windows 10) is 64bit so it can handle all the memory. According to task manager FPC uses about 800MB of memory of the theoretical 3GB of a 32 bit process. See this screen shot. The spike in task manager is due to the compilation: https://imagebin.ca/v/2unwBT2xsQYH > The problems seems related to number of packages installed (i have 78). > Trying to compile in a linux VM with fewer packges runs fine. > > In previous times, i rebooted and the compilation suceeded. Today still > not tried. > > Tried to compile after reboot without success > Switch of smart linking for the IDE. > You can keep the units smartlink-able (for your projects). > AFAICS the IDE does not uses SmartLink. Here is the command line compiler: C:/bin/code/fpcdev/bin/i386-win32/fpc.exe -gl -vbqewnhi -Sci -dlclwin32 -Fu../designer -Fu../debugger -Fu../debugger/frames -Fu../converter -Fu../packager -Fu../packager/frames -Fu../components/custom -Fuinclude/win -Fuframes -Fu. -Fiinclude -Fiinclude/win32 -Fi../images -FE.. -FU../units/i386-win32/win32 -WG @C:\Users\luiz\AppData\Local\lazarus\idemake.cfg -di386 lazarus.pp There's no -CX option. Also no {$SMARTLINK ON} directive in sources Luiz -------------- next part -------------- An HTML attachment was scrubbed... URL: From bo.berglund at gmail.com Mon Sep 12 12:09:53 2016 From: bo.berglund at gmail.com (Bo Berglund) Date: Mon, 12 Sep 2016 12:09:53 +0200 Subject: [Lazarus] bmp icons References: <2075394362.2669513.1473461679703.ref@mail.yahoo.com> <2075394362.2669513.1473461679703@mail.yahoo.com> Message-ID: <9fvctb1ed5hrokll06b6fps3qu0cuverfe@4ax.com> On Sat, 10 Sep 2016 08:39:15 +0100, Graeme Geldenhuys wrote: >On 2016-09-09 23:54, Bob B. wrote: >> what is a good collection of free, useful BMP images for speedbuttons? > >Tango: http://tango.freedesktop.org/Tango_Icon_Library I tried accessing the Tango icons via CVS as instructed on that page but unfortunately the commands failed: cvs -d:pserver:anoncvs at anoncvs.freedesktop.org:/cvs/tango login Logging in to :pserver:anoncvs at anoncvs.freedesktop.org:2401:/cvs/tango CVS Password: Error connecting to host anoncvs.freedesktop.org: The requested name is valid, but no data of the requested type was found. I tried both an empty password and "anonymous", both generate the same error. Is the Tango project off-line? Or is the anoncvs password required? -- Bo Berglund Developer in Sweden From mailinglists at geldenhuys.co.uk Mon Sep 12 12:39:50 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Mon, 12 Sep 2016 11:39:50 +0100 Subject: [Lazarus] bmp icons In-Reply-To: <9fvctb1ed5hrokll06b6fps3qu0cuverfe@4ax.com> References: <2075394362.2669513.1473461679703.ref@mail.yahoo.com> <2075394362.2669513.1473461679703@mail.yahoo.com> <9fvctb1ed5hrokll06b6fps3qu0cuverfe@4ax.com> Message-ID: <4f4f22e8-9578-4b96-cee8-d8f41ba94748@geldenhuys.co.uk> On 2016-09-12 11:09, Bo Berglund wrote: > Is the Tango project off-line? Or is the anoncvs password required? No idea. Why not simply use the download URL from the next paragraph. http://tango.freedesktop.org/releases/tango-icon-theme-0.8.90.tar.gz Regards, Graeme From sandro.cumerlato at gmail.com Mon Sep 12 14:31:57 2016 From: sandro.cumerlato at gmail.com (Sandro Cumerlato) Date: Mon, 12 Sep 2016 14:31:57 +0200 Subject: [Lazarus] Feature request: Project Groups In-Reply-To: References: <56CED523.6090805@geldenhuys.co.uk> <20160225114700.298525c4@limapholos.matflo.wg> <20160904103815.5db5f249@limapholos.matflo.wg> <20160905172027.735f0815@limapholos.matflo.wg> Message-ID: Thanx to all Developers for this gem. In attachment my contribution to the Project Groups component (italian localisation: projectgroupstrconst.it.po). Best regards, Sandro Cumerlato -------------- next part -------------- A non-text attachment was scrubbed... Name: projectgroupstrconst.it.zip Type: application/zip Size: 2561 bytes Desc: not available URL: From luisdigital at gmail.com Mon Sep 12 14:59:17 2016 From: luisdigital at gmail.com (Luis Hilario) Date: Mon, 12 Sep 2016 08:59:17 -0400 Subject: [Lazarus] Does this mail actually arrive on the list? Can somebody respond please? In-Reply-To: References: <634a5133-3a6a-2db6-b020-f51084ff31a0@holobit.net> Message-ID: I received the same email. Should I take action? 2016-09-11 17:01 GMT-04:00 Bart : > On 9/11/16, zeljko wrote: > > >> Can anybody see this mail on the list? > >> If so, can you reply (reply to the list please)? > > > > Pong :) > > > > zeljko > > Thanks all for replying! > > Bart > -- > _______________________________________________ > Lazarus mailing list > Lazarus at lists.lazarus-ide.org > http://lists.lazarus-ide.org/listinfo/lazarus > -- http://luisdigital.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From luizamericop at gmail.com Mon Sep 12 17:36:07 2016 From: luizamericop at gmail.com (Luiz Americo Pereira Camara) Date: Mon, 12 Sep 2016 12:36:07 -0300 Subject: [Lazarus] Lazarus IDE compilation error due to "No memory left" In-Reply-To: References: Message-ID: 2016-09-11 22:14 GMT-03:00 Luiz Americo Pereira Camara < luizamericop at gmail.com>: > When i try to recompile the IDE i'm getting the error below: > > Error: (1026) Compilation raised exception internally > Fatal: (1009) No memory left > Error: C:\bin\code\fpcdev\bin\i386-win32\ppc386.exe returned an error > exitcode > > I have a decent computer 8 GB ram, core i5 third generation. > > Running windows 10, fpc trunk 32bit, lazarus trunk. > For the record. I switched to fpc 3.0 and compilation succeeded. Next time i update my Lazarus IDE will try again with fpc trunk Luiz -------------- next part -------------- An HTML attachment was scrubbed... URL: From hfiandor at ceniai.inf.cu Mon Sep 12 16:35:16 2016 From: hfiandor at ceniai.inf.cu (hfiandor) Date: Mon, 12 Sep 2016 16:35:16 +0200 Subject: [Lazarus] Does this mail actually arrive on the list? Can somebody respond please? In-Reply-To: References: <634a5133-3a6a-2db6-b020-f51084ff31a0@holobit.net> De: Lazarus [mailto:lazarus-bounces at lists.lazarus-ide.org] En nombre de Luis Hilario Enviado el: lunes, 12 de septiembre de 2016 02:59 p. m. Para: Lazarus mailing list Asunto: Re: [Lazarus] Does this mail actually arrive on the list? Can somebody respond please? I received the same email. Should I take action? 2016-09-11 17:01 GMT-04:00 Bart : On 9/11/16, zeljko wrote: >> Can anybody see this mail on the list? >> If so, can you reply (reply to the list please)? > > Pong :) > > zeljko Thanks all for replying! Bart -- _______________________________________________ Lazarus mailing list Lazarus at lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus -- http://luisdigital.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartjunk64 at gmail.com Mon Sep 12 23:16:57 2016 From: bartjunk64 at gmail.com (Bart) Date: Mon, 12 Sep 2016 23:16:57 +0200 Subject: [Lazarus] Does this mail actually arrive on the list? Can somebody respond please? In-Reply-To: References: <634a5133-3a6a-2db6-b020-f51084ff31a0@holobit.net> Message-ID: On 9/12/16, hfiandor wrote: > I received the same email. Should I take action? You should follow the link in the mail to re-enable your membership, at leat that's what I did. Bart From ganmax at narod.ru Tue Sep 13 00:48:58 2016 From: ganmax at narod.ru (Maxim Ganetsky) Date: Tue, 13 Sep 2016 01:48:58 +0300 Subject: [Lazarus] Feature request: Project Groups In-Reply-To: References: <56CED523.6090805@geldenhuys.co.uk> <20160225114700.298525c4@limapholos.matflo.wg> <20160904103815.5db5f249@limapholos.matflo.wg> <20160905172027.735f0815@limapholos.matflo.wg> Message-ID: <2c13a24e-ecde-fef1-6ede-4b846da11af3@narod.ru> 12.09.2016 15:31, Sandro Cumerlato пишет: > Thanx to all Developers for this gem. > > In attachment my contribution to the Project Groups component (italian > localisation: projectgroupstrconst.it.po). Applied, thanks. Note that it is better to submit translations via bugtracker for obvious reasons. -- Best regards, Maxim Ganetsky mailto:ganmax at narod.ru From sandro.cumerlato at gmail.com Tue Sep 13 20:28:14 2016 From: sandro.cumerlato at gmail.com (Sandro Cumerlato) Date: Tue, 13 Sep 2016 20:28:14 +0200 Subject: [Lazarus] Feature request: Project Groups In-Reply-To: References: <56CED523.6090805@geldenhuys.co.uk> <20160225114700.298525c4@limapholos.matflo.wg> <20160904103815.5db5f249@limapholos.matflo.wg> <20160905172027.735f0815@limapholos.matflo.wg> Message-ID: Thank you Maxim for the add of my little contribute (in revision 52959). Unfortunately some strings are fuzzy. In atttachment a patch to fix it. Sandro On 12 September 2016 at 14:31, Sandro Cumerlato wrote: > Thanx to all Developers for this gem. > > In attachment my contribution to the Project Groups component (italian > localisation: projectgroupstrconst.it.po). > > Best regards, > Sandro Cumerlato -------------- next part -------------- Index: components/projectgroups/languages/projectgroupstrconst.it.po =================================================================== --- components/projectgroups/languages/projectgroupstrconst.it.po (revision 52961) +++ components/projectgroups/languages/projectgroupstrconst.it.po (working copy) @@ -54,16 +54,13 @@ "Could not find target file\n" "\"%s\"\n" "What do you want to do?\n" -msgstr "" -"Non posso trovare il file destinazione\n" +msgstr "Non posso trovare il file destinazione\n" "\"%s\"\n" "Cosa vuoi fare?\n" #: projectgroupstrconst.liserronlyprojectgroupallowed -#, fuzzy -#| msgid "Only target type \"projectgroup\" is allowed for root project group" msgid "Only target type \"projectgroup\" is allowed for root project group." -msgstr "Solo il tipo destinazione \"projectgroup\" è permesso per il gruppo di progetti principale" +msgstr "Solo il tipo destinazione \"projectgroup\" è permesso per il gruppo di progetti principale." #: projectgroupstrconst.liserrorreadingprojectgroupfile msgid "Error reading project group file \"%s\"%s%s" @@ -82,10 +79,8 @@ msgstr "File non valido" #: projectgroupstrconst.lisinvalidxmlfilename -#, fuzzy -#| msgid "Invalid xml file name \"%s\"" msgid "Invalid XML file name \"%s\"." -msgstr "Nome di file xml non valido \"%s\"" +msgstr "Nome di file xml non valido \"%s\"." #: projectgroupstrconst.lislazaruspackageslpk msgid "Lazarus packages (*.lpk)" @@ -117,7 +112,7 @@ #: projectgroupstrconst.lisnewprojectgroupmenuc msgid "New project group ..." -msgstr "" +msgstr "Nuovo gruppo di progetti ..." #: projectgroupstrconst.lisnodebuildmodes msgid "Build Modes" @@ -148,10 +143,8 @@ msgstr "Destinazioni" #: projectgroupstrconst.lisopenprojectgroup -#, fuzzy -#| msgid "Open project group" msgid "Open project group ..." -msgstr "Apri gruppo di progetti" +msgstr "Apri gruppo di progetti ..." #: projectgroupstrconst.lisopenrecentprojectgroup msgid "Open recent project group" @@ -222,8 +215,7 @@ msgid "" "Project group \"%s\" is modified.\n" "What do you want to do?\n" -msgstr "" -"Il gruppo di progetti \"%s\" è stato modificato.\n" +msgstr "Il gruppo di progetti \"%s\" è stato modificato.\n" "Cosa vuoi fare?\n" #: projectgroupstrconst.lisprojectgroupreload @@ -267,10 +259,8 @@ msgstr "Salva gruppo di progetti" #: projectgroupstrconst.lissaveprojectgroupas -#, fuzzy -#| msgid "Save project group as" msgid "Save project group as ..." -msgstr "Salva gruppo di progetti come" +msgstr "Salva gruppo di progetti come ..." #: projectgroupstrconst.lisskipalltargets msgid "Remove all invalid targets" From ganmax at narod.ru Wed Sep 14 00:15:53 2016 From: ganmax at narod.ru (Maxim Ganetsky) Date: Wed, 14 Sep 2016 01:15:53 +0300 Subject: [Lazarus] Feature request: Project Groups In-Reply-To: References: <56CED523.6090805@geldenhuys.co.uk> <20160225114700.298525c4@limapholos.matflo.wg> <20160904103815.5db5f249@limapholos.matflo.wg> <20160905172027.735f0815@limapholos.matflo.wg> Message-ID: <0299eb74-628b-c667-c5b5-85a7666e1e14@narod.ru> 13.09.2016 21:28, Sandro Cumerlato пишет: > Thank you Maxim for the add of my little contribute (in revision 52959). > > Unfortunately some strings are fuzzy. In atttachment a patch to fix it. Applied, thanks. A couple of remarks: 1. Don't send patches for .po files, send complete files instead. 2. Use bugtracker for translation submissions. -- Best regards, Maxim Ganetsky mailto:ganmax at narod.ru From JuuS at mykolab.ch Thu Sep 15 17:19:55 2016 From: JuuS at mykolab.ch (JuuS) Date: Thu, 15 Sep 2016 17:19:55 +0200 Subject: [Lazarus] Lazarus section on StackOverflow Message-ID: <89cf48c0-1990-b266-70de-63c9673b02c8@mykolab.ch> Hi, I was wondering if people here are aware of this and / or interested: http://stackoverflow.com/documentation/lazarus/commit I would be happy to commit to it, except I'm new-ish to StackOverflow and only have 50 some points yet. It requires 150 and a positive click on an answer. I think this would be a cool place to use, not to replace current Lazarus documentation, but to extend it with practical examples / algorithms that are searchable through this site. Any comments? Julius From gaborboros at yahoo.com Fri Sep 16 14:29:26 2016 From: gaborboros at yahoo.com (Gabor Boros) Date: Fri, 16 Sep 2016 14:29:26 +0200 Subject: [Lazarus] TControl.InvalidatePreferredSize loop detected with TScrollBox Message-ID: Hi All, With the attached example project got an "TControl.InvalidatePreferredSize loop detected" error. Just start it and click on Panel3. Tried with Windows and Linux-Qt, fixes_1_6 and FPC 3.0.0. What i am doing wrong or is it a bug? Gabor -------------- next part -------------- A non-text attachment was scrubbed... Name: ScrollBox_InvalidatePreferredSize_loop.tar.gz Type: application/gzip Size: 1686 bytes Desc: not available URL: From zeljko at holobit.net Fri Sep 16 15:08:49 2016 From: zeljko at holobit.net (zeljko) Date: Fri, 16 Sep 2016 15:08:49 +0200 Subject: [Lazarus] TControl.InvalidatePreferredSize loop detected with TScrollBox In-Reply-To: References: Message-ID: On 09/16/2016 02:29 PM, Gabor Boros wrote: > Hi All, > > With the attached example project got an > "TControl.InvalidatePreferredSize loop detected" error. Just start it > and click on Panel3. Tried with Windows and Linux-Qt, fixes_1_6 and FPC > 3.0.0. What i am doing wrong or is it a bug? Probably bug. Pleas open an issue and attach that example. I've reproduced it w/o problems under Fedora 23 x86_64, Qt-4.8.7 , trunk lazarus + fpc 3.0.0 zeljko From zeljko at holobit.net Fri Sep 16 15:10:36 2016 From: zeljko at holobit.net (zeljko) Date: Fri, 16 Sep 2016 15:10:36 +0200 Subject: [Lazarus] TControl.InvalidatePreferredSize loop detected with TScrollBox In-Reply-To: References: Message-ID: On 09/16/2016 02:29 PM, Gabor Boros wrote: > Hi All, > > With the attached example project got an > "TControl.InvalidatePreferredSize loop detected" error. Just start it > and click on Panel3. Tried with Windows and Linux-Qt, fixes_1_6 and FPC > 3.0.0. What i am doing wrong or is it a bug? Same happens under gtk2 ws...so not qt only problem. z. From zeljko at holobit.net Fri Sep 16 15:22:57 2016 From: zeljko at holobit.net (zeljko) Date: Fri, 16 Sep 2016 15:22:57 +0200 Subject: [Lazarus] TControl.InvalidatePreferredSize loop detected with TScrollBox In-Reply-To: References: Message-ID: On 09/16/2016 02:29 PM, Gabor Boros wrote: > Hi All, > > With the attached example project got an > "TControl.InvalidatePreferredSize loop detected" error. Just start it > and click on Panel3. Tried with Windows and Linux-Qt, fixes_1_6 and FPC > 3.0.0. What i am doing wrong or is it a bug? Set VerticalScrollBar.Page to default value (80) and it won't trigger error. z From tony.whyman at mccallumwhyman.com Sat Sep 17 12:34:51 2016 From: tony.whyman at mccallumwhyman.com (Tony Whyman) Date: Sat, 17 Sep 2016 11:34:51 +0100 Subject: [Lazarus] LCL and fpc 3.0.0 Code Pages Message-ID: <6ef84790-e378-bb2e-a598-ad448b6c9aa0@mccallumwhyman.com> Am I right in saying that the only AnsiString type that it is safe to use with the LCL is UTF8 (even under Windows)? From m.e.sanliturk at gmail.com Sat Sep 17 17:33:13 2016 From: m.e.sanliturk at gmail.com (Mehmet Erol Sanliturk) Date: Sat, 17 Sep 2016 08:33:13 -0700 Subject: [Lazarus] Bounces of Lazarus mailing list messages Message-ID: Dears All , Some days ago , I have received a message from Lazarus mailing list about to renew my subscription due to bounces of mails sent from Lazarus mailing list . Previously , Free Pascal mailing lists had deleted my subscriptions due to bounced messages . I am receiving messages from approximately a large number of mailing lists . Up to now , only I have got bounce related messages from only Lazarus and Free Pascal mailing lists . In previous years , some parameters in mail servers renewed . I do not know/remember which ones . My opinion is that , in Lazarus mailing list sending process , there are some mismatched , unset , or missing parameters with respect to the receiving mail systems causing such bounces . Thank you very much . Mehmet Erol sanliturk -------------- next part -------------- An HTML attachment was scrubbed... URL: From coppolastudio at gmail.com Sat Sep 17 19:39:35 2016 From: coppolastudio at gmail.com (Salvatore) Date: Sat, 17 Sep 2016 19:39:35 +0200 Subject: [Lazarus] Last mail from the Lazarus list is dated september 10 2016 Message-ID: As checked in Lazarus mail archive the are thred after 09/10/2016. There are trouble or in unsubscribed? Even not much active I happy whit the list Salvatore From nc-gaertnma at netcologne.de Sat Sep 17 20:59:07 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sat, 17 Sep 2016 20:59:07 +0200 Subject: [Lazarus] LCL and fpc 3.0.0 Code Pages In-Reply-To: <6ef84790-e378-bb2e-a598-ad448b6c9aa0@mccallumwhyman.com> References: <6ef84790-e378-bb2e-a598-ad448b6c9aa0@mccallumwhyman.com> Message-ID: <20160917205907.10e7ce92@limapholos.matflo.wg> On Sat, 17 Sep 2016 11:34:51 +0100 Tony Whyman wrote: > Am I right in saying that the only AnsiString type that it is safe to > use with the LCL is UTF8 (even under Windows)? UTF-8 is an encoding, not an AnsiString type. And yes, the LCL expects UTF-8. Mattias From marc at dommelstein.nl Sat Sep 17 23:44:21 2016 From: marc at dommelstein.nl (Marc Weustink) Date: Sat, 17 Sep 2016 23:44:21 +0200 Subject: [Lazarus] Bounces of Lazarus mailing list messages In-Reply-To: References: Message-ID: On September 17, 2016 5:33:13 PM GMT+02:00, Mehmet Erol Sanliturk wrote: >Dears All , > >Some days ago , I have received a message from Lazarus mailing list >about to renew my subscription due to bounces of mails sent from >Lazarus mailing list . > >Previously , Free Pascal mailing lists had deleted my subscriptions >due to bounced messages . > > >I am receiving messages from approximately a large number of >mailing lists . >Up to now , only I have got bounce related messages from only >Lazarus and Free Pascal mailing lists . > > >In previous years , some parameters in mail servers renewed . I do not >know/remember which ones . That might be the case. When migrating to our new server,I just copied the old settings. Today I've changed the way bounces are processed. Second, I plan to change the way I how dmarc enabled senders are handled by the list. Marc From mailinglists at geldenhuys.co.uk Mon Sep 19 12:54:34 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Mon, 19 Sep 2016 11:54:34 +0100 Subject: [Lazarus] Code Observer suggestions and bugs Message-ID: <00f6654d-d8a5-f7b8-65a4-96b7fcd79da3@geldenhuys.co.uk> Hi, I just discovered the "Code Observer" functionality. Amazing gems in Lazarus - well done guys! Some suggestions I immediately noticed though after enabling Code Observer. 1) Unnamed Constants. I added some new methods where unnamed constants should be ignore, yet the Code Observer still keeps complaining about those methods. Is this a bug? When do new changes take effect? I have updating set to "idle". 2) Can the "Code Observer" node please remember its state. Every time the treeview refreshes now, the "Code Observer" node closes itself and all child nodes close too. This is very annoying to keep having to open the nodes. 3) Long Procedures - can the line count be added in parentheses - that way I can see which procedures are more important than others in fixing. 4) Unnamed Constants - If I disable unnamed constants in the options, the "Unnamed Constants" node still appears in the Code Observer. It seems the enable/disable option is ignored. 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 coppolastudio at gmail.com Mon Sep 19 15:29:29 2016 From: coppolastudio at gmail.com (Salvatore Coppola) Date: Mon, 19 Sep 2016 15:29:29 +0200 Subject: [Lazarus] test Message-ID: test -------------- next part -------------- An HTML attachment was scrubbed... URL: From nc-gaertnma at netcologne.de Mon Sep 19 17:02:56 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Mon, 19 Sep 2016 17:02:56 +0200 Subject: [Lazarus] Test Message-ID: <20160919170256.25b9b324@limapholos.matflo.wg> It seems some users can't write the list anymore. Mattias From giuliano.colla at fastwebnet.it Mon Sep 19 19:19:48 2016 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Mon, 19 Sep 2016 19:19:48 +0200 Subject: [Lazarus] [Lazarusdev] lazarus mailing list down? In-Reply-To: <20160919181036.0b6f6b38@limapholos.matflo.wg> References: <20160919170551.469ae5f6@limapholos.matflo.wg> <20160919181036.0b6f6b38@limapholos.matflo.wg> Message-ID: Il 19/09/2016 18:10, Mattias Gaertner ha scritto: >> It seems the list is down since Saturday. >> > > > > > >Did not notice that. > >IIRC I did have a conversation on this ML at least Sunday. I can confirm that also from here I don't see any activity on the Lazarus list after Saturday. Last post is from Mehmet Erol Sanliturk at 17:33 (and he was complaining about bounces, btw.) I post this also in the Lazarus list to see if it shows. If it does, sorry for the noise. Giuliano -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at dommelstein.nl Mon Sep 19 22:07:38 2016 From: marc at dommelstein.nl (Marc Weustink) Date: Mon, 19 Sep 2016 22:07:38 +0200 Subject: [Lazarus] Test In-Reply-To: <20160919170256.25b9b324@limapholos.matflo.wg> References: <20160919170256.25b9b324@limapholos.matflo.wg> Message-ID: <5ed66f9e-c99a-1b5a-7079-1c18594541a7@dommelstein.nl> On 19-9-2016 17:02, Mattias Gaertner wrote: > > It seems some users can't write the list anymore. Some mailman process got stuck (couldn't get a lock) Marc From bartjunk64 at gmail.com Mon Sep 19 22:39:04 2016 From: bartjunk64 at gmail.com (Bart) Date: Mon, 19 Sep 2016 22:39:04 +0200 Subject: [Lazarus] test In-Reply-To: References: Message-ID: On 9/19/16, Salvatore Coppola wrote: > test Yes, it seems the list is back up again! bart From bartjunk64 at gmail.com Mon Sep 19 22:59:38 2016 From: bartjunk64 at gmail.com (Bart) Date: Mon, 19 Sep 2016 22:59:38 +0200 Subject: [Lazarus] test In-Reply-To: References: Message-ID: On 9/19/16, Salvatore Coppola wrote: > test Note: in the archives I can see that Mattias replied to you first, then Marc replied to Mattias. None of these two mails arrived here. [Lazarus] test Salvatore Coppola --[Lazarus] Test Mattias Gaertner <- did not get this ----[Lazarus] Test Marc Weustink <- did not get this either --[Lazarus] test Bart Bart From luizamericop at gmail.com Mon Sep 19 23:11:05 2016 From: luizamericop at gmail.com (Luiz Americo Pereira Camara) Date: Mon, 19 Sep 2016 18:11:05 -0300 Subject: [Lazarus] test In-Reply-To: References: Message-ID: 2016-09-19 17:59 GMT-03:00 Bart : > On 9/19/16, Salvatore Coppola wrote: > > test > > Note: in the archives I can see that Mattias replied to you first, > then Marc replied to Mattias. > None of these two mails arrived here. > > [Lazarus] test Salvatore Coppola > --[Lazarus] Test Mattias Gaertner <- did not get this > ----[Lazarus] Test Marc Weustink <- did not get this either > --[Lazarus] test Bart > The same here Luiz -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at dommelstein.nl Mon Sep 19 23:40:51 2016 From: marc at dommelstein.nl (Marc Weustink) Date: Mon, 19 Sep 2016 23:40:51 +0200 Subject: [Lazarus] test In-Reply-To: References: Message-ID: <741f1859-1711-2ad2-0f20-5a02bd847647@dommelstein.nl> On 19-9-2016 23:11, Luiz Americo Pereira Camara wrote: > > > 2016-09-19 17:59 GMT-03:00 Bart >: > > On 9/19/16, Salvatore Coppola > wrote: > > test > > Note: in the archives I can see that Mattias replied to you first, > then Marc replied to Mattias. > None of these two mails arrived here. > > [Lazarus] test Salvatore Coppola > --[Lazarus] Test Mattias Gaertner <- did not get this > ----[Lazarus] Test Marc Weustink <- did not get this either > --[Lazarus] test Bart > > > The same here There are/were still some issues with sending mail to gmail Marc From coppolastudio at gmail.com Tue Sep 20 11:57:37 2016 From: coppolastudio at gmail.com (Salvatore Coppola) Date: Tue, 20 Sep 2016 11:57:37 +0200 Subject: [Lazarus] test Message-ID: can see (on the archive) that the mail reach the list, but here nothing arrive from the list Salvatore -------------- next part -------------- An HTML attachment was scrubbed... URL: From listbox at martoks-place.de Tue Sep 20 12:02:50 2016 From: listbox at martoks-place.de (Martok) Date: Tue, 20 Sep 2016 12:02:50 +0200 Subject: [Lazarus] test In-Reply-To: References: Message-ID: Works fine here, but threading is completely broken. Looks okay in the archive, but Thunderbird via ML as well as Gmane get it wrong in the same way. From coppolastudio at gmail.com Tue Sep 20 12:33:58 2016 From: coppolastudio at gmail.com (Salvatore Coppola) Date: Tue, 20 Sep 2016 12:33:58 +0200 Subject: [Lazarus] test In-Reply-To: References: Message-ID: Now is ok 2016-09-20 12:02 GMT+02:00 Martok : > Works fine here, but threading is completely broken. Looks okay in the > archive, > but Thunderbird via ML as well as Gmane get it wrong in the same way. > -- > _______________________________________________ > 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 dezlov at gmail.com Tue Sep 20 12:39:42 2016 From: dezlov at gmail.com (Denis Kozlov) Date: Tue, 20 Sep 2016 11:39:42 +0100 Subject: [Lazarus] test In-Reply-To: <741f1859-1711-2ad2-0f20-5a02bd847647@dommelstein.nl> References: <741f1859-1711-2ad2-0f20-5a02bd847647@dommelstein.nl> Message-ID: On 19 September 2016 at 22:40, Marc Weustink wrote: > > There are/were still some issues with sending mail to gmail Yes, big problems. I have been receiving only small fraction of FPC and Lazarus mailing list, and no Mantis notifications at all, for last month or so. My email to the list owner seem to have been lost as well, or maybe the response was lost. Denis -------------- next part -------------- An HTML attachment was scrubbed... URL: From JuuS at mykolab.ch Tue Sep 20 12:56:05 2016 From: JuuS at mykolab.ch (JuuS) Date: Tue, 20 Sep 2016 12:56:05 +0200 Subject: [Lazarus] Test Message-ID: Test by using "fresh" new email. I've sent things to the list that have not shown up. I will be sending two tests: one using by reply and one "fresh" new email From JuuS at mykolab.ch Tue Sep 20 12:56:17 2016 From: JuuS at mykolab.ch (JuuS) Date: Tue, 20 Sep 2016 12:56:17 +0200 Subject: [Lazarus] test In-Reply-To: References: Message-ID: Test by using reply. I've sent things to the list that have not shown up. I will be sending two tests: one using by reply and one "fresh" new email From mailinglists at geldenhuys.co.uk Tue Sep 20 16:23:10 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Tue, 20 Sep 2016 15:23:10 +0100 Subject: [Lazarus] IDE Docking windows and Editor Toolbar Message-ID: Hi, Is it a known issue, or by design, that the Editor Toolbar doesn't appear when the Anchor Docking packages is installed? Is it some docking window limitation? My environmentoptions.xml file still lists all my previous Editor Toolbar items, but only a blank TPanel (I think) is displayed. No editor toolbar buttons 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 aradeonas at operamail.com Tue Sep 20 18:09:27 2016 From: aradeonas at operamail.com (Aradeonas) Date: Tue, 20 Sep 2016 09:09:27 -0700 Subject: [Lazarus] Code Observer suggestions and bugs In-Reply-To: <00f6654d-d8a5-f7b8-65a4-96b7fcd79da3@geldenhuys.co.uk> References: <00f6654d-d8a5-f7b8-65a4-96b7fcd79da3@geldenhuys.co.uk> Message-ID: <1474387767.799615.731587137.7BC5461E@webmail.messagingengine.com> Where can I find it? Regards, Ara -- http://www.fastmail.com - mmm... Fastmail... -------------- next part -------------- An HTML attachment was scrubbed... URL: From mailinglists at geldenhuys.co.uk Tue Sep 20 18:19:43 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Tue, 20 Sep 2016 17:19:43 +0100 Subject: [Lazarus] Code Observer suggestions and bugs In-Reply-To: <1474387767.799615.731587137.7BC5461E@webmail.messagingengine.com> References: <00f6654d-d8a5-f7b8-65a4-96b7fcd79da3@geldenhuys.co.uk> <1474387767.799615.731587137.7BC5461E@webmail.messagingengine.com> Message-ID: <32e554ec-d471-d422-8237-1c7049c93af3@geldenhuys.co.uk> On 2016-09-20 17:09, Aradeonas wrote: > Where can I find it? hehehe... I struggled with that too. Open the "Code Explorer" window from the View menu. Select the Options button, go to the "Categories" settings and enable "Code Observer". Then in the "Code Observer" settings, set the options you want, like long procedures, many parameters etc. and click OK. The Code Explorer window will now have a new node "Code Observer" that lists any issues it detects. 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 jmlandmesser at gmx.de Tue Sep 20 18:19:56 2016 From: jmlandmesser at gmx.de (John Landmesser) Date: Tue, 20 Sep 2016 18:19:56 +0200 Subject: [Lazarus] When are Lazarus mailing list archived gzip'd? Message-ID: if i look at: http://lists.lazarus-ide.org/pipermail/lazarus/ column: " Downloadable version" stop at May 2016. When are the following months gzip'd? I use the great Lazarus Mailing List Reader and was wondering: where are mails after May 2016? Thanks for tipps! ********************************************* Hope you know the Lazarus Mailing list Reader allready: http://forum.lazarus.freepascal.org/index.php/topic,30393.0.html?PHPSESSID=fl4hkarohvtugsf3aka79m8l57 -------------- next part -------------- An HTML attachment was scrubbed... URL: From aradeonas at operamail.com Tue Sep 20 18:34:27 2016 From: aradeonas at operamail.com (Aradeonas) Date: Tue, 20 Sep 2016 09:34:27 -0700 Subject: [Lazarus] Code Observer suggestions and bugs In-Reply-To: <32e554ec-d471-d422-8237-1c7049c93af3@geldenhuys.co.uk> References: <00f6654d-d8a5-f7b8-65a4-96b7fcd79da3@geldenhuys.co.uk> <1474387767.799615.731587137.7BC5461E@webmail.messagingengine.com> <32e554ec-d471-d422-8237-1c7049c93af3@geldenhuys.co.uk> Message-ID: <1474389267.804518.731615561.41D0D599@webmail.messagingengine.com> Thanks but I checked all options and checked many units but there is no "Code Observer" node and Im using last trunk version. Regards, Ara -- http://www.fastmail.com - A no graphics, no pop-ups email service -------------- next part -------------- An HTML attachment was scrubbed... URL: From wkitty42 at windstream.net Tue Sep 20 18:38:23 2016 From: wkitty42 at windstream.net (wkitty42 at windstream.net) Date: Tue, 20 Sep 2016 12:38:23 -0400 Subject: [Lazarus] test In-Reply-To: References: Message-ID: On 09/20/2016 05:57 AM, Salvatore Coppola wrote: > can see (on the archive) that the mail reach the list, but here nothing arrive > from the list gmail filters out your posts returning to you from a list... i have not found out how to disable that function... -- NOTE: No off-list assistance is given without prior approval. *Please keep mailing list traffic on the list* unless private contact is specifically requested and granted. From leledumbo_cool at yahoo.co.id Tue Sep 20 18:38:48 2016 From: leledumbo_cool at yahoo.co.id (leledumbo) Date: Tue, 20 Sep 2016 09:38:48 -0700 (MST) Subject: [Lazarus] IDE Docking windows and Editor Toolbar In-Reply-To: References: Message-ID: <1474389528592-4049575.post@n3.nabble.com> > Is it a known issue, or by design, that the Editor Toolbar doesn't > appear when the Anchor Docking packages is installed? Is it some docking > window limitation? Not an issue for me: anchor-docking-and-editor-toolbar.png -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-IDE-Docking-windows-and-Editor-Toolbar-tp4049569p4049575.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. From mailinglists at geldenhuys.co.uk Tue Sep 20 18:40:07 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Tue, 20 Sep 2016 17:40:07 +0100 Subject: [Lazarus] Code Observer suggestions and bugs In-Reply-To: <1474389267.804518.731615561.41D0D599@webmail.messagingengine.com> References: <00f6654d-d8a5-f7b8-65a4-96b7fcd79da3@geldenhuys.co.uk> <1474387767.799615.731587137.7BC5461E@webmail.messagingengine.com> <32e554ec-d471-d422-8237-1c7049c93af3@geldenhuys.co.uk> <1474389267.804518.731615561.41D0D599@webmail.messagingengine.com> Message-ID: On 2016-09-20 17:34, Aradeonas wrote: > Thanks but I checked all options and checked many units but there is no > "Code Observer" node and Im using last trunk version. That's another issue I noticed - after my initial email. In the Code Explorer window, there is a button to the left of the Options button. Click it to switch to "Source view", then the "Code Observer" node will appear right at the bottom of the treeview. As far as I can see, in "Layout view" the "code observer" node is not displayed. Untested: If you code is 100% perfect, I don't know if the "Code Observer" node is created or not. I would guess not. 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 Tue Sep 20 18:43:44 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Tue, 20 Sep 2016 17:43:44 +0100 Subject: [Lazarus] IDE Docking windows and Editor Toolbar In-Reply-To: <1474389528592-4049575.post@n3.nabble.com> References: <1474389528592-4049575.post@n3.nabble.com> Message-ID: On 2016-09-20 17:38, leledumbo wrote: > Not an issue for me: Is your Lazarus IDE also compiled against LCL-GTK2? Also I have my Editor Tabs set to display on the right, not the top. I don't know if any of these might interfere with the Editor Toolbar + Anchor Docking. Without Anchor Docking installed, the editor toolbar worked fine - even with my editor tabs on the right edge of the editor. Regards, Graeme From aradeonas at operamail.com Tue Sep 20 18:44:59 2016 From: aradeonas at operamail.com (Aradeonas) Date: Tue, 20 Sep 2016 09:44:59 -0700 Subject: [Lazarus] Code Observer suggestions and bugs In-Reply-To: References: <00f6654d-d8a5-f7b8-65a4-96b7fcd79da3@geldenhuys.co.uk> <1474387767.799615.731587137.7BC5461E@webmail.messagingengine.com> <32e554ec-d471-d422-8237-1c7049c93af3@geldenhuys.co.uk> <1474389267.804518.731615561.41D0D599@webmail.messagingengine.com> Message-ID: <1474389899.1996988.731627377.27837B1E@webmail.messagingengine.com> Still nothing, maybe all of my codes are perfect :D Can you name a fpc or Lazarus unit that shows it? Regards, Ara -- http://www.fastmail.com - Access all of your messages and folders wherever you are -------------- next part -------------- An HTML attachment was scrubbed... URL: From lazarus at mfriebe.de Tue Sep 20 22:14:56 2016 From: lazarus at mfriebe.de (Martin Frb) Date: Tue, 20 Sep 2016 21:14:56 +0100 Subject: [Lazarus] Code Observer suggestions and bugs In-Reply-To: <1474389899.1996988.731627377.27837B1E@webmail.messagingengine.com> References: <00f6654d-d8a5-f7b8-65a4-96b7fcd79da3@geldenhuys.co.uk> <1474387767.799615.731587137.7BC5461E@webmail.messagingengine.com> <32e554ec-d471-d422-8237-1c7049c93af3@geldenhuys.co.uk> <1474389267.804518.731615561.41D0D599@webmail.messagingengine.com> <1474389899.1996988.731627377.27837B1E@webmail.messagingengine.com> Message-ID: <5848faad-540f-4c36-a7b3-63497da044f8@mfriebe.de> On 20/09/2016 17:44, Aradeonas wrote: > Still nothing, maybe all of my codes are perfect :D > Can you name a fpc or Lazarus unit that shows it? > just a new application project. TForm1 will be empty, so it gets "empty class section". You should see the following nodes in code explorer: - uses - types - variables - code explorer - surrounding From aradeonas at operamail.com Tue Sep 20 22:39:07 2016 From: aradeonas at operamail.com (Aradeonas) Date: Tue, 20 Sep 2016 13:39:07 -0700 Subject: [Lazarus] Code Observer suggestions and bugs In-Reply-To: <5848faad-540f-4c36-a7b3-63497da044f8@mfriebe.de> References: <00f6654d-d8a5-f7b8-65a4-96b7fcd79da3@geldenhuys.co.uk> <1474387767.799615.731587137.7BC5461E@webmail.messagingengine.com> <32e554ec-d471-d422-8237-1c7049c93af3@geldenhuys.co.uk> <1474389267.804518.731615561.41D0D599@webmail.messagingengine.com> <1474389899.1996988.731627377.27837B1E@webmail.messagingengine.com> <5848faad-540f-4c36-a7b3-63497da044f8@mfriebe.de> Message-ID: <1474403947.1645207.731870177.61A3CD6F@webmail.messagingengine.com> I found it, thanks! Regards, Ara -- http://www.fastmail.com - IMAP accessible web-mail -------------- next part -------------- An HTML attachment was scrubbed... URL: From aradeonas at operamail.com Tue Sep 20 22:41:13 2016 From: aradeonas at operamail.com (Aradeonas) Date: Tue, 20 Sep 2016 13:41:13 -0700 Subject: [Lazarus] Code Observer suggestions and bugs In-Reply-To: <1474403947.1645207.731870177.61A3CD6F@webmail.messagingengine.com> References: <00f6654d-d8a5-f7b8-65a4-96b7fcd79da3@geldenhuys.co.uk> <1474387767.799615.731587137.7BC5461E@webmail.messagingengine.com> <32e554ec-d471-d422-8237-1c7049c93af3@geldenhuys.co.uk> <1474389267.804518.731615561.41D0D599@webmail.messagingengine.com> <1474389899.1996988.731627377.27837B1E@webmail.messagingengine.com> <5848faad-540f-4c36-a7b3-63497da044f8@mfriebe.de> <1474403947.1645207.731870177.61A3CD6F@webmail.messagingengine.com> Message-ID: <1474404073.1645632.731873361.07C6964D@webmail.messagingengine.com> This actually very good, thank to who made it ! Regards, Ara -- http://www.fastmail.com - Send your email first class -------------- next part -------------- An HTML attachment was scrubbed... URL: From nc-gaertnma at netcologne.de Wed Sep 21 10:06:15 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Wed, 21 Sep 2016 10:06:15 +0200 Subject: [Lazarus] IDE Docking windows and Editor Toolbar In-Reply-To: References: <1474389528592-4049575.post@n3.nabble.com> Message-ID: <20160921100615.1db2fdfa@limapholos.matflo.wg> On Tue, 20 Sep 2016 17:43:44 +0100 Graeme Geldenhuys wrote: > On 2016-09-20 17:38, leledumbo wrote: > > Not an issue for me: > > Is your Lazarus IDE also compiled against LCL-GTK2? Also I have my > Editor Tabs set to display on the right, not the top. I don't know if > any of these might interfere with the Editor Toolbar + Anchor Docking. It only disappears when on the right? I use LCL-GTK2 with Anchordocking and Editor Toolbar to the right, no problem. > Without Anchor Docking installed, the editor toolbar worked fine - even > with my editor tabs on the right edge of the editor. Mattias From mailinglists at geldenhuys.co.uk Wed Sep 21 11:31:44 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Wed, 21 Sep 2016 10:31:44 +0100 Subject: [Lazarus] IDE Docking windows and Editor Toolbar In-Reply-To: <20160921100615.1db2fdfa@limapholos.matflo.wg> References: <1474389528592-4049575.post@n3.nabble.com> <20160921100615.1db2fdfa@limapholos.matflo.wg> Message-ID: <5cfaa14a-c177-344c-0a2f-1b3ccb6f6c45@geldenhuys.co.uk> On 2016-09-21 09:06, Mattias Gaertner wrote: > It only disappears when on the right? Sorry if my message wasn't clear. Here is a screenshot of what I see, and below is the Editor Toolbar settings as seen in the environmentoptions.xml file. When I disable Anchor Docking, then the Editor Toolbar displays correctly. Enable Anchor Docking, and it looks like the attached screenshot. As I mentioned, I'm using Lazarus 1.7 r52715 FPC 2.6.4 x86_64-linux-gtk 2 on a CentOS 6 Linux system. 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: screenshot10.png Type: image/png Size: 24300 bytes Desc: not available URL: From leledumbo_cool at yahoo.co.id Wed Sep 21 12:01:47 2016 From: leledumbo_cool at yahoo.co.id (leledumbo) Date: Wed, 21 Sep 2016 03:01:47 -0700 (MST) Subject: [Lazarus] IDE Docking windows and Editor Toolbar In-Reply-To: References: <1474389528592-4049575.post@n3.nabble.com> Message-ID: <1474452107866-4049584.post@n3.nabble.com> > Is your Lazarus IDE also compiled against LCL-GTK2? Also I have my > Editor Tabs set to display on the right, not the top. I don't know if > any of these might interfere with the Editor Toolbar + Anchor Docking. Kinda ugly, but yes it works: anchor-docking-and-editor-toolbar-gtk2.png -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-IDE-Docking-windows-and-Editor-Toolbar-tp4049569p4049584.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. From mailinglists at geldenhuys.co.uk Wed Sep 21 12:09:11 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Wed, 21 Sep 2016 11:09:11 +0100 Subject: [Lazarus] IDE Docking windows and Editor Toolbar In-Reply-To: <1474452107866-4049584.post@n3.nabble.com> References: <1474389528592-4049575.post@n3.nabble.com> <1474452107866-4049584.post@n3.nabble.com> Message-ID: <4d249804-fc86-a1e6-489d-328d06129b48@geldenhuys.co.uk> On 2016-09-21 11:01, leledumbo wrote: > Kinda ugly, but yes it works: Thanks for confirming... Now I’m very confused as to why it doesn’t work here. As for the “ugly” comment - yes, I don’t know why LCL-GTK2 tabs on the right must be so “fat” (vertical space). With fpGUI or MSEide pagecontrol widgets, I can fit almost 3× the amount of tabs in the vertical space taken up by what your screenshot shows. I use tabs-on-the-right because I work with a lot of files at once. I hate having to scroll to find a file I need. With vertical stacked tabs, I see all the open files in one go without any scrolling. It has its benefits. ;-) 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 dezlov at gmail.com Wed Sep 21 12:37:50 2016 From: dezlov at gmail.com (Denis Kozlov) Date: Wed, 21 Sep 2016 11:37:50 +0100 Subject: [Lazarus] IDE Docking windows and Editor Toolbar In-Reply-To: References: Message-ID: <1e3ebcd3-0ad7-cb8e-370c-7c63b661c687@gmail.com> On 20/09/2016 15:23, Graeme Geldenhuys wrote: > Is it a known issue, or by design, that the Editor Toolbar doesn't > appear when the Anchor Docking packages is installed? Is it some docking > window limitation? It is somewhat documented in: http://bugs.freepascal.org/view.php?id=29863 All toolbars disappear once you install anchor docking package, so toolbars need to be re-enabled manually. That's one of the problems. The other one is more severe, i.e. "TWinControl.WMSize loop detected". Denis From mailinglists at geldenhuys.co.uk Wed Sep 21 12:58:38 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Wed, 21 Sep 2016 11:58:38 +0100 Subject: [Lazarus] IDE Docking windows and Editor Toolbar In-Reply-To: <1e3ebcd3-0ad7-cb8e-370c-7c63b661c687@gmail.com> References: <1e3ebcd3-0ad7-cb8e-370c-7c63b661c687@gmail.com> Message-ID: On 2016-09-21 11:37, Denis Kozlov wrote: > It is somewhat documented in: http://bugs.freepascal.org/view.php?id=29863 Umm... thanks for that. It seems for every good feature in Lazarus IDE, there is an inevitable trade-off somewhere else. :-( All I wanted was a single tabbed window to collect all IDE debug windows in one place - the trade-off is I loose the useful Editor Toolbar. If I have some time over the weekend I'll see if I can debug the cause. Regards, Graeme From mailinglists at geldenhuys.co.uk Wed Sep 21 13:21:12 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Wed, 21 Sep 2016 12:21:12 +0100 Subject: [Lazarus] IDE Docking windows and Editor Toolbar In-Reply-To: References: Message-ID: <0b59dd49-8692-bd5c-745a-bb035bfb702f@geldenhuys.co.uk> On 2016-09-20 15:23, Graeme Geldenhuys wrote: > Is it a known issue, or by design, that the Editor Toolbar doesn't > appear when the Anchor Docking packages is installed? Is it some docking > window limitation? Seems I found the problem. My environmentoptions.xml file now contains two "desktop" settings for some reason. Without Ancher Docking it used "desktop1", but with Anchor Docking it uses "desktop2". I assume when I installed Anchor Docking it created a second set of desktop settings - but never copied over my original Editor Toolbar settings. Manually copying my Editor Toolbar configuration from desktop1 to desktop2 - now my IDE has docked windows and the editor toolbar I so like. :) I presume this is a bug with Anchor Docking - not copying over certain settings to desktop2. 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 Wed Sep 21 13:32:08 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Wed, 21 Sep 2016 13:32:08 +0200 Subject: [Lazarus] IDE Docking windows and Editor Toolbar In-Reply-To: <0b59dd49-8692-bd5c-745a-bb035bfb702f@geldenhuys.co.uk> References: <0b59dd49-8692-bd5c-745a-bb035bfb702f@geldenhuys.co.uk> Message-ID: <20160921133208.46b7eaac@limapholos.matflo.wg> On Wed, 21 Sep 2016 12:21:12 +0100 Graeme Geldenhuys wrote: >[...] > Manually copying my Editor Toolbar configuration from desktop1 to > desktop2 - now my IDE has docked windows and the editor toolbar I so > like. :) > > I presume this is a bug with Anchor Docking - not copying over certain > settings to desktop2. Even without copying. You should be able to show the toolbar and add buttons without editing the xml. I wonder, why it works here, but not for you. Mattias From lazarus at kluug.net Wed Sep 21 13:44:35 2016 From: lazarus at kluug.net (Ondrej Pokorny) Date: Wed, 21 Sep 2016 18:44:35 +0700 Subject: [Lazarus] IDE Docking windows and Editor Toolbar In-Reply-To: <20160921133208.46b7eaac@limapholos.matflo.wg> References: <0b59dd49-8692-bd5c-745a-bb035bfb702f@geldenhuys.co.uk> <20160921133208.46b7eaac@limapholos.matflo.wg> Message-ID: <8e23f66a-7a7e-f3a9-2045-fa6504badfd3@kluug.net> On 21.09.2016 18:32, Mattias Gaertner wrote: > On Wed, 21 Sep 2016 12:21:12 +0100 > Graeme Geldenhuys wrote: > >> [...] >> Manually copying my Editor Toolbar configuration from desktop1 to >> desktop2 - now my IDE has docked windows and the editor toolbar I so >> like. :) >> >> I presume this is a bug with Anchor Docking - not copying over certain >> settings to desktop2. > Even without copying. You should be able to show the toolbar and > add buttons without editing the xml. I wonder, why it works here, but > not for you. IMO this is a misunderstanding. As far as I see from Graeme's screenshots the toolbar is there and works but is empty. Graeme please see http://bugs.freepascal.org/view.php?id=29742 point 2, especially the "why" section. So the only problem is that there is no default layout for AnchorDocking. Ondrej From mailinglists at geldenhuys.co.uk Wed Sep 21 14:22:04 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Wed, 21 Sep 2016 13:22:04 +0100 Subject: [Lazarus] IDE Docking windows and Editor Toolbar In-Reply-To: <8e23f66a-7a7e-f3a9-2045-fa6504badfd3@kluug.net> References: <0b59dd49-8692-bd5c-745a-bb035bfb702f@geldenhuys.co.uk> <20160921133208.46b7eaac@limapholos.matflo.wg> <8e23f66a-7a7e-f3a9-2045-fa6504badfd3@kluug.net> Message-ID: On 2016-09-21 12:44, Ondrej Pokorny wrote: > As far as I see from Graeme's > screenshots the toolbar is there and works but is empty. Correct, I could right-click on the empty Editor Toolbar and select "Configure". It worked, but I didn't want to do that in case it overwrote my existing Editor Toolbar configuration which I knew existed in environmentoptions.xml. Up until now, I didn't even know Lazarus supports multiple desktop configurations. I just found it in the Tools menu. > Graeme please > see http://bugs.freepascal.org/view.php?id=29742 point 2, especially the > "why" section. That is a very valid point. When I go to "Tools -> Options -> Environment" I would assume all setting under "Environment" apply to the whole IDE. Moving settings specific for a desktop layout in a new "Desktop" options would make more sense. 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 Wed Sep 21 14:24:29 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Wed, 21 Sep 2016 13:24:29 +0100 Subject: [Lazarus] IDE Docking windows and Editor Toolbar In-Reply-To: <8e23f66a-7a7e-f3a9-2045-fa6504badfd3@kluug.net> References: <0b59dd49-8692-bd5c-745a-bb035bfb702f@geldenhuys.co.uk> <20160921133208.46b7eaac@limapholos.matflo.wg> <8e23f66a-7a7e-f3a9-2045-fa6504badfd3@kluug.net> Message-ID: <2efe3fcc-c9fb-78ce-84eb-6b1fef4123c7@geldenhuys.co.uk> On 2016-09-21 12:44, Ondrej Pokorny wrote: > So the only problem is that there is no default layout for AnchorDocking. Correct, and maybe default by copying the existing desktop settings (for Editor Toolbar) to the new desktop settings. If you only had one desktop to start with, that shouldn't be hard, but if you have multiple desktop layouts set up, I don't know how it would choose which one to copy settings from. 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 lazarus at kluug.net Wed Sep 21 14:46:13 2016 From: lazarus at kluug.net (Ondrej Pokorny) Date: Wed, 21 Sep 2016 19:46:13 +0700 Subject: [Lazarus] Desktops - some features overengineered (?) Message-ID: I'd like to discuss the Desktops feature. In particular the fact that some settings are stored within the desktop and not IDE-wide. That means that changing desktops means also changing some of the settings. For now I have these IDE options in mind: "Environment -> Window" "Environment -> IDE coolbar" "Environment -> Editor toolbar" "Environment -> Component Palette" "Environment -> AnchorDocking" I personally use 4 different destops (external monitor vs laptop monitor AND editing vs debuging - which makes 4 combinations). I use different IDE coolbar settings for edit and debug desktop. Does anybody take advantage of the fact that these settings are different for every desktop? Or did I overengineer the feature? For me it looks like the users are only confused (like Graeme in the "IDE Docking windows and Editor Toolbar" thread). Honestly, I can live without different IDE coolbars for edit & debug destops although I use them now. Ondrej From lazarus at kluug.net Wed Sep 21 14:47:27 2016 From: lazarus at kluug.net (Ondrej Pokorny) Date: Wed, 21 Sep 2016 19:47:27 +0700 Subject: [Lazarus] IDE Docking windows and Editor Toolbar In-Reply-To: References: <0b59dd49-8692-bd5c-745a-bb035bfb702f@geldenhuys.co.uk> <20160921133208.46b7eaac@limapholos.matflo.wg> <8e23f66a-7a7e-f3a9-2045-fa6504badfd3@kluug.net> Message-ID: <4e266245-15d5-08ba-39be-de7648d54477@kluug.net> On 21.09.2016 19:22, Graeme Geldenhuys wrote: > On 2016-09-21 12:44, Ondrej Pokorny wrote: >> As far as I see from Graeme's >> screenshots the toolbar is there and works but is empty. > Correct, I could right-click on the empty Editor Toolbar and select > "Configure". It worked, but I didn't want to do that in case it > overwrote my existing Editor Toolbar configuration which I knew existed > in environmentoptions.xml. Well see your original message: On 20.09.2016 21:23, Graeme Geldenhuys wrote: > Is it a known issue, or by design, that the Editor Toolbar doesn't > appear when the Anchor Docking packages is installed? Nevertheless let's discuss the necessarity of this particular Desktops feature in the "Desktops - some features overengineered (?)" thread. Ondrej From mailinglists at geldenhuys.co.uk Wed Sep 21 15:05:11 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Wed, 21 Sep 2016 14:05:11 +0100 Subject: [Lazarus] Desktops - some features overengineered (?) In-Reply-To: References: Message-ID: <56f7fffd-3a10-d2be-f2bc-7684cdf1b61b@geldenhuys.co.uk> On 2016-09-21 13:46, Ondrej Pokorny wrote: > I personally use 4 different destops (external monitor vs laptop monitor > AND editing vs debuging - which makes 4 combinations). I use different > IDE coolbar settings for edit and debug desktop. Nice idea - now all I need to do is figure out how VirtualBox guests could take advantage of my multi-monitor host system. I've just set up a "debugging" desktop, which will come in pretty handy. As for over-engineering. True, I did get confused, but then I didn't even know Lazarus IDE had multiple desktop layout support. If I knew that, then things would probably have made a bit more sense. 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 getmem1 at gmail.com Wed Sep 21 18:48:28 2016 From: getmem1 at gmail.com (=?UTF-8?Q?Bal=C3=A1zs_Sz=C3=A9kely?=) Date: Wed, 21 Sep 2016 09:48:28 -0700 (MST) Subject: [Lazarus] Desktops - some features overengineered (?) In-Reply-To: References: Message-ID: <1474476508459-4049596.post@n3.nabble.com> >>Does anybody take advantage of the fact that these settings are different for every desktop? Yes. >>Or did I overengineer the feature? No. >>For me it looks like the users are only confused. What is confusing the Restore Windows Geometry feature(Options-->Environment-->Window). Which one is gonna have the upper hand? More over, when you install anchordocking the "Default Desktop" is unusable. Other then this is a nice feature. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Desktops-some-features-overengineered-tp4049593p4049596.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. From noreply at z505.com Thu Sep 22 06:58:29 2016 From: noreply at z505.com (Lars) Date: Wed, 21 Sep 2016 22:58:29 -0600 Subject: [Lazarus] Accesing components in FormCreate event Message-ID: <8f657386ed33401cab90983664e0e7ae.squirrel@gator3286.hostgator.com> I'm trying to remember if setting up some values of components is okay to do in the form create event. From what I remember in Delphi days of programming years ago, I think I found out the hard way that setting up components in the FormCreate event was a bad idea, and I had to resort to tricks like doing it in the FormShow event instead, using a counter to only do it on the first show. Do I recall correctly? Is it bad practice to set up some components on the form in the formcreate event, because of timing and issues with the components not all being set up in time? I recall, but cannot be sure, that in Delphi this led to issues and bugs where if you accessed components on the form in the formcreate event, it was too soon for some components as they had not initialized yet. I can't remember for sure though, and Lazarus may be different. If any of you know, as this is definitely a been there done that experience thing... it may have bitten someone else. The problem is it's been a while since I was bitten by a bug similiar to this so I cannot remember. Even putting the code in the formshow event, I am not certain solves all problems, using a counter and on first show only. It may have also been just a bug with certain components, but not others, and it may have been an intermittent bug. This, if not already written about, would be a good article for the wiki or somewhere "best practices" when creating a form or changing components at run time. From michael at freepascal.org Thu Sep 22 07:36:45 2016 From: michael at freepascal.org (Michael Van Canneyt) Date: Thu, 22 Sep 2016 07:36:45 +0200 (CEST) Subject: [Lazarus] Accesing components in FormCreate event In-Reply-To: <8f657386ed33401cab90983664e0e7ae.squirrel@gator3286.hostgator.com> References: <8f657386ed33401cab90983664e0e7ae.squirrel@gator3286.hostgator.com> Message-ID: On Wed, 21 Sep 2016, Lars wrote: > I'm trying to remember if setting up some values of components is okay to > do in the form create event. From what I remember in Delphi days of > programming years ago, I think I found out the hard way that setting up > components in the FormCreate event was a bad idea, and I had to resort to > tricks like doing it in the FormShow event instead, using a counter to > only do it on the first show. > > Do I recall correctly? Is it bad practice to set up some components on the > form in the formcreate event, because of timing and issues with the > components not all being set up in time? I recall, but cannot be sure, > that in Delphi this led to issues and bugs where if you accessed > components on the form in the formcreate event, it was too soon for some > components as they had not initialized yet. I can't remember for sure > though, and Lazarus may be different. No, formcreate is the correct event to set up new components. OnShow may be called multiple times in the lifetime of a form. Michael. From noreply at z505.com Thu Sep 22 08:14:17 2016 From: noreply at z505.com (Lars) Date: Thu, 22 Sep 2016 00:14:17 -0600 Subject: [Lazarus] Launching External Tool Cmd.exe in Windows Message-ID: <2dba84d7e4db49e4569493ba6bc2f219.squirrel@gator3286.hostgator.com> Hi, Lazarus has the nice feature of being able to launch an external tool. I'm trying to launch a console app... So I put C:\Windows\System32\cmd.exe in the program file name for the external tool. This does nothing and gives no error message. Also add the parameter /k and it still does nothing. Any idea how to get lazarus to launch a simple cmd.exe instance as an external tool? Should this be filed as a bug if it doesn't work? Other things I will try... COMSPEC... but still cmd.exe should work, no? From noreply at z505.com Thu Sep 22 08:31:29 2016 From: noreply at z505.com (Lars) Date: Thu, 22 Sep 2016 00:31:29 -0600 Subject: [Lazarus] Accessing components in FormCreate event Message-ID: <0f9a5e60eb3bf5474c4340514d67c33e.squirrel@gator3286.hostgator.com> > No, formcreate is the correct event to set up new components. > OnShow may be called multiple times in the lifetime of a form. > > Michael. In OnShow I use a counter to only do the change on the first show. I've even made a FirstShow event years ago. I trust what you say since you are very experienced in Delphi and Lazarus, however I could swear that I have been bitten by a bug before where not all the components on the form are necessarily initialized in FormCreate. i.e. I could swear that some components, aren't guaranteed to be fully ready, just because a form is created.... Does the form create guarantee the componenents are all ready for modification and initialized, because I could absolutely swear that this has haunted me before where the form itself is ready and created, but that didn't guarantee the children of the form were all ready... So a solution, was to put a counter in FormShow (local const var or whatever you call those strange things that persist like a global, but are still local) and access the components on the first show only. If I could just find one other person that has been haunted by accessing components in formcreate, then I'd confirm I am not imagining things and my memory is solid. However, you've been programming far longer so... I am wanting to trust what you say! From noreply at z505.com Thu Sep 22 08:47:39 2016 From: noreply at z505.com (Lars) Date: Thu, 22 Sep 2016 00:47:39 -0600 Subject: [Lazarus] Accessing components in FormCreate event In-Reply-To: <0f9a5e60eb3bf5474c4340514d67c33e.squirrel@gator3286.hostgator.com> References: <0f9a5e60eb3bf5474c4340514d67c33e.squirrel@gator3286.hostgator.com> Message-ID: On Thu, September 22, 2016 12:31 am, I previously wrote: > If I could just find one other person that has been haunted by accessing > components in formcreate, then I'd confirm I am not imagining things i.e. here are some issues others have come across which may be semi related to problems I have experienced, or not: Quote "However sometimes a few special things can cause problems in FormCreate, usually related to the order window handles are created, and for such special cases FormShow can also be abused for initialization. " -- Jens Grusche, (posted on another delphi list) And this: http://stackoverflow.com/questions/3261653/why-would-something-fail-in-formcreate-but-work-fine-in-formshow However these may be issues with formcreate that are not related to the bugs I have come across. I'm trying to remember what exactly was the problem that I had in FormCreate, but can't remember. I do recall having to create a FirstShow hack to do what I needed to do... I don't like using the FormShow event, even with a counter, since it is called multiple times and FormCreate is only called once. From nc-gaertnma at netcologne.de Thu Sep 22 08:48:09 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 22 Sep 2016 08:48:09 +0200 Subject: [Lazarus] Accesing components in FormCreate event In-Reply-To: References: <8f657386ed33401cab90983664e0e7ae.squirrel@gator3286.hostgator.com> Message-ID: <20160922084809.3b2fc232@limapholos.matflo.wg> On Thu, 22 Sep 2016 07:36:45 +0200 (CEST) Michael Van Canneyt wrote: > On Wed, 21 Sep 2016, Lars wrote: > > > I'm trying to remember if setting up some values of components is okay to > > do in the form create event. From what I remember in Delphi days of > > programming years ago, I think I found out the hard way that setting up > > components in the FormCreate event was a bad idea, and I had to resort to > > tricks like doing it in the FormShow event instead, using a counter to > > only do it on the first show. > > > > Do I recall correctly? Is it bad practice to set up some components on the > > form in the formcreate event, because of timing and issues with the > > components not all being set up in time? I recall, but cannot be sure, > > that in Delphi this led to issues and bugs where if you accessed > > components on the form in the formcreate event, it was too soon for some > > components as they had not initialized yet. I can't remember for sure > > though, and Lazarus may be different. > > No, formcreate is the correct event to set up new components. Yes. Keep in mind that the LCL tries to create the Handle and layout after calling FormCreate. So changing properties do not have immediate effects as in the VCL. For example changing Panel1.Align=alTop will move Panel1 to top after FormCreate. > OnShow may be called multiple times in the lifetime of a form. You can use Form1.AddHandlerFirstShow Mattias From noreply at z505.com Thu Sep 22 08:54:35 2016 From: noreply at z505.com (Lars) Date: Thu, 22 Sep 2016 00:54:35 -0600 Subject: [Lazarus] Accesing components in FormCreate event In-Reply-To: <20160922084809.3b2fc232@limapholos.matflo.wg> References: <8f657386ed33401cab90983664e0e7ae.squirrel@gator3286.hostgator.com> <20160922084809.3b2fc232@limapholos.matflo.wg> Message-ID: <1afcee43ab4cba437ec1bd5e5fb791d7.squirrel@gator3286.hostgator.com> On Thu, September 22, 2016 12:48 am, Mattias Gaertner wrote: >> No, formcreate is the correct event to set up new components. >> > > Yes. Prefer positive attitude of Yes, vs No. Inbetween Qbit state: maybe. > Keep in mind that the LCL tries to create the Handle and layout after > calling FormCreate. So changing properties do not have immediate effects > as in the VCL. For example changing Panel1.Align=alTop will move Panel1 to > top after FormCreate. Maybe these were some of the issues. What if you had three panels, and you set all the alignments up.. then when the form is finally shown it has no idea which alignment you wanted done first? Or does it somehow memorize which alignments were set first. This could be related to the issue I had but cannot remember, for the life of me. From luca at wetron.es Thu Sep 22 09:13:09 2016 From: luca at wetron.es (Luca Olivetti) Date: Thu, 22 Sep 2016 09:13:09 +0200 Subject: [Lazarus] Accessing components in FormCreate event In-Reply-To: References: <0f9a5e60eb3bf5474c4340514d67c33e.squirrel@gator3286.hostgator.com> Message-ID: El 22/09/16 a les 08:47, Lars ha escrit: > > However these may be issues with formcreate that are not related to the > bugs I have come across. I'm trying to remember what exactly was the > problem that I had in FormCreate, but can't remember I don't remember exactly, but the size of the component isn't the final one (depending on align, anchors or autosize, as I said I don't remeber the details) until the FormShow, so if you need them to initialize other components you have to wait. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 From nc-gaertnma at netcologne.de Thu Sep 22 09:17:32 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 22 Sep 2016 09:17:32 +0200 Subject: [Lazarus] Accesing components in FormCreate event In-Reply-To: <1afcee43ab4cba437ec1bd5e5fb791d7.squirrel@gator3286.hostgator.com> References: <8f657386ed33401cab90983664e0e7ae.squirrel@gator3286.hostgator.com> <20160922084809.3b2fc232@limapholos.matflo.wg> <1afcee43ab4cba437ec1bd5e5fb791d7.squirrel@gator3286.hostgator.com> Message-ID: <20160922091732.65c2ad50@limapholos.matflo.wg> On Thu, 22 Sep 2016 00:54:35 -0600 "Lars" wrote: >[...] > Prefer positive attitude of Yes, vs No. Inbetween Qbit state: maybe. I meant 'True'. > > Keep in mind that the LCL tries to create the Handle and layout after > > calling FormCreate. So changing properties do not have immediate effects > > as in the VCL. For example changing Panel1.Align=alTop will move Panel1 to > > top after FormCreate. > > > Maybe these were some of the issues. What if you had three panels, and you > set all the alignments up.. then when the form is finally shown it has no > idea which alignment you wanted done first? Or does it somehow memorize > which alignments were set first. This could be related to the issue I had > but cannot remember, for the life of me. Maybe this helps: http://wiki.lazarus.freepascal.org/Autosize_/_Layout#Order_of_controls_with_same_Align Mattias From shokwave at gmx.net Thu Sep 22 10:38:12 2016 From: shokwave at gmx.net (shoKwave) Date: Thu, 22 Sep 2016 10:38:12 +0200 Subject: [Lazarus] Launching External Tool Cmd.exe in Windows In-Reply-To: <2dba84d7e4db49e4569493ba6bc2f219.squirrel@gator3286.hostgator.com> References: <2dba84d7e4db49e4569493ba6bc2f219.squirrel@gator3286.hostgator.com> Message-ID: <4fbb10bb-df74-a696-50a5-43fa09b9b1c1@gmx.net> Hi, I simply tried putting a TProcess and a TButton on a form and used following code procedure TForm1.Button1Click(Sender: TObject); begin Process1.ApplicationName:='c:\windows\system32\cmd.exe'; Process1.Execute; end; Works for me on a Win10 32bit machine with FPC 3.0.0 and Lazarus 1.6. Ingo Am 22.09.2016 um 08:14 schrieb Lars: > Hi, Lazarus has the nice feature of being able to launch an external tool. > > I'm trying to launch a console app... > > So I put C:\Windows\System32\cmd.exe in the program file name for the > external tool. This does nothing and gives no error message. Also add the > parameter /k and it still does nothing. > > Any idea how to get lazarus to launch a simple cmd.exe instance as an > external tool? Should this be filed as a bug if it doesn't work? > > Other things I will try... COMSPEC... but still cmd.exe should work, no? > > From el.es.cr at gmail.com Thu Sep 22 10:50:06 2016 From: el.es.cr at gmail.com (Lukasz Sokol) Date: Thu, 22 Sep 2016 09:50:06 +0100 Subject: [Lazarus] Accessing components in FormCreate event In-Reply-To: References: <0f9a5e60eb3bf5474c4340514d67c33e.squirrel@gator3286.hostgator.com> Message-ID: On 22/09/16 08:13, Luca Olivetti wrote: > El 22/09/16 a les 08:47, Lars ha escrit: > >> >> However these may be issues with formcreate that are not related to >> the bugs I have come across. I'm trying to remember what exactly >> was the problem that I had in FormCreate, but can't remember > > > I don't remember exactly, but the size of the component isn't the > final one (depending on align, anchors or autosize, as I said I don't > remeber the details) until the FormShow, so if you need them to > initialize other components you have to wait. > > Bye >From what I remember (on Turbo Delphi, but this is generally true I think) anything that causes the form to redraw, (as it's been indicated in responses here too - resizing, aligning, changing colours etc) is a really bad idea, because there may not be anything to answer the OnPaint events yet while FormCreate is being serviced. (Speculation because I haven't dived that deep: the visual component hierarchy on the form is kept in a tree-like structure, that is being walked top-down by a single thread, and so other components' OnCreate is called AFTER their parent is created, and not necessarily in order of appearance (in order of being placed on form, presumably?) Whereas in On(First)Show of the main form you can assume the entire tree exists and has sizes and positions calculated at least once) Hope it's not overly far from truth ;) -L. From nc-gaertnma at netcologne.de Thu Sep 22 11:07:04 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 22 Sep 2016 11:07:04 +0200 Subject: [Lazarus] Accessing components in FormCreate event In-Reply-To: References: <0f9a5e60eb3bf5474c4340514d67c33e.squirrel@gator3286.hostgator.com> Message-ID: <20160922110704.247d57bf@limapholos.matflo.wg> On Thu, 22 Sep 2016 09:50:06 +0100 Lukasz Sokol wrote: >[...] > From what I remember (on Turbo Delphi, but this is generally true I think) > anything that causes the form to redraw, > (as it's been indicated in responses here too - resizing, aligning, changing colours etc) > is a really bad idea, because there may not be anything to answer the OnPaint events yet > while FormCreate is being serviced. There is no OnPaint during OnCreate. > (Speculation because I haven't dived that deep: the visual component hierarchy on the form > is kept in a tree-like structure, that is being walked top-down by a single thread, > and so other components' OnCreate is called AFTER their parent is created, and not necessarily > in order of appearance (in order of being placed on form, presumably?) The order of dropping the components on the form defines the creation order. >[...] Mattias From nc-gaertnma at netcologne.de Thu Sep 22 11:08:17 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 22 Sep 2016 11:08:17 +0200 Subject: [Lazarus] Launching External Tool Cmd.exe in Windows In-Reply-To: <2dba84d7e4db49e4569493ba6bc2f219.squirrel@gator3286.hostgator.com> References: <2dba84d7e4db49e4569493ba6bc2f219.squirrel@gator3286.hostgator.com> Message-ID: <20160922110817.5b98b126@limapholos.matflo.wg> On Thu, 22 Sep 2016 00:14:17 -0600 "Lars" wrote: > Hi, Lazarus has the nice feature of being able to launch an external tool. > > I'm trying to launch a console app... > > So I put C:\Windows\System32\cmd.exe in the program file name for the > external tool. This does nothing and gives no error message. Also add the > parameter /k and it still does nothing. > > Any idea how to get lazarus to launch a simple cmd.exe instance as an > external tool? Should this be filed as a bug if it doesn't work? > > Other things I will try... COMSPEC... but still cmd.exe should work, no? I added two options "Show console" and "Hide window". Enable Show console and disable Hide window and cmd.exe will be shown in a console window. Mattias From leledumbo_cool at yahoo.co.id Thu Sep 22 11:45:13 2016 From: leledumbo_cool at yahoo.co.id (leledumbo) Date: Thu, 22 Sep 2016 02:45:13 -0700 (MST) Subject: [Lazarus] Desktops - some features overengineered (?) In-Reply-To: References: Message-ID: <1474537513266-4049610.post@n3.nabble.com> > Does anybody take advantage of the fact that these settings are different for every desktop? Yes > Or did I overengineer the feature? No > For me it looks like the users are only confused (like Graeme in the "IDE > Docking windows and Editor Toolbar" thread) they just need explanation, this feature is surprising for those who aren't quite involved in the development. One wouldn't expect it at first glance. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Desktops-some-features-overengineered-tp4049593p4049610.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. From dezlov at gmail.com Thu Sep 22 22:30:51 2016 From: dezlov at gmail.com (Denis Kozlov) Date: Thu, 22 Sep 2016 21:30:51 +0100 Subject: [Lazarus] Conditional code based on Lazarus/LCL version Message-ID: Hi, Is there something like FPC_VERSION define but for Lazarus or LCL, e.g. LAZARUS_VERSION? I need a way of programmatically determining which version of Lazarus or LCL is/was used to compile the program, preferably at compile time, but at run time could also be useful. P.S. Most of mailing list emails still don't arrive to gmail account, I'll keep monitoring list archive. Thanks, Denis From nc-gaertnma at netcologne.de Thu Sep 22 23:02:21 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 22 Sep 2016 23:02:21 +0200 Subject: [Lazarus] Conditional code based on Lazarus/LCL version In-Reply-To: References: Message-ID: <20160922230221.45734f22@limapholos.matflo.wg> On Thu, 22 Sep 2016 21:30:51 +0100 Denis Kozlov wrote: > Hi, > > Is there something like FPC_VERSION define but for Lazarus or LCL, e.g. > LAZARUS_VERSION? See unit lclversion. Mattias From noreply at z505.com Thu Sep 22 23:13:11 2016 From: noreply at z505.com (Lars) Date: Thu, 22 Sep 2016 15:13:11 -0600 Subject: [Lazarus] Launching External Tool Cmd.exe in Windows In-Reply-To: <4fbb10bb-df74-a696-50a5-43fa09b9b1c1@gmx.net> References: <2dba84d7e4db49e4569493ba6bc2f219.squirrel@gator3286.hostgator.com> <4fbb10bb-df74-a696-50a5-43fa09b9b1c1@gmx.net> Message-ID: <699965efc89fea01ce5871da0464e455.squirrel@gator3286.hostgator.com> On Thu, September 22, 2016 2:38 am, shoKwave wrote: > Hi, > > > I simply tried putting a TProcess and a TButton on a form and used > following code > > procedure TForm1.Button1Click(Sender: TObject); begin > Process1.ApplicationName:='c:\windows\system32\cmd.exe'; > Process1.Execute; > end; > > Works for me on a Win10 32bit machine with FPC 3.0.0 and Lazarus 1.6. > To clarify I meant the external tools in the IDE that allow you to launch a tool from the IDE tools menu... i.e. not actual lazarus coding, but a tool to launch from the IDE. Most text editors have this feature, lazarus has really good access to lots of macros that fill in values. For some reason cmd.exe /k doesn't launch the command line from lazarus external tools in the menu. /k option keeps the command line window open From noreply at z505.com Thu Sep 22 23:14:21 2016 From: noreply at z505.com (Lars) Date: Thu, 22 Sep 2016 15:14:21 -0600 Subject: [Lazarus] Launching External Tool Cmd.exe in Windows In-Reply-To: <20160922110817.5b98b126@limapholos.matflo.wg> References: <2dba84d7e4db49e4569493ba6bc2f219.squirrel@gator3286.hostgator.com> <20160922110817.5b98b126@limapholos.matflo.wg> Message-ID: On Thu, September 22, 2016 3:08 am, Mattias Gaertner wrote: > > I added two options "Show console" and "Hide window". Enable Show > console and disable Hide window and cmd.exe will be shown in a console > window. > > Mattias Oh, when did you add this, long ago or just recent... which release... or is it only on the latest github/svn. Thanks, I did not see this option From dezlov at gmail.com Thu Sep 22 23:25:23 2016 From: dezlov at gmail.com (Denis Kozlov) Date: Thu, 22 Sep 2016 22:25:23 +0100 Subject: [Lazarus] Conditional code based on Lazarus/LCL version In-Reply-To: <20160922230221.45734f22@limapholos.matflo.wg> References: <20160922230221.45734f22@limapholos.matflo.wg> Message-ID: On 22/09/2016 22:02, Mattias Gaertner wrote: > See unit lclversion. Thanks! Somehow I just couldn't find it. Is it theoretically possible to implement a compile time define for Lazarus version? Perhaps an extra define that Lazarus passes to compiler automatically? Thanks, Denis From nc-gaertnma at netcologne.de Thu Sep 22 23:45:06 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 22 Sep 2016 23:45:06 +0200 Subject: [Lazarus] Launching External Tool Cmd.exe in Windows In-Reply-To: References: <2dba84d7e4db49e4569493ba6bc2f219.squirrel@gator3286.hostgator.com> <20160922110817.5b98b126@limapholos.matflo.wg> Message-ID: <20160922234506.490cd882@limapholos.matflo.wg> On Thu, 22 Sep 2016 15:14:21 -0600 "Lars" wrote: > On Thu, September 22, 2016 3:08 am, Mattias Gaertner wrote: > > > > I added two options "Show console" and "Hide window". Enable Show > > console and disable Hide window and cmd.exe will be shown in a console > > window. > > > > Mattias > > > Oh, when did you add this, long ago or just recent... which release... or > is it only on the latest github/svn. Thanks, I did not see this option Just recently, as in today. Mattias From nc-gaertnma at netcologne.de Thu Sep 22 23:48:18 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 22 Sep 2016 23:48:18 +0200 Subject: [Lazarus] Conditional code based on Lazarus/LCL version In-Reply-To: References: <20160922230221.45734f22@limapholos.matflo.wg> Message-ID: <20160922234818.621ef624@limapholos.matflo.wg> On Thu, 22 Sep 2016 22:25:23 +0100 Denis Kozlov wrote: > On 22/09/2016 22:02, Mattias Gaertner wrote: > > See unit lclversion. > > Thanks! Somehow I just couldn't find it. > > Is it theoretically possible to implement a compile time define for > Lazarus version? You can use it at compile time: uses lclversion; {$IF lcl_minor=7} ... It is just that codetools do not support such constants. The compiler does. Mattias From noreply at z505.com Fri Sep 23 02:22:03 2016 From: noreply at z505.com (Lars) Date: Thu, 22 Sep 2016 18:22:03 -0600 Subject: [Lazarus] Launching External Tool Cmd.exe in Windows In-Reply-To: <20160922234506.490cd882@limapholos.matflo.wg> References: <2dba84d7e4db49e4569493ba6bc2f219.squirrel@gator3286.hostgator.com> <20160922110817.5b98b126@limapholos.matflo.wg> <20160922234506.490cd882@limapholos.matflo.wg> Message-ID: <148747c414abe91918b3d930c0b87ed6.squirrel@gator3286.hostgator.com> On Thu, September 22, 2016 3:45 pm, Mattias Gaertner wrote: >> Oh, when did you add this, long ago or just recent... which release... >> or is it only on the latest github/svn. Thanks, I did not see this >> option > > Just recently, as in today. > > > Mattias Any idea what workarounds people used before? Surely someone used cmd.exe before as an external tool in an older version. I tend to not use the latest version from source control. But I can, if I have to! From noreply at z505.com Fri Sep 23 02:46:49 2016 From: noreply at z505.com (Lars) Date: Thu, 22 Sep 2016 18:46:49 -0600 Subject: [Lazarus] Run Parameters Dialog Message-ID: Hi in the Run Parameters dialog, it appears as though $macros such as $TargetFile() or the current project directory, etc., don't get expanded.... Is this by design? Would be nice if they were expanded just as in the External Tools. If no one has interest in it now but would find it useful I could work on a patch. Or if by design it is intended to not be that way for some reason let me know. Once again I am trying to launch my app using cmd /k , so that a command line stays open , and can't find a way to do this with the run parameters window unless I manually type in project1.exe instead of $TargetFile() From noreply at z505.com Fri Sep 23 02:50:11 2016 From: noreply at z505.com (Lars) Date: Thu, 22 Sep 2016 18:50:11 -0600 Subject: [Lazarus] Conditional code based on Lazarus/LCL version In-Reply-To: References: Message-ID: On Thu, September 22, 2016 2:30 pm, Denis Kozlov wrote: > Hi, ... > P.S. Most of mailing list emails still don't arrive to gmail account, > I'll keep monitoring list archive. Are you sure they are not hidden in some tab, like social, or such. I don't use Gmail much, just as dummy accounts sometimes, but when I did use it I found a lot of my mail obnoxiously disappeared into hidden tabs like social or whatever that tab is called... so the emails do not appear in your main view but you have to find them. And obviously, you've checked Junk folders... From nc-gaertnma at netcologne.de Fri Sep 23 08:19:10 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Fri, 23 Sep 2016 08:19:10 +0200 Subject: [Lazarus] Run Parameters Dialog In-Reply-To: References: Message-ID: <20160923081910.4467e530@limapholos.matflo.wg> On Thu, 22 Sep 2016 18:46:49 -0600 "Lars" wrote: > Hi in the Run Parameters dialog, it appears as though $macros such as > $TargetFile() or the current project directory, etc., don't get > expanded.... Please create a bug report. Mattias From mailinglists at geldenhuys.co.uk Fri Sep 23 12:10:13 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Fri, 23 Sep 2016 11:10:13 +0100 Subject: [Lazarus] LCL-GTK2 warning about TScrollBox Message-ID: <794da3ad-3f61-934c-83c9-751207af3209@geldenhuys.co.uk> Hi, I'm using a TScrollBox in a LCL-GTK2 application. When I run the application from a console window, I see the following warning appear multiple times. WARNING: TGtk2WidgetSet.InvalidateRect refused invalidating during paint message: TScrollBox Is this something I need to be concerned about? The program seems to behave just fine though. 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 lacak at zoznam.sk Fri Sep 23 14:26:20 2016 From: lacak at zoznam.sk (LacaK) Date: Fri, 23 Sep 2016 14:26:20 +0200 Subject: [Lazarus] TImage shows loaded image rotated by 90? Message-ID: <94fa589a-73e5-4471-52d6-deb25aba3358@zoznam.sk> Hi, I have JPEG image with width=2448 and height=3264. All programs in Windows show image with respect to his dimensions, so shorter is X and higher is Y. But when I load this image into TImage control (using Picture property) image is shown rotated by 90 degrees, with width=3264 and height=2448 Original image is on http://moja.uschovna.zoznam.sk/link/c13c4eb8-c035-4879-879e-de04f8e9c13c All what is needed for reproducing is put TImage on TForm and load picture ... Why this happens ? TIA -Laco. From zeljko at holobit.net Fri Sep 23 14:45:28 2016 From: zeljko at holobit.net (zeljko) Date: Fri, 23 Sep 2016 14:45:28 +0200 Subject: [Lazarus] Qt native event loop Message-ID: <4eda014d-2a18-0372-b050-d56f5eaa65f8@holobit.net> Hi all, As of lazarus trunk revision r53021 Qt widgetset have ability to use it's own event loop. Reasons: Qt Cocoa does not work well with LCL loop due to cocoa implementation, but others work well too. So if anyone can test and send some feedback about difference between LCL loop and native event loop under Qt widgetset (linux,win32,mac) pls let me know. In qt5 widgetset default will be native event loop. How to use Qt native event loop ? in qtdefines.inc uncomment {.$DEFINE QtUseNativeEventLoop} -> {$DEFINE QtUseNativeEventLoop} Thanks zeljko From marc at dommelstein.nl Fri Sep 23 14:47:41 2016 From: marc at dommelstein.nl (Marc Weustink) Date: Fri, 23 Sep 2016 14:47:41 +0200 Subject: [Lazarus] TImage shows loaded image rotated by 90? In-Reply-To: <94fa589a-73e5-4471-52d6-deb25aba3358@zoznam.sk> References: <94fa589a-73e5-4471-52d6-deb25aba3358@zoznam.sk> Message-ID: LacaK wrote: > Hi, > > I have JPEG image with width=2448 and height=3264. No > All programs in Windows show image with respect to his dimensions, so > shorter is X and higher is Y. > > But when I load this image into TImage control (using Picture property) > image is shown rotated by 90 degrees, with width=3264 and height=2448 That is correct. If you look at the exif info, you read: Filename - 6.jpg ... ImageWidth - 3264 ImageLength - 2448 ... ExifImageWidth - 3264 ExifImageHeight - 2448 ... Orientation - Right top What you see is the result of "smart" image viewers, which read the exif info and read that you held the camera sideways and there fore rotate the image. the image istself is still 3264x2448 Marc From lacak at zoznam.sk Fri Sep 23 15:01:10 2016 From: lacak at zoznam.sk (LacaK) Date: Fri, 23 Sep 2016 15:01:10 +0200 Subject: [Lazarus] TImage shows loaded image rotated by 90? In-Reply-To: References: <94fa589a-73e5-4471-52d6-deb25aba3358@zoznam.sk> Message-ID: Dňa 23.9.2016 o 14:47 Marc Weustink napísal(a): > LacaK wrote: >> Hi, >> >> I have JPEG image with width=2448 and height=3264. > > No > >> All programs in Windows show image with respect to his dimensions, so >> shorter is X and higher is Y. >> >> But when I load this image into TImage control (using Picture property) >> image is shown rotated by 90 degrees, with width=3264 and height=2448 > > That is correct. If you look at the exif info, you read: How do you read this Exif info ? When I right click image and look at Details tab I see there only width=2448 and height=3264 But when I use on-line exif viewer (at http://regex.info/exif.cgi) there are swaped results and: OrientationRotate = 90 CW So it seems, that you are right ;-) Next question then is: how can I detect this in Lazarus and do same as "smart viewers" do ? (in other words: is there and component, which allows me read this EXIF information from JPEG image ?) Thanks -Laco. > > Filename - 6.jpg > ... > ImageWidth - 3264 > ImageLength - 2448 > ... > ExifImageWidth - 3264 > ExifImageHeight - 2448 > ... > Orientation - Right top > > What you see is the result of "smart" image viewers, which read the > exif info and read that you held the camera sideways and there fore > rotate the image. > the image istself is still 3264x2448 > > > Marc > > From marc at dommelstein.nl Fri Sep 23 15:46:11 2016 From: marc at dommelstein.nl (Marc Weustink) Date: Fri, 23 Sep 2016 15:46:11 +0200 Subject: [Lazarus] TImage shows loaded image rotated by 90? In-Reply-To: References: <94fa589a-73e5-4471-52d6-deb25aba3358@zoznam.sk> Message-ID: <5182614d-ae7d-8712-f08b-b733583df55e@dommelstein.nl> LacaK wrote: > Dňa 23.9.2016 o 14:47 Marc Weustink napísal(a): >> LacaK wrote: >>> Hi, >>> >>> I have JPEG image with width=2448 and height=3264. >> >> No >> >>> All programs in Windows show image with respect to his dimensions, so >>> shorter is X and higher is Y. >>> >>> But when I load this image into TImage control (using Picture property) >>> image is shown rotated by 90 degrees, with width=3264 and height=2448 >> >> That is correct. If you look at the exif info, you read: > > How do you read this Exif info ? with a decent viewer ;) (in windows I use irfanview) > When I right click image and look at Details tab I see there only > width=2448 and height=3264 I see too > But when I use on-line exif viewer (at http://regex.info/exif.cgi) there > are swaped results and: > OrientationRotate = 90 CW > > So it seems, that you are right ;-) > > Next question then is: how can I detect this in Lazarus and do same as > "smart viewers" do ? > (in other words: is there and component, which allows me read this EXIF > information from JPEG image ?) Google ? Exif + Delphi -> torry.net -> NativeJpg v.1.33 or TExif v.1.3 or TGJPGCommentInfoP v.1.0 (looking for sources supporting D7) you may try that. Marc From shokwave at gmx.net Fri Sep 23 15:49:25 2016 From: shokwave at gmx.net (shoKwave) Date: Fri, 23 Sep 2016 15:49:25 +0200 Subject: [Lazarus] Launching External Tool Cmd.exe in Windows In-Reply-To: <699965efc89fea01ce5871da0464e455.squirrel@gator3286.hostgator.com> References: <2dba84d7e4db49e4569493ba6bc2f219.squirrel@gator3286.hostgator.com> <4fbb10bb-df74-a696-50a5-43fa09b9b1c1@gmx.net> <699965efc89fea01ce5871da0464e455.squirrel@gator3286.hostgator.com> Message-ID: <03e33c1b-ea43-bb0d-2c74-2b1e4abe6b62@gmx.net> Am 22.09.2016 um 23:13 schrieb Lars: > > To clarify I meant the external tools in the IDE that allow you to launch > a tool from the IDE tools menu... > i.e. not actual lazarus coding, but a tool to launch from the IDE. Most > text editors have this feature, lazarus has really good access to lots of > macros that fill in values. I'm sorry, I totally misread your mail. As a workaround (Mathias already fixed it in trunk) you could use a simple program to start the program you actually want to run. I attached an example (runner.lpi). It just starts the program given in the 1st parameter with all following parameters. The picture shows how I used it to run the time command inside the cmd.exe. Hope this helps you. Ingo -------------- next part -------------- A non-text attachment was scrubbed... Name: lazarus.PNG Type: image/png Size: 9185 bytes Desc: not available URL: -------------- next part -------------- program runner; uses SysUtils, Process; var AProc: TProcess; i: Integer; begin //Any Parameters at all? if ParamCount > 0 then begin //Create the Process AProc:= TProcess.Create(NIL); //First parameter is the program to run AProc.Executable := ParamStr(1); //Add Parameters if ParamCount > 1 then begin for i := 2 to ParamCount do begin AProc.Parameters.Add(ParamStr(i)); end; end; //Run and free the Process try AProc.Execute; finally AProc.Free; end; end; end. From m-w-vogel at gmx.de Fri Sep 23 23:38:49 2016 From: m-w-vogel at gmx.de (Michael W. Vogel) Date: Fri, 23 Sep 2016 23:38:49 +0200 Subject: [Lazarus] Option to deactivate always open Menu Editor Message-ID: <42a3f9c6-c609-ef03-483b-2c7b5990d096@gmx.de> Hi, I like the new Menu Editor in Lazarus 1.7 Trunk, it is much better than in Lazarus 1.6! There is one thing, which I liked more in 1.6 than in 1.7. In 1.6, I could create some MenuItems, close the Menu Editor. Then, in Object Inspector, I rename the MenuItems and gave them some Actions. In 1.7, always when I select a MenuItem in Object Inspector, the Menu Editor is opened. Is there a option to deactivate it? Thank you Kind regards Michl From marc at dommelstein.nl Sat Sep 24 14:57:29 2016 From: marc at dommelstein.nl (Marc Weustink) Date: Sat, 24 Sep 2016 14:57:29 +0200 Subject: [Lazarus] Mailinglist issues Message-ID: <62c3afce-89c7-2acb-877a-2c6b8d9daa25@dommelstein.nl> Hi all, As you might have noticed, there have been troubles with receiving mail from the lazarus list by gmail, yahoo and other subscribers. It is not a real change of policy, but mere a result of more and more subscribers using mail servers which sign (DKIM) and validate (DMARC) mail. As a result those messages bounce and the receiving subscriber might get unsubscribed. To improve our mailinglist, I've added DKIM support to our mailserver. To fully support it, the from header needs to be munged. So as a result, when you receive mailinglist mail, you don't receive it from "Marc Weustink ", but from "Marc Weustink via LazTest " This is in effect for all lists served by lists.lazarus-ide.org Thanks, Marc From andrewd207 at aol.com Sat Sep 24 15:06:28 2016 From: andrewd207 at aol.com (Andrew Haines) Date: Sat, 24 Sep 2016 09:06:28 -0400 Subject: [Lazarus] Mailinglist issues In-Reply-To: <62c3afce-89c7-2acb-877a-2c6b8d9daa25@dommelstein.nl> References: <62c3afce-89c7-2acb-877a-2c6b8d9daa25@dommelstein.nl> Message-ID: <25c06591-3b82-0020-ee63-c3c74f1efeda@aol.com> On 09/24/2016 08:57 AM, Marc Weustink via Lazarus wrote: > Hi all, > > As you might have noticed, there have been troubles with receiving > mail from the lazarus list by gmail, yahoo and other subscribers. > It is not a real change of policy, but mere a result of more and more > subscribers using mail servers which sign (DKIM) and validate (DMARC) > mail. As a result those messages bounce and the receiving subscriber > might get unsubscribed. > > To improve our mailinglist, I've added DKIM support to our mailserver. > To fully support it, the from header needs to be munged. So as a > result, when you receive mailinglist mail, you don't receive it from > "Marc Weustink ", but from "Marc Weustink via LazTest > " > > This is in effect for all lists served by lists.lazarus-ide.org > > Thanks, > Marc > > Great thanks for fixing this! Now lets see if I get a copy of my email back. Regards, Andrew Haines From doug at moosemail.net Sat Sep 24 16:11:18 2016 From: doug at moosemail.net (DougC) Date: Sat, 24 Sep 2016 10:11:18 -0400 Subject: [Lazarus] Mailinglist issues In-Reply-To: <25c06591-3b82-0020-ee63-c3c74f1efeda@aol.com> References: <62c3afce-89c7-2acb-877a-2c6b8d9daa25@dommelstein.nl> <25c06591-3b82-0020-ee63-c3c74f1efeda@aol.com> Message-ID: <1575c893520.1208e8f8356247.4362923526948134128@moosemail.net> If you are sending from a gmail account do not expect to see your emails sent back to you. Gmail actively works to suppress this regardless of how the mailing list server works. ---- On Sat, 24 Sep 2016 09:06:28 -0400Andrew Haines via Lazarus <lazarus at lists.lazarus-ide.org> wrote ---- Now lets see if I get a copy of my email back. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mailinglists at geldenhuys.co.uk Sat Sep 24 17:14:21 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Sat, 24 Sep 2016 16:14:21 +0100 Subject: [Lazarus] Mailinglist issues In-Reply-To: <25c06591-3b82-0020-ee63-c3c74f1efeda@aol.com> References: <62c3afce-89c7-2acb-877a-2c6b8d9daa25@dommelstein.nl> <25c06591-3b82-0020-ee63-c3c74f1efeda@aol.com> Message-ID: <5ec96448-ad3a-c16a-9e6e-01bf821a871f@geldenhuys.co.uk> On 2016-09-24 14:06, Andrew Haines via Lazarus wrote: > Now lets see if I get a copy of my email back. I can confirm that I received your message via the mailing list Andrew. 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 m.e.sanliturk at gmail.com Sat Sep 24 18:07:54 2016 From: m.e.sanliturk at gmail.com (Mehmet Erol Sanliturk) Date: Sat, 24 Sep 2016 09:07:54 -0700 Subject: [Lazarus] Mailinglist issues In-Reply-To: <5ec96448-ad3a-c16a-9e6e-01bf821a871f@geldenhuys.co.uk> References: <62c3afce-89c7-2acb-877a-2c6b8d9daa25@dommelstein.nl> <25c06591-3b82-0020-ee63-c3c74f1efeda@aol.com> <5ec96448-ad3a-c16a-9e6e-01bf821a871f@geldenhuys.co.uk> Message-ID: On Sat, Sep 24, 2016 at 8:14 AM, Graeme Geldenhuys via Lazarus < lazarus at lists.lazarus-ide.org> wrote: > On 2016-09-24 14:06, Andrew Haines via Lazarus wrote: > > Now lets see if I get a copy of my email back. > > I can confirm that I received your message via the mailing list Andrew. > > 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 > Dears All , We are receiving mails with the following trailing lines : _______________________________________________ Lazarus mailing list Lazarus at lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus When we send a message , it is received by Lazarus mailing list and it is propagated to subscribers . I do not know whether it is difficult or not , but my suggestion/wish is that before sending the message to the subscribers , its registered link in Lazarus mailing list web site be appended as last into the message such as _______________________________________________ Lazarus mailing list Lazarus at lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus http://lists.lazarus-ide.org/pipermail/lazarus/2016-September/229585.html This will allow to read messages in that thread in succession through that link , it will not be necessary to include content of long messages again because its link easily may be specified , when message is quoted in another message , whole of its thread will be accessible through that link , or any other uses not conceivable here with only disadvantage to modify mail propagation , let's say , software . Thank you very much . Mehmet Erol Sanliturk -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Sat Sep 24 20:09:24 2016 From: michael at freepascal.org (Michael Van Canneyt) Date: Sat, 24 Sep 2016 20:09:24 +0200 (CEST) Subject: [Lazarus] Scrollbars on form ? Message-ID: Hi, How is one supposed to get the scrollbars on a form to work ? I have a form, with a custom control on it which is bigger than the form. I would expect the scrollbars to appear if AutoSize is false, and both scrollbars have visible set to true. However, no matter what the combinations of properties I set, the scrollbars on the form do not appear. Is there some trick to this ? Michael. From skalogryz.lists at gmail.com Sat Sep 24 21:34:06 2016 From: skalogryz.lists at gmail.com (Dmitry Boyarintsev) Date: Sat, 24 Sep 2016 15:34:06 -0400 Subject: [Lazarus] Scrollbars on form ? In-Reply-To: References: Message-ID: Did you set AutoScroll to true? thanks, dmitry On Sat, Sep 24, 2016 at 2:09 PM, Michael Van Canneyt via Lazarus < lazarus at lists.lazarus-ide.org> wrote: > > Hi, > > How is one supposed to get the scrollbars on a form to work ? > I have a form, with a custom control on it which is bigger than the form. > I would expect the scrollbars to appear if AutoSize is false, and both > scrollbars have visible set to true. > > However, no matter what the combinations of properties I set, the > scrollbars > on the form do not appear. > > Is there some trick to this ? > > 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 kellingc at cox.net Sat Sep 24 21:50:14 2016 From: kellingc at cox.net (Chris Kelling) Date: Sat, 24 Sep 2016 19:50:14 +0000 (GMT) Subject: [Lazarus] warning on compile Message-ID: <4d7b79.216e1.1575dbf8236.Webtop.0@cox.net> On a new project, and I keep getting this warning: tubes.lpr(20,1) Warning: "crtbeginS.o" not found, this will probably cause a linking failure Linking doesn't; actually fail, and the compile completes. Any clue what library and were it needs to go to clear this warning? -Chris From michael at freepascal.org Sun Sep 25 00:06:12 2016 From: michael at freepascal.org (Michael Van Canneyt) Date: Sun, 25 Sep 2016 00:06:12 +0200 (CEST) Subject: [Lazarus] Scrollbars on form ? In-Reply-To: References: Message-ID: On Sat, 24 Sep 2016, Dmitry Boyarintsev wrote: > Did you set AutoScroll to true? I tried AutoScoll true and false. Michael. > > thanks, > dmitry > > On Sat, Sep 24, 2016 at 2:09 PM, Michael Van Canneyt via Lazarus < > lazarus at lists.lazarus-ide.org> wrote: > >> >> Hi, >> >> How is one supposed to get the scrollbars on a form to work ? >> I have a form, with a custom control on it which is bigger than the form. >> I would expect the scrollbars to appear if AutoSize is false, and both >> scrollbars have visible set to true. >> >> However, no matter what the combinations of properties I set, the >> scrollbars >> on the form do not appear. >> >> Is there some trick to this ? >> >> Michael. >> -- >> _______________________________________________ >> Lazarus mailing list >> Lazarus at lists.lazarus-ide.org >> http://lists.lazarus-ide.org/listinfo/lazarus >> > From mailinglists at geldenhuys.co.uk Sun Sep 25 00:47:12 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Sat, 24 Sep 2016 23:47:12 +0100 Subject: [Lazarus] Scrollbars on form ? In-Reply-To: References: Message-ID: <85d5f20c-9599-194f-700d-551c65270c69@geldenhuys.co.uk> On 2016-09-24 23:06, Michael Van Canneyt via Lazarus wrote: > I tried AutoScoll true and false. I wouldn't be surprised if it only works with a specific LCL widgetset (eg: LCL-Win32). Could a TScrollBox (aligned alClient) be used as a work-around? 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 parkingspace26 at yahoo.com Sun Sep 25 01:14:21 2016 From: parkingspace26 at yahoo.com (Bob B.) Date: Sat, 24 Sep 2016 23:14:21 +0000 (UTC) Subject: [Lazarus] Accesing components in FormCreate event In-Reply-To: <20160922091732.65c2ad50@limapholos.matflo.wg> References: <8f657386ed33401cab90983664e0e7ae.squirrel@gator3286.hostgator.com> <20160922084809.3b2fc232@limapholos.matflo.wg> <1afcee43ab4cba437ec1bd5e5fb791d7.squirrel@gator3286.hostgator.com> <20160922091732.65c2ad50@limapholos.matflo.wg> Message-ID: <771377186.4279890.1474758861273@mail.yahoo.com> You're thinking of OnActivate.  OnShow shows only once, after OnCreate.  See: http://wiki.lazarus.freepascal.org/Event_order Bob B. On Thursday, September 22, 2016 12:17 AM, Mattias Gaertner wrote: On Thu, 22 Sep 2016 00:54:35 -0600 "Lars" wrote: >[...] > Prefer positive attitude of Yes, vs No. Inbetween Qbit state: maybe. I meant 'True'. > > Keep in mind that the LCL tries to create the Handle and layout after > > calling FormCreate. So changing properties do not have immediate effects > > as in the VCL. For example changing Panel1.Align=alTop will move Panel1 to > > top after FormCreate.  > > > Maybe these were some of the issues. What if you had three panels, and you > set all the alignments up.. then when the form is finally shown it has no > idea which alignment you wanted done first?  Or does it somehow memorize > which alignments were set first.  This could be related to the issue I had > but cannot remember, for the life of me. Maybe this helps: http://wiki.lazarus.freepascal.org/Autosize_/_Layout#Order_of_controls_with_same_Align 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 evvke at hotmail.com Sun Sep 25 07:06:45 2016 From: evvke at hotmail.com (Cyrax) Date: Sun, 25 Sep 2016 07:06:45 +0200 Subject: [Lazarus] Launching External Tool Cmd.exe in Windows In-Reply-To: <148747c414abe91918b3d930c0b87ed6.squirrel@gator3286.hostgator.com> References: <2dba84d7e4db49e4569493ba6bc2f219.squirrel@gator3286.hostgator.com> <20160922110817.5b98b126@limapholos.matflo.wg> <20160922234506.490cd882@limapholos.matflo.wg> <148747c414abe91918b3d930c0b87ed6.squirrel@gator3286.hostgator.com> Message-ID: On 23.09.2016 02:22, Lars wrote: > On Thu, September 22, 2016 3:45 pm, Mattias Gaertner wrote: >>> Oh, when did you add this, long ago or just recent... which release... >>> or is it only on the latest github/svn. Thanks, I did not see this >>> option >> >> Just recently, as in today. >> >> >> Mattias > > > Any idea what workarounds people used before? Surely someone used cmd.exe > before as an external tool in an older version. I tend to not use the > latest version from source control. But I can, if I have to! > In Tools->Configure External tools...->Add dialog, input these: Title : Command Prompt Program Filename : $Env(COMSPEC) Parameters : '/c "start "Command Prompt" "%COMSPEC%""' If single line contains at least one space to separate parameters then whole line will be enclosed with double quotes automatically, thus making it one parameter option. Single quotes at the beginning and the end will prevent this. In Parameters text box, you can have multiple lines and those lines will be one parameter per line. From zeljko at holobit.net Sun Sep 25 09:56:17 2016 From: zeljko at holobit.net (zeljko) Date: Sun, 25 Sep 2016 09:56:17 +0200 Subject: [Lazarus] Scrollbars on form ? In-Reply-To: References: Message-ID: <43694924-3cf1-8b35-9086-500d6c39d099@holobit.net> On 09/25/2016 12:06 AM, Michael Van Canneyt via Lazarus wrote: > > > On Sat, 24 Sep 2016, Dmitry Boyarintsev wrote: > >> Did you set AutoScroll to true? > > I tried AutoScoll true and false. What widgetset ? That should work (AutoScroll=True, v & h scrollbar properties untouched...try to set scrollbars visible to default). zeljko From zeljko at holobit.net Sun Sep 25 09:56:45 2016 From: zeljko at holobit.net (zeljko) Date: Sun, 25 Sep 2016 09:56:45 +0200 Subject: [Lazarus] Scrollbars on form ? In-Reply-To: <85d5f20c-9599-194f-700d-551c65270c69@geldenhuys.co.uk> References: <85d5f20c-9599-194f-700d-551c65270c69@geldenhuys.co.uk> Message-ID: On 09/25/2016 12:47 AM, Graeme Geldenhuys via Lazarus wrote: > On 2016-09-24 23:06, Michael Van Canneyt via Lazarus wrote: >> I tried AutoScoll true and false. > > I wouldn't be surprised if it only works with a specific LCL widgetset > (eg: LCL-Win32). It works on qtlcl on all supported platforms (linux,mac, windows). zeljko From michael at freepascal.org Sun Sep 25 10:01:09 2016 From: michael at freepascal.org (Michael Van Canneyt) Date: Sun, 25 Sep 2016 10:01:09 +0200 (CEST) Subject: [Lazarus] Scrollbars on form ? In-Reply-To: References: <85d5f20c-9599-194f-700d-551c65270c69@geldenhuys.co.uk> Message-ID: On Sun, 25 Sep 2016, zeljko via Lazarus wrote: > On 09/25/2016 12:47 AM, Graeme Geldenhuys via Lazarus wrote: >> On 2016-09-24 23:06, Michael Van Canneyt via Lazarus wrote: >>> I tried AutoScoll true and false. >> >> I wouldn't be surprised if it only works with a specific LCL widgetset >> (eg: LCL-Win32). > > It works on qtlcl on all supported platforms (linux,mac, windows). I use GTK. Can you make a demo that shows this ? Michael. From mailinglists at geldenhuys.co.uk Sun Sep 25 10:39:18 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Sun, 25 Sep 2016 09:39:18 +0100 Subject: [Lazarus] Scrollbars on form ? In-Reply-To: References: <85d5f20c-9599-194f-700d-551c65270c69@geldenhuys.co.uk> Message-ID: On 2016-09-25 09:01, Michael Van Canneyt via Lazarus wrote: > I use GTK. Can you make a demo that shows this ? Michael, I just tried with a brand new project, dropped a large TMemo on the form, resized the form smaller, then set AutoScroll = True, and it worked with LCL-GTK2. So you seem to be in luck with this LCL feature. ;-) Regards, Graeme From michael at freepascal.org Sun Sep 25 11:05:44 2016 From: michael at freepascal.org (Michael Van Canneyt) Date: Sun, 25 Sep 2016 11:05:44 +0200 (CEST) Subject: [Lazarus] Scrollbars on form ? In-Reply-To: References: <85d5f20c-9599-194f-700d-551c65270c69@geldenhuys.co.uk> Message-ID: On Sun, 25 Sep 2016, Graeme Geldenhuys via Lazarus wrote: > On 2016-09-25 09:01, Michael Van Canneyt via Lazarus wrote: >> I use GTK. Can you make a demo that shows this ? > > Michael, I just tried with a brand new project, dropped a large TMemo on > the form, resized the form smaller, then set AutoScroll = True, and it > worked with LCL-GTK2. So you seem to be in luck with this LCL feature. ;-) Turns out it is my own fault. I still had an Align:=alClient statement somewhere, of course then it will not work :/ Apologies for the noise... Michael. From nc-gaertnma at netcologne.de Sun Sep 25 14:40:29 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sun, 25 Sep 2016 14:40:29 +0200 Subject: [Lazarus] LCL-GTK2 warning about TScrollBox In-Reply-To: <794da3ad-3f61-934c-83c9-751207af3209@geldenhuys.co.uk> References: <794da3ad-3f61-934c-83c9-751207af3209@geldenhuys.co.uk> Message-ID: <20160925144029.58038c40@limapholos.matflo.wg> On Fri, 23 Sep 2016 11:10:13 +0100 Graeme Geldenhuys wrote: > Hi, > > I'm using a TScrollBox in a LCL-GTK2 application. When I run the > application from a console window, I see the following warning appear > multiple times. > > WARNING: TGtk2WidgetSet.InvalidateRect refused invalidating during paint > message: TScrollBox > > > Is this something I need to be concerned about? The program seems to > behave just fine though. Maybe. You can set a breakpoint on the warning and look at the callstack. Mattias From nc-gaertnma at netcologne.de Sun Sep 25 14:46:35 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sun, 25 Sep 2016 14:46:35 +0200 Subject: [Lazarus] warning on compile In-Reply-To: <4d7b79.216e1.1575dbf8236.Webtop.0@cox.net> References: <4d7b79.216e1.1575dbf8236.Webtop.0@cox.net> Message-ID: <20160925144635.30676b42@limapholos.matflo.wg> On Sat, 24 Sep 2016 19:50:14 +0000 (GMT) Chris Kelling via Lazarus wrote: > On a new project, and I keep getting this warning: tubes.lpr(20,1) > Warning: "crtbeginS.o" not found, this will probably cause a linking > failure > > Linking doesn't; actually fail, and the compile completes. Any clue > what library and were it needs to go to clear this warning? On what platform are you running fpc? Mattias From luizamericop at gmail.com Sun Sep 25 21:05:13 2016 From: luizamericop at gmail.com (Luiz Americo Pereira Camara) Date: Sun, 25 Sep 2016 16:05:13 -0300 Subject: [Lazarus] Windows 10 UAC blocking freepascal/Lazarus app (solved) Message-ID: Windows 10 was blocking a simple console application compiled with Lazarus There were two side effects: A UAC window appears when app is executed and gdb could not load it with the following error: Error creating process D:/repositories/sharemonitor/backend/UpdateInflationHistory.exe, (error 740) I tried removing the dependencies (synapse, abbrevia) without luck Compiled in other environment with different fpc version (2.6.4 and 3.0). Again no luck I moved the same code to other console app and... worked. The problem was simply the name. Changed executable name from UpdateInflationHistory to GetInflationHistory and worked Sharing here so others do not spend precious hours with such issue Luiz -------------- next part -------------- An HTML attachment was scrubbed... URL: From joshyfun at gmail.com Sun Sep 25 22:52:52 2016 From: joshyfun at gmail.com (=?UTF-8?Q?Jos=c3=a9_Mejuto?=) Date: Sun, 25 Sep 2016 22:52:52 +0200 Subject: [Lazarus] Windows 10 UAC blocking freepascal/Lazarus app (solved) In-Reply-To: References: Message-ID: El 25/09/2016 a las 21:05, Luiz Americo Pereira Camara via Lazarus escribió: > The problem was simply the name. Changed executable name from > UpdateInflationHistory to GetInflationHistory and worked > > Sharing here so others do not spend precious hours with such issue Hello, UAC is launched in programs with "update", "install", "patch", "setup" and possible others, strings in theri file names. Also if this strings appear in the VersionInfo fields Vendor, Company and others. There are other detections like some bytes signatures, etc. Partially detailed information: https://technet.microsoft.com/en-us/library/cc709628(WS.10).aspx -- From aaa5500 at ya.ru Sun Sep 25 23:21:17 2016 From: aaa5500 at ya.ru (Alexey T) Date: Mon, 26 Sep 2016 00:21:17 +0300 Subject: [Lazarus] LCL-GTK2 warning about TScrollBox In-Reply-To: <20160925144029.58038c40@limapholos.matflo.wg> References: <794da3ad-3f61-934c-83c9-751207af3209@geldenhuys.co.uk> <20160925144029.58038c40@limapholos.matflo.wg> Message-ID: <571bf6d6-2b7f-e84d-8b1f-513b6a21f4ad@ya.ru> On 25.09.2016 15:40, Mattias Gaertner via Lazarus wrote: > When I run the > >application from a console window, I see the following warning appear > >multiple times. > > > >WARNING: TGtk2WidgetSet.InvalidateRect refused invalidating during paint > >message: TScrollBox I asked the same thing in the StackOver, about week-3 ago. Seems you see it. And i see that this unneeded err msg, in console, is gone now. I don't see it when CudaText runs from console. When it's fixed? Alexey From zeljko at holobit.net Mon Sep 26 08:28:20 2016 From: zeljko at holobit.net (zeljko) Date: Mon, 26 Sep 2016 08:28:20 +0200 Subject: [Lazarus] LCL-GTK2 warning about TScrollBox In-Reply-To: <571bf6d6-2b7f-e84d-8b1f-513b6a21f4ad@ya.ru> References: <794da3ad-3f61-934c-83c9-751207af3209@geldenhuys.co.uk> <20160925144029.58038c40@limapholos.matflo.wg> <571bf6d6-2b7f-e84d-8b1f-513b6a21f4ad@ya.ru> Message-ID: On 09/25/2016 11:21 PM, Alexey T via Lazarus wrote: > On 25.09.2016 15:40, Mattias Gaertner via Lazarus wrote: >> When I run the >> >application from a console window, I see the following warning appear >> >multiple times. >> > >> >WARNING: TGtk2WidgetSet.InvalidateRect refused invalidating during paint >> >message: TScrollBox > > I asked the same thing in the StackOver, about week-3 ago. Seems you see > it. And i see that this unneeded err msg, in console, is gone now. I > don't see it when CudaText runs from console. When it's fixed? AFAIR, I've inserted that warning since it shows problem. It's nasty to call update or repaint inside paint event on any widgetset (can run into endless loop). zeljko From fpc at ssn.at Mon Sep 26 11:37:20 2016 From: fpc at ssn.at (Lukas Gradl) Date: Mon, 26 Sep 2016 09:37:20 +0000 Subject: [Lazarus] Form resize reverted after click on component palette Message-ID: <20160926093720.Horde.tVs__jITfMpMf5hkSfS46aK@horde.ssn.at> Hi! When I resize or move a form in the designer and click on a component in the palette afterwards (to place it on the form) the change is reverted - the form has the same size and position as before my change. This happens even after saving the change or if you do something else in between (e.g. writing some eventhandler) E.g: Move or resize the form - click on the OnActivate-event - write some code - save the whole project - click on a component (e.g. TEdit) in the component palette - form has same size and position as before the resize/move. I use Lazarus mainly for developing applications without GUI - so I can't really say since when I have that problem. But perhaps someone has an Idea what I might do wrong? Thanks Lukas From nc-gaertnma at netcologne.de Mon Sep 26 12:24:27 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Mon, 26 Sep 2016 12:24:27 +0200 Subject: [Lazarus] Form resize reverted after click on component palette In-Reply-To: <20160926093720.Horde.tVs__jITfMpMf5hkSfS46aK@horde.ssn.at> References: <20160926093720.Horde.tVs__jITfMpMf5hkSfS46aK@horde.ssn.at> Message-ID: <20160926122427.31829d6d@limapholos.matflo.wg> On Mon, 26 Sep 2016 09:37:20 +0000 Lukas Gradl via Lazarus wrote: > Hi! > > When I resize or move a form in the designer and click on a component > in the palette afterwards (to place it on the form) the change is > reverted - the form has the same size and position as before my change. What platform? Do you a docked IDE? > This happens even after saving the change or if you do something else > in between (e.g. writing some eventhandler) > > E.g: > Move or resize the form - click on the OnActivate-event - write some > code - save the whole project - click on a component (e.g. TEdit) in > the component palette - form has same size and position as before the > resize/move. It works here. > I use Lazarus mainly for developing applications without GUI - so I > can't really say since when I have that problem. > > But perhaps someone has an Idea what I might do wrong? Mattias From fpc at ssn.at Mon Sep 26 12:35:34 2016 From: fpc at ssn.at (Lukas Gradl) Date: Mon, 26 Sep 2016 10:35:34 +0000 Subject: [Lazarus] Form resize reverted after click on component palette In-Reply-To: <20160926122427.31829d6d@limapholos.matflo.wg> References: <20160926093720.Horde.tVs__jITfMpMf5hkSfS46aK@horde.ssn.at> <20160926122427.31829d6d@limapholos.matflo.wg> Message-ID: <20160926103534.Horde.oBkYhmTFyB8IQ7CNKIGLeg0@horde.ssn.at> Oh - sorry - forgot that vital information. Was before my first coffee in the morning... Zitat von Mattias Gaertner via Lazarus : >> When I resize or move a form in the designer and click on a component >> in the palette afterwards (to place it on the form) the change is >> reverted - the form has the same size and position as before my change. > > What platform? > Do you a docked IDE? Debian Linux x64, Cinnamon, GTK2, Anchordocking Lazarus SVN-Revision 53015 FPC 3.0 fixes branch, SVN-Revision 34552 >> This happens even after saving the change or if you do something else >> in between (e.g. writing some eventhandler) >> >> E.g: >> Move or resize the form - click on the OnActivate-event - write some >> code - save the whole project - click on a component (e.g. TEdit) in >> the component palette - form has same size and position as before the >> resize/move. > > It works here. Just retested - happens all the time, new project, reopened old project - always the same. Problem disappears when switching to QT - so it seems to be a problem in GTK2. Unfortunatly no Windows around, so can not test there. I switched my IDE to QT now - but it still might be worth a look to hunt down the problem. >> I use Lazarus mainly for developing applications without GUI - so I >> can't really say since when I have that problem. >> >> But perhaps someone has an Idea what I might do wrong? > > Mattias Thanks for all help, Lukas From mailinglists at geldenhuys.co.uk Mon Sep 26 12:37:48 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Mon, 26 Sep 2016 11:37:48 +0100 Subject: [Lazarus] TColor and Alpha channel support Message-ID: Hi, All LCL colors seem to be defined in the format TColor($BBGGRR) - all without the Alpha channel information. Does TColor support the Alpha channel, and if it does, will it it be applied everywhere or all supported widgetsets? If TColor does support the Alpha channel, in which format should the TColor be defined? TColor($AABBGGRR) or TColor($BBGGRRAA) Inconsistency noted: -------------------- Also there is an inconsistency at least with LCL-GTK2's Color Select dialog. If I type the hex color Red in the Color Select Dialog, the format must be typed as FF0000 (RRGGBB), but when I code the color Red in Lazarus, it must be typed as 0000FF (BBGGRR). I guess because of the LCL "native widget set" idea, there is nothing that can be done about 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 vojtech.cihak at atlas.cz Mon Sep 26 13:16:09 2016 From: vojtech.cihak at atlas.cz (=?utf-8?q?Vojt=C4=9Bch_=C4=8Cih=C3=A1k?=) Date: Mon, 26 Sep 2016 13:16:09 +0200 Subject: [Lazarus] =?utf-8?q?TColor_and_Alpha_channel_support?= In-Reply-To: 0000000063a7000185bc00ee508e References: 0000000063a7000185bc00ee508e Message-ID: <20160926131609.A2B99814@atlas.cz> Hi,   on one hand,   TColor = TGraphicsColor and TGraphicsColor = -$7FFFFFFF-1..$7FFFFFFF;   on the other hand, there are defined colors like   clNone    = TColor($1FFFFFFF); clDefault = TColor($20000000);   So I'm also curious if its possible *somehow*.   Vojtěch ______________________________________________________________ > Od: Graeme Geldenhuys via Lazarus > Komu: Lazarus mailing list > Datum: 26.09.2016 12:37 > Předmět: [Lazarus] TColor and Alpha channel support > Hi, All LCL colors seem to be defined in the format TColor($BBGGRR) - all without the Alpha channel information.  Does TColor support the Alpha channel, and if it does, will it it be applied everywhere or all supported widgetsets? 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 nc-gaertnma at netcologne.de Mon Sep 26 13:33:34 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Mon, 26 Sep 2016 13:33:34 +0200 Subject: [Lazarus] TColor and Alpha channel support In-Reply-To: References: Message-ID: <20160926133334.78b2e013@limapholos.matflo.wg> On Mon, 26 Sep 2016 11:37:48 +0100 Graeme Geldenhuys via Lazarus wrote: > Hi, > > All LCL colors seem to be defined in the format TColor($BBGGRR) - all > without the Alpha channel information. Correct. > Does TColor support the Alpha channel, No. The hi byte is used for system colors. Under Delphi also for palette. The idea is to use the FPColor property for alpha, but that is not implemented yet by the LCL interfaces. Hmm, I wonder how hard it would be... >[...] > Inconsistency noted: > -------------------- > Also there is an inconsistency at least with LCL-GTK2's Color Select > dialog. If I type the hex color Red in the Color Select Dialog, the > format must be typed as FF0000 (RRGGBB), but when I code the color Red > in Lazarus, it must be typed as 0000FF (BBGGRR). I guess because of > the LCL "native widget set" idea, there is nothing that can be done > about this. Usually I use the RGBToColor function, so I only see RGB. Mattias From lazarus at kluug.net Mon Sep 26 13:45:16 2016 From: lazarus at kluug.net (Ondrej Pokorny) Date: Mon, 26 Sep 2016 13:45:16 +0200 Subject: [Lazarus] TColor and Alpha channel support In-Reply-To: <20160926133334.78b2e013@limapholos.matflo.wg> References: <20160926133334.78b2e013@limapholos.matflo.wg> Message-ID: On 26.09.2016 13:33, Mattias Gaertner via Lazarus wrote: > The idea is to use the FPColor property for alpha, but that is not > implemented yet by the LCL interfaces. Hmm, I wonder how hard it would > be... Speaking from my experince, nearly impossible :( It doesn't really make sense for me anyway because windows with handles (TWinControl descendants) don't support alpha-transparency on Windows. For me it would be just a source of bugs and incomplete WS-dependent implementations. Ondrej From lacak at zoznam.sk Mon Sep 26 14:07:06 2016 From: lacak at zoznam.sk (LacaK) Date: Mon, 26 Sep 2016 14:07:06 +0200 Subject: [Lazarus] TImage shows loaded image rotated by 90? In-Reply-To: <5182614d-ae7d-8712-f08b-b733583df55e@dommelstein.nl> References: <94fa589a-73e5-4471-52d6-deb25aba3358@zoznam.sk> <5182614d-ae7d-8712-f08b-b733583df55e@dommelstein.nl> Message-ID: <47c00ae9-b3d1-221d-c363-0c2a084ca042@zoznam.sk> I have created small Exif reader for my own needs. I have looked also in FCL TFPReaderJpeg (which uses pasjpeg) if there is no support, but I do not see. If there would be interest for extending functionality of this reader to support reading of Exif information I can prepare patch. Here is my simple implementation if somebody is interested: ======================================================================== { TJpegExifReader } TJpegExifReader = class private type TIFDEntry = record TagNo: Word; DataType: Word; Count: DWord; Value: DWord; // This tag records the offset from the start of the TIFF header to the position where the value itself is recorded. // In cases where the value fits in 4 bytes, the value itself is recorded. If the value is smaller than 4 bytes, the value is stored in the 4-byte area starting from the left, i.e., from the lower end end; TExifData = record Make, Model, Software, DateTime: string; Orientation: smallint; XResolution, YResolution: double; ResolutionUnit: smallint; end; var FBA: Word; function Swap(w: Word): Word; overload; protected FIFD: array of TIFDEntry; FExif: TExifData; public constructor Create(const FileName: string); overload; constructor Create(Stream: TFileStream); overload; function Orientation: smallint; function XResolution: double; function YResolution: double; function ResolutionUnit: string; function DateTime: TDateTime; end; { TJpegExifReader } function TJpegExifReader.Swap(w: Word): Word; begin if FBA = $4D4D then // Motorola align: first byte in data is highest byte (big endian) Result := BEtoN(w) else // Intel align: first byte in data is lowest byte (little endian) Result := LEtoN(w); end; constructor TJpegExifReader.Create(const FileName: string); var Stream: TFileStream; begin Stream := TFileStream.Create(FileName, fmOpenRead+fmShareDenyWrite); try Create(Stream); finally Stream.Free; end; end; constructor TJpegExifReader.Create(Stream: TFileStream); type TRATIONAL=record numerator: dword; denominator: dword; end; var w, Size: word; dw: dword; n,i,c: integer; S: AnsiString; R: TRATIONAL; D: double; begin inherited Create; Stream.Position := 0; Stream.Read(w,SizeOf(w)); if w <> NtoLE($D8FF) then Exit; // 0-1: Jpeg SOI (Start of image: FFD8) Stream.Read(w, SizeOf(w)); if w <> NtoLE($E1FF) then Exit; // 2-3: APP1 (Application marker: FFE1) Stream.Read(Size, SizeOf(Size)); // 4-5: Size of APP1 data area (high byte first) Size := BEtoN(Size); Dec(Size, 2); // Exif Stream.Read(dw, SizeOf(dw)); if dw <> NtoLE($66697845) then Exit; // 6-9: 'Exif' Stream.Read(w, SizeOf(w)); if w <> NtoLE($0000) then Exit; // 10-11: 0000 Dec(Size, 6); // TIFF header Stream.Read(FBA, SizeOf(FBA)); // 12-13: byte order if (FBA<>$4949) and (FBA<>$4D4D) then Exit; // 4949=Intel, 4D4D=Motorola Stream.Read(w, SizeOf(w)); if Swap(w) <> $002A then Exit; // Tag Mark Stream.Read(dw, SizeOf(dw)); // Offset to first IFD (usualy 8) Dec(Size, 8); // IFD: Image file directory SetLength(FIFD, 0); Stream.Read(w, SizeOf(w)); // No of IFD entries Dec(Size, 2); n := Swap(w); SetLength(FIFD, Length(FIFD)+n); // Read IFD entries for i:=0 to n-1 do begin Stream.Read(FIFD[i], SizeOf(TIFDEntry)); Dec(Size, SizeOf(TIFDEntry)); end; Stream.Read(dw, SizeOf(dw)); // Offset to next IFD (0=last) // Parse IFD entries for i:=0 to n-1 do begin case Swap(FIFD[i].DataType) of 1: w:=1; // unsigned byte 2: w:=1; // ascii string (terminated with 0) 3: w:=2; // unsigned short (2 bytes) 4: w:=4; // unsigned long (4 bytes) 5: w:=8; // unsigned rational (4+4 long) else w:=1; end; c := w * Swap(FIFD[i].Count); if c > 4 then begin // Value contains offset from TIFF header to data Stream.Position := 12 + Swap(FIFD[i].Value); case Swap(FIFD[i].DataType) of 2: begin Dec(c); SetLength(S, c); Stream.Read(S[1], c); end; 5: begin Stream.Read(R, SizeOf(R)); D := R.numerator / R.denominator; end; end; end else case Swap(FIFD[i].DataType) of 3: w := Swap(FIFD[i].Value); end; case Swap(FIFD[i].TagNo) of $010F: FExif.Make := S; $0110: FExif.Model := S; $0112: FExif.Orientation := w; $011A: FExif.XResolution := D; $011B: FExif.YResolution := D; $0128: FExif.ResolutionUnit := w; $0131: FExif.Software := S; $0132: FExif.DateTime := S; $8769: // offset to Exif SubIFD end; end; end; function TJpegExifReader.Orientation: smallint; begin case FExif.Orientation of 3: Result := 180; 6: Result := 270; // The 0th row is the visual right-hand side of the image, and the 0th column is the visual top. else Result := 0; end; end; function TJpegExifReader.XResolution: double; begin Result := FExif.XResolution; end; function TJpegExifReader.YResolution: double; begin Result := FExif.YResolution; end; function TJpegExifReader.ResolutionUnit: string; begin case FExif.ResolutionUnit of 2: Result := 'in'; 3: Result := 'cm'; else Result := ''; end; end; function TJpegExifReader.DateTime: TDateTime; begin Result := ComposeDateTime( StrToDate(Copy(FExif.DateTime,1,10), 'yyyy:mm:dd', ':'), StrToTime(Copy(FExif.DateTime,12,8), ':') ); end; ======================================================================== >>>> I have JPEG image with width=2448 and height=3264. >>> >>> No >>> >>>> All programs in Windows show image with respect to his dimensions, so >>>> shorter is X and higher is Y. >>>> >>>> But when I load this image into TImage control (using Picture >>>> property) >>>> image is shown rotated by 90 degrees, with width=3264 and height=2448 >>> >>> That is correct. If you look at the exif info, you read: >> >> How do you read this Exif info ? > > with a decent viewer ;) (in windows I use irfanview) > >> When I right click image and look at Details tab I see there only >> width=2448 and height=3264 > > I see too > >> But when I use on-line exif viewer (at http://regex.info/exif.cgi) there >> are swaped results and: >> OrientationRotate = 90 CW >> >> So it seems, that you are right ;-) >> >> Next question then is: how can I detect this in Lazarus and do same as >> "smart viewers" do ? >> (in other words: is there and component, which allows me read this EXIF >> information from JPEG image ?) > > Google ? > > Exif + Delphi -> torry.net -> NativeJpg v.1.33 or TExif v.1.3 or > TGJPGCommentInfoP v.1.0 > > (looking for sources supporting D7) > > you may try that. > > Marc > > From michael at freepascal.org Mon Sep 26 14:10:26 2016 From: michael at freepascal.org (Michael Van Canneyt) Date: Mon, 26 Sep 2016 14:10:26 +0200 (CEST) Subject: [Lazarus] TImage shows loaded image rotated by 90? In-Reply-To: <47c00ae9-b3d1-221d-c363-0c2a084ca042@zoznam.sk> References: <94fa589a-73e5-4471-52d6-deb25aba3358@zoznam.sk> <5182614d-ae7d-8712-f08b-b733583df55e@dommelstein.nl> <47c00ae9-b3d1-221d-c363-0c2a084ca042@zoznam.sk> Message-ID: On Mon, 26 Sep 2016, LacaK via Lazarus wrote: > I have created small Exif reader for my own needs. > I have looked also in FCL TFPReaderJpeg (which uses pasjpeg) if there is > no support, but I do not see. > If there would be interest for extending functionality of this reader to > support reading of Exif information I can prepare patch. There is interest :) Michael. From mailinglists at geldenhuys.co.uk Mon Sep 26 14:09:30 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Mon, 26 Sep 2016 13:09:30 +0100 Subject: [Lazarus] TColor and Alpha channel support In-Reply-To: <20160926133334.78b2e013@limapholos.matflo.wg> References: <20160926133334.78b2e013@limapholos.matflo.wg> Message-ID: <8e29b9ed-3821-fe47-1a61-5b92bdc9b823@geldenhuys.co.uk> On 2016-09-26 12:33, Mattias Gaertner via Lazarus wrote: >> Does TColor support the Alpha channel, > > No. Wow, that's surprising. > The idea is to use the FPColor property for alpha, but that is not > implemented yet by the LCL interfaces. Hmm, I wonder how hard it would > be... Does that also mean every widget in LCL will have a Color and FPColor property? eg: Label1.Color := ....; Label1.FPColor := ....; That would be very messy! > Usually I use the RGBToColor function, so I only see RGB. Ah, thanks for that tip. Regards, Graeme From nc-gaertnma at netcologne.de Mon Sep 26 14:15:59 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Mon, 26 Sep 2016 14:15:59 +0200 Subject: [Lazarus] TColor and Alpha channel support In-Reply-To: <8e29b9ed-3821-fe47-1a61-5b92bdc9b823@geldenhuys.co.uk> References: <20160926133334.78b2e013@limapholos.matflo.wg> <8e29b9ed-3821-fe47-1a61-5b92bdc9b823@geldenhuys.co.uk> Message-ID: <20160926141559.31b8ea50@limapholos.matflo.wg> On Mon, 26 Sep 2016 13:09:30 +0100 Graeme Geldenhuys via Lazarus wrote: >[...] > > The idea is to use the FPColor property for alpha, but that is not > > implemented yet by the LCL interfaces. Hmm, I wonder how hard it would > > be... > > Does that also mean every widget in LCL will have a Color and FPColor > property? > > eg: > Label1.Color := ....; > Label1.FPColor := ....; > > That would be very messy! First of all setting Pen.FPColor sets Pen.Color and vice versus, so you only set one. And second I doubt that alpha is useful for all native widgets. Mattias From lazarus at kluug.net Mon Sep 26 14:25:14 2016 From: lazarus at kluug.net (Ondrej Pokorny) Date: Mon, 26 Sep 2016 14:25:14 +0200 Subject: [Lazarus] TColor and Alpha channel support In-Reply-To: <20160926141559.31b8ea50@limapholos.matflo.wg> References: <20160926133334.78b2e013@limapholos.matflo.wg> <8e29b9ed-3821-fe47-1a61-5b92bdc9b823@geldenhuys.co.uk> <20160926141559.31b8ea50@limapholos.matflo.wg> Message-ID: <9e2b8f15-16b3-2bbb-a54a-3d1d04f35720@kluug.net> On 26.09.2016 14:15, Mattias Gaertner via Lazarus wrote: > On Mon, 26 Sep 2016 13:09:30 +0100 > Graeme Geldenhuys via Lazarus wrote: > >> [...] >>> The idea is to use the FPColor property for alpha, but that is not >>> implemented yet by the LCL interfaces. Hmm, I wonder how hard it would >>> be... >> Does that also mean every widget in LCL will have a Color and FPColor >> property? >> >> eg: >> Label1.Color := ....; >> Label1.FPColor := ....; >> >> That would be very messy! > First of all setting Pen.FPColor sets Pen.Color and vice versus, so > you only set one. > And second I doubt that alpha is useful for all native widgets. In this case maybe this property pair would be more appropriate (?): Color := ...; Alpha := ...; // property Alpha: Byte Ondrej From nc-gaertnma at netcologne.de Mon Sep 26 14:41:27 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Mon, 26 Sep 2016 14:41:27 +0200 Subject: [Lazarus] TColor and Alpha channel support In-Reply-To: <9e2b8f15-16b3-2bbb-a54a-3d1d04f35720@kluug.net> References: <20160926133334.78b2e013@limapholos.matflo.wg> <8e29b9ed-3821-fe47-1a61-5b92bdc9b823@geldenhuys.co.uk> <20160926141559.31b8ea50@limapholos.matflo.wg> <9e2b8f15-16b3-2bbb-a54a-3d1d04f35720@kluug.net> Message-ID: <20160926144127.46327bc4@limapholos.matflo.wg> On Mon, 26 Sep 2016 14:25:14 +0200 Ondrej Pokorny via Lazarus wrote: >[...] > In this case maybe this property pair would be more appropriate (?): > > Color := ...; > Alpha := ...; // property Alpha: Byte A property "Alpha" sounds like setting the alpha of the whole control. Also FPColor contains 16bit channels. Mattias From mse00000 at gmail.com Mon Sep 26 14:52:18 2016 From: mse00000 at gmail.com (Martin Schreiber) Date: Mon, 26 Sep 2016 14:52:18 +0200 Subject: [Lazarus] TColor and Alpha channel support In-Reply-To: <9e2b8f15-16b3-2bbb-a54a-3d1d04f35720@kluug.net> References: <20160926141559.31b8ea50@limapholos.matflo.wg> <9e2b8f15-16b3-2bbb-a54a-3d1d04f35720@kluug.net> Message-ID: <201609261452.19012.mse00000@gmail.com> On Monday 26 September 2016 14:25:14 Ondrej Pokorny via Lazarus wrote: > > In this case maybe this property pair would be more appropriate (?): > > Color := ...; > Alpha := ...; // property Alpha: Byte > Or: " Alpha := ...; // property Alpha: TColor " for alpha per colour channel. MSEgui works this way with pixmap opacity. In case of pixmaps with simple alpha channel the 8 bit alpha value is (R+G+B) div 3. In MSEgui mask- and color-data of TMaskedBitmap are separate pixmaps with own canvas. Martin From lacak at zoznam.sk Mon Sep 26 14:46:40 2016 From: lacak at zoznam.sk (LacaK) Date: Mon, 26 Sep 2016 14:46:40 +0200 Subject: [Lazarus] TImage shows loaded image rotated by 90? In-Reply-To: References: <94fa589a-73e5-4471-52d6-deb25aba3358@zoznam.sk> <5182614d-ae7d-8712-f08b-b733583df55e@dommelstein.nl> <47c00ae9-b3d1-221d-c363-0c2a084ca042@zoznam.sk> Message-ID: > >> I have created small Exif reader for my own needs. >> I have looked also in FCL TFPReaderJpeg (which uses pasjpeg) if there >> is no support, but I do not see. >> If there would be interest for extending functionality of this reader >> to support reading of Exif information I can prepare patch. > > There is interest :) Hm, looking deeper into TFPCustomImageReader architecture intention of such readers is constitute TFPCustomImage. Now I am not sure where metadata (Exif) should go ? (As far as TFPCustomImage holds only true image data) I can extend TFPReaderJpeg, by adding boolean option ("ReadExif") either to constructor or as a standalone property, which will signal to reader if read also this kind of data. If set to true then in "InternalRead" I can read from supplied stream and store them in record inside TFPReaderJpeg ... so user must ask reader later to obtain exif data Or do not touch TReaderJpeg and add only new "helper" class which will read from supplied stream exif data (just as in source which I have attached to my prior mail) What do you prefer ? -Laco. From lazarus at kluug.net Mon Sep 26 14:50:02 2016 From: lazarus at kluug.net (Ondrej Pokorny) Date: Mon, 26 Sep 2016 14:50:02 +0200 Subject: [Lazarus] TColor and Alpha channel support In-Reply-To: <20160926144127.46327bc4@limapholos.matflo.wg> References: <20160926133334.78b2e013@limapholos.matflo.wg> <8e29b9ed-3821-fe47-1a61-5b92bdc9b823@geldenhuys.co.uk> <20160926141559.31b8ea50@limapholos.matflo.wg> <9e2b8f15-16b3-2bbb-a54a-3d1d04f35720@kluug.net> <20160926144127.46327bc4@limapholos.matflo.wg> Message-ID: <60705af8-0243-7839-cca5-821e426a3c6f@kluug.net> On 26.09.2016 14:41, Mattias Gaertner via Lazarus wrote: > On Mon, 26 Sep 2016 14:25:14 +0200 > Ondrej Pokorny via Lazarus wrote: > >> [...] >> In this case maybe this property pair would be more appropriate (?): >> >> Color := ...; >> Alpha := ...; // property Alpha: Byte > A property "Alpha" sounds like setting the alpha of the whole control. Aah, I see now what you mean. Then ColorAlpha :) Ondrej From lazarus at kluug.net Mon Sep 26 14:50:02 2016 From: lazarus at kluug.net (Ondrej Pokorny) Date: Mon, 26 Sep 2016 14:50:02 +0200 Subject: [Lazarus] TColor and Alpha channel support In-Reply-To: <20160926144127.46327bc4@limapholos.matflo.wg> References: <20160926133334.78b2e013@limapholos.matflo.wg> <8e29b9ed-3821-fe47-1a61-5b92bdc9b823@geldenhuys.co.uk> <20160926141559.31b8ea50@limapholos.matflo.wg> <9e2b8f15-16b3-2bbb-a54a-3d1d04f35720@kluug.net> <20160926144127.46327bc4@limapholos.matflo.wg> Message-ID: <60705af8-0243-7839-cca5-821e426a3c6f@kluug.net> On 26.09.2016 14:41, Mattias Gaertner via Lazarus wrote: > On Mon, 26 Sep 2016 14:25:14 +0200 > Ondrej Pokorny via Lazarus wrote: > >> [...] >> In this case maybe this property pair would be more appropriate (?): >> >> Color := ...; >> Alpha := ...; // property Alpha: Byte > A property "Alpha" sounds like setting the alpha of the whole control. Aah, I see now what you mean. Then ColorAlpha :) Ondrej From mailinglists at geldenhuys.co.uk Mon Sep 26 14:57:51 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Mon, 26 Sep 2016 13:57:51 +0100 Subject: [Lazarus] TColor and Alpha channel support In-Reply-To: <60705af8-0243-7839-cca5-821e426a3c6f@kluug.net> References: <20160926133334.78b2e013@limapholos.matflo.wg> <8e29b9ed-3821-fe47-1a61-5b92bdc9b823@geldenhuys.co.uk> <20160926141559.31b8ea50@limapholos.matflo.wg> <9e2b8f15-16b3-2bbb-a54a-3d1d04f35720@kluug.net> <20160926144127.46327bc4@limapholos.matflo.wg> <60705af8-0243-7839-cca5-821e426a3c6f@kluug.net> Message-ID: <5318dddd-a9e1-9783-630c-e1ff76ddefb5@geldenhuys.co.uk> On 2016-09-26 13:50, Ondrej Pokorny via Lazarus wrote: > Aah, I see now what you mean. Then ColorAlpha :) An then you start getting the contradicting properties. For example: Label1.Color := clRed; Label1.ColorAlpha := 170; Label1.Transparent := True; or, what to do if Label1.Transparent = False? Or does in now mean the TLabel.Transparent property is going to be deprecated because ColorAlpha will replace its job. Oh, but then we have the Delphi-compatibility issues to deal with too. :-( 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 Mon Sep 26 15:01:04 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Mon, 26 Sep 2016 14:01:04 +0100 Subject: [Lazarus] TColor and Alpha channel support In-Reply-To: <201609261452.19012.mse00000@gmail.com> References: <20160926141559.31b8ea50@limapholos.matflo.wg> <9e2b8f15-16b3-2bbb-a54a-3d1d04f35720@kluug.net> <201609261452.19012.mse00000@gmail.com> Message-ID: <17b81d85-7db3-b2bc-69ac-6691807b4015@geldenhuys.co.uk> On 2016-09-26 13:52, Martin Schreiber via Lazarus wrote: > Or: > " > Alpha := ...; // property Alpha: TColor > " > for alpha per colour channel. In that case I would make it a record type with RedAlpha, GreenAlpha and BlueAlpha: Byte. Why?, Because TColor's range is way to large, with most of the acceptable values being meaningless. 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 thierry.andriamirado at free.fr Mon Sep 26 15:16:14 2016 From: thierry.andriamirado at free.fr (Thierry Andriamirado) Date: Mon, 26 Sep 2016 16:16:14 +0300 Subject: [Lazarus] warning on compile In-Reply-To: <4d7b79.216e1.1575dbf8236.Webtop.0@cox.net> References: <4d7b79.216e1.1575dbf8236.Webtop.0@cox.net> Message-ID: <0A61964E-942E-4594-856F-DFC5D4E64D51@free.fr> Le 24 septembre 2016 22:50:14 UTC+03:00, Chris Kelling via Lazarus a écrit : >On a new project, and I keep getting this warning: tubes.lpr(20,1) >Warning: "crtbeginS.o" not found, this will probably cause a linking >failure > >Linking doesn't; actually fail, and the compile completes. Any clue >what library and were it needs to go to clear this warning? Are you cross-compiling to i386 ? Find crtbeginS.o on your system and add its directory in fpc.cfg. AFAIR, there's at least 2 of them, within 2 subtories (./32 and ./x32): one of them is the good one. Just try them one by one. (Sorry if I can't give precise advices: I'm on a tablet) Good luck. Thierry -- Envoyé de mon téléphone Android avec K-9 Mail. Excusez la brièveté. From mse00000 at gmail.com Mon Sep 26 15:52:50 2016 From: mse00000 at gmail.com (Martin Schreiber) Date: Mon, 26 Sep 2016 15:52:50 +0200 Subject: [Lazarus] TColor and Alpha channel support In-Reply-To: <17b81d85-7db3-b2bc-69ac-6691807b4015@geldenhuys.co.uk> References: <201609261452.19012.mse00000@gmail.com> <17b81d85-7db3-b2bc-69ac-6691807b4015@geldenhuys.co.uk> Message-ID: <201609261552.50248.mse00000@gmail.com> On Monday 26 September 2016 15:01:04 Graeme Geldenhuys via Lazarus wrote: > On 2016-09-26 13:52, Martin Schreiber via Lazarus wrote: > > Or: > > " > > Alpha := ...; // property Alpha: TColor > > " > > for alpha per colour channel. > > In that case I would make it a record type with RedAlpha, GreenAlpha and > BlueAlpha: Byte. Why?, Because TColor's range is way to large, with most > of the acceptable values being meaningless. > Using TColor has the advantage that the same mechanism of RGB-lookup of "logical" colours as with normal TColor values can be used. TColor with the MSB = 0 is a special case where the lower bytes contain the RGB values. Simple and efficient. In MSEgui the MSB defines the kind of the logical color value, "functional" (cl_invalid,cl_default..), "mapped" (cl_dkshadow,cl_shadow...), "named RGB" (cl_black, cl_dkgray...) and "user". Martin From aradeonas at operamail.com Mon Sep 26 16:01:00 2016 From: aradeonas at operamail.com (Aradeonas) Date: Mon, 26 Sep 2016 07:01:00 -0700 Subject: [Lazarus] New methods code creation Message-ID: <1474898460.2390332.737183681.48812426@webmail.messagingengine.com> Hi, In Lazarus 1.6 when I used code creation for procedures and events they will be made in private part of class and I had an option in Codetool named "Insert new event methods to section" but now in Lazarus trunk I cant find that and methods will made in public part. What is wrong? Regards, Ara -- http://www.fastmail.com - Send your email first class -------------- next part -------------- An HTML attachment was scrubbed... URL: From lazarus at kluug.net Mon Sep 26 16:26:06 2016 From: lazarus at kluug.net (Ondrej Pokorny) Date: Mon, 26 Sep 2016 16:26:06 +0200 Subject: [Lazarus] New methods code creation In-Reply-To: <1474898460.2390332.737183681.48812426@webmail.messagingengine.com> References: <1474898460.2390332.737183681.48812426@webmail.messagingengine.com> Message-ID: <2d5600ec-62fb-2ace-3144-ed143fb40473@kluug.net> On 26.09.2016 16:01, Aradeonas via Lazarus wrote: > Hi, > > In Lazarus 1.6 when I used code creation for procedures and events > they will be made in private part of class and I had an option in > Codetool named "Insert new event methods to section" but now in > Lazarus trunk I cant find that and methods will made in public part. > > What is wrong? http://wiki.freepascal.org/index.php?title=Lazarus_1.8.0_release_notes Ondrej From aradeonas at operamail.com Mon Sep 26 16:34:32 2016 From: aradeonas at operamail.com (Aradeonas) Date: Mon, 26 Sep 2016 07:34:32 -0700 Subject: [Lazarus] New methods code creation In-Reply-To: <2d5600ec-62fb-2ace-3144-ed143fb40473@kluug.net> References: <1474898460.2390332.737183681.48812426@webmail.messagingengine.com> <2d5600ec-62fb-2ace-3144-ed143fb40473@kluug.net> Message-ID: <1474900472.2397040.737298609.158E7B18@webmail.messagingengine.com> Thanks Ondrej but Ctrl+Shift+X will show the message and I set it on private but problem is how can I set Ctrl+Shift+c default? Also If I want to it adds method after class name not in private section, what should I do? Regards, Ara -- http://www.fastmail.com - Access your email from home and the web -------------- next part -------------- An HTML attachment was scrubbed... URL: From lazarus at kluug.net Mon Sep 26 16:40:45 2016 From: lazarus at kluug.net (Ondrej Pokorny) Date: Mon, 26 Sep 2016 16:40:45 +0200 Subject: [Lazarus] New methods code creation In-Reply-To: <1474900472.2397040.737298609.158E7B18@webmail.messagingengine.com> References: <1474898460.2390332.737183681.48812426@webmail.messagingengine.com> <2d5600ec-62fb-2ace-3144-ed143fb40473@kluug.net> <1474900472.2397040.737298609.158E7B18@webmail.messagingengine.com> Message-ID: On 26.09.2016 16:34, Aradeonas via Lazarus wrote: > Thanks Ondrej but Ctrl+Shift+X will show the message and I set it on > private but problem is how can I set Ctrl+Shift+c default? You cannot. +C is always without dialog (predefined hard-coded settings), whereas +X is always with dialog. > Also If I want to it adds method after class name not in private > section, what should I do? This section is "published". Ondrej From aradeonas at operamail.com Mon Sep 26 16:45:33 2016 From: aradeonas at operamail.com (Aradeonas) Date: Mon, 26 Sep 2016 07:45:33 -0700 Subject: [Lazarus] New methods code creation In-Reply-To: References: <1474898460.2390332.737183681.48812426@webmail.messagingengine.com> <2d5600ec-62fb-2ace-3144-ed143fb40473@kluug.net> <1474900472.2397040.737298609.158E7B18@webmail.messagingengine.com> Message-ID: <1474901133.2399073.737314089.1BE14EB3@webmail.messagingengine.com> Oh no :( I want my old behavior back, its a pain to see a dialog every time. it at least can use last chosen value with +X dialog. Regards, Ara -- http://www.fastmail.com - Or how I learned to stop worrying and love email again -------------- next part -------------- An HTML attachment was scrubbed... URL: From lazarus at kluug.net Mon Sep 26 16:56:12 2016 From: lazarus at kluug.net (Ondrej Pokorny) Date: Mon, 26 Sep 2016 16:56:12 +0200 Subject: [Lazarus] New methods code creation In-Reply-To: <1474901133.2399073.737314089.1BE14EB3@webmail.messagingengine.com> References: <1474898460.2390332.737183681.48812426@webmail.messagingengine.com> <2d5600ec-62fb-2ace-3144-ed143fb40473@kluug.net> <1474900472.2397040.737298609.158E7B18@webmail.messagingengine.com> <1474901133.2399073.737314089.1BE14EB3@webmail.messagingengine.com> Message-ID: <69a430dc-df4a-c877-331e-e57b3e19b754@kluug.net> On 26.09.2016 16:45, Aradeonas via Lazarus wrote: > I want my old behavior back, its a pain to see a dialog every time. Well not a pain for me. But you can raise a discussion about the default section for methods for +C. I always use +X for methods; the same if I want to declare an object variable. Maybe it can be changed to private. > it at least can use last chosen value with +X dialog. This is a no-go for me. Ondrej From aradeonas at operamail.com Mon Sep 26 17:01:18 2016 From: aradeonas at operamail.com (Aradeonas) Date: Mon, 26 Sep 2016 08:01:18 -0700 Subject: [Lazarus] New methods code creation In-Reply-To: <69a430dc-df4a-c877-331e-e57b3e19b754@kluug.net> References: <1474898460.2390332.737183681.48812426@webmail.messagingengine.com> <2d5600ec-62fb-2ace-3144-ed143fb40473@kluug.net> <1474900472.2397040.737298609.158E7B18@webmail.messagingengine.com> <1474901133.2399073.737314089.1BE14EB3@webmail.messagingengine.com> <69a430dc-df4a-c877-331e-e57b3e19b754@kluug.net> Message-ID: <1474902078.2403373.737332465.522F5FE0@webmail.messagingengine.com> Cause we had an option before, can we have it back for Ctrl+C ? just like 1.6 and no hard coded option so anyone can choose what he like? Regards, Ara -- http://www.fastmail.com - mmm... Fastmail... -------------- next part -------------- An HTML attachment was scrubbed... URL: From badsectoracula at gmail.com Mon Sep 26 17:15:06 2016 From: badsectoracula at gmail.com (Kostas Michalopoulos) Date: Mon, 26 Sep 2016 18:15:06 +0300 Subject: [Lazarus] TColor and Alpha channel support In-Reply-To: <201609261552.50248.mse00000@gmail.com> References: <201609261452.19012.mse00000@gmail.com> <17b81d85-7db3-b2bc-69ac-6691807b4015@geldenhuys.co.uk> <201609261552.50248.mse00000@gmail.com> Message-ID: Is there a need for alpha *everywhere* a color is used? From my experience, i've only really needed alpha for TCanvas (so i can draw, e.g. translucent rectangles). I don't think there is a need to add more baggage in controls by introducing yet another mostly redundant FPColor property. Controls that need color with alpha could just provide a ColorAlpha property (for Color property - if a Color property is named Foreground or SecondaryColor then the alpha would be ForegroundAlpha or SecondaryColorAlpha). If one doesn't care about compatibility with Delphi, a Color: TFPColor property could be used and Lazarus be made (if it doesn't already) to handle TFPColor similarly to TColor but with a custom dialog that can edit the alpha. For TCanvas, a TFPColor behind the scenes that is mapped to both TFPColor and TColor properties on access should be enough. Yes, it is redundant, but since most Canvas use is done via code (instead of a visual property editor), i'd say that being able to access RGBA as a single value instead of a value pair is cleaner. On Mon, Sep 26, 2016 at 4:52 PM, Martin Schreiber via Lazarus < lazarus at lists.lazarus-ide.org> wrote: > On Monday 26 September 2016 15:01:04 Graeme Geldenhuys via Lazarus wrote: > > On 2016-09-26 13:52, Martin Schreiber via Lazarus wrote: > > > Or: > > > " > > > Alpha := ...; // property Alpha: TColor > > > " > > > for alpha per colour channel. > > > > In that case I would make it a record type with RedAlpha, GreenAlpha and > > BlueAlpha: Byte. Why?, Because TColor's range is way to large, with most > > of the acceptable values being meaningless. > > > Using TColor has the advantage that the same mechanism of RGB-lookup > of "logical" colours as with normal TColor values can be used. TColor with > the MSB = 0 is a special case where the lower bytes contain the RGB values. > Simple and efficient. > In MSEgui the MSB defines the kind of the logical color value, "functional" > (cl_invalid,cl_default..), "mapped" (cl_dkshadow,cl_shadow...), "named RGB" > (cl_black, cl_dkgray...) and "user". > > Martin > -- > _______________________________________________ > 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 lazarus at kluug.net Mon Sep 26 17:31:40 2016 From: lazarus at kluug.net (Ondrej Pokorny) Date: Mon, 26 Sep 2016 17:31:40 +0200 Subject: [Lazarus] New methods code creation In-Reply-To: <1474902078.2403373.737332465.522F5FE0@webmail.messagingengine.com> References: <1474898460.2390332.737183681.48812426@webmail.messagingengine.com> <2d5600ec-62fb-2ace-3144-ed143fb40473@kluug.net> <1474900472.2397040.737298609.158E7B18@webmail.messagingengine.com> <1474901133.2399073.737314089.1BE14EB3@webmail.messagingengine.com> <69a430dc-df4a-c877-331e-e57b3e19b754@kluug.net> <1474902078.2403373.737332465.522F5FE0@webmail.messagingengine.com> Message-ID: On 26.09.2016 17:01, Aradeonas via Lazarus wrote: > Cause we had an option before, can we have it back for Ctrl+C ? just > like 1.6 and no hard coded option so anyone can choose what he like? Well I don't know if we should make an option for every tiny feature that can be easily compensated with another existing feature. What is so painful on Ctrl+Shift+X and Enter? Do you create so many methods in one particular section? Ondrej From mailinglists at geldenhuys.co.uk Mon Sep 26 17:41:53 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Mon, 26 Sep 2016 16:41:53 +0100 Subject: [Lazarus] TColor and Alpha channel support In-Reply-To: References: <201609261452.19012.mse00000@gmail.com> <17b81d85-7db3-b2bc-69ac-6691807b4015@geldenhuys.co.uk> <201609261552.50248.mse00000@gmail.com> Message-ID: On 2016-09-26 16:15, Kostas Michalopoulos via Lazarus wrote: > Is there a need for alpha *everywhere* a color is used? So how would functions that take TColor parameters work? For example, drawing a gradient with increasing Alpha value, say via a TCanvas.GradientFill() call. In the case of GradientFill() it has a Start/Stop TColor parameter. Also other functions like DrawGradientWindow() etc. So for each such cases, new overloaded versions will be implemented, replacing TColor with TFPColor? 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 aradeonas at operamail.com Mon Sep 26 17:42:48 2016 From: aradeonas at operamail.com (Aradeonas) Date: Mon, 26 Sep 2016 08:42:48 -0700 Subject: [Lazarus] New methods code creation In-Reply-To: References: <1474898460.2390332.737183681.48812426@webmail.messagingengine.com> <2d5600ec-62fb-2ace-3144-ed143fb40473@kluug.net> <1474900472.2397040.737298609.158E7B18@webmail.messagingengine.com> <1474901133.2399073.737314089.1BE14EB3@webmail.messagingengine.com> <69a430dc-df4a-c877-331e-e57b3e19b754@kluug.net> <1474902078.2403373.737332465.522F5FE0@webmail.messagingengine.com> Message-ID: <1474904568.2412298.737381849.063318AF@webmail.messagingengine.com> Yes, and it isnt tiny and also programmers like me are lazy and a click or a enter more very time is a pain. I didnt want option for every detail just font like messages ;) Also we had it before :D Regards, Ara -- http://www.fastmail.com - Faster than the air-speed velocity of an unladen european swallow -------------- next part -------------- An HTML attachment was scrubbed... URL: From thierry.andriamirado at free.fr Mon Sep 26 18:13:42 2016 From: thierry.andriamirado at free.fr (Thierry Andriamirado) Date: Mon, 26 Sep 2016 19:13:42 +0300 Subject: [Lazarus] TImage shows loaded image rotated by 90? In-Reply-To: <47c00ae9-b3d1-221d-c363-0c2a084ca042@zoznam.sk> References: <94fa589a-73e5-4471-52d6-deb25aba3358@zoznam.sk> <5182614d-ae7d-8712-f08b-b733583df55e@dommelstein.nl> <47c00ae9-b3d1-221d-c363-0c2a084ca042@zoznam.sk> Message-ID: <26716D28-D3E7-4B7B-B620-B3FB6A235042@free.fr> Le 26 septembre 2016 15:07:06 UTC+03:00, LacaK via Lazarus a écrit : >I have created small Exif reader for my own needs. >I have looked also in FCL TFPReaderJpeg (which uses pasjpeg) if there >is >no support, but I do not see. >If there would be interest for extending functionality of this reader >to >support reading of Exif information I can prepare patch. > >Here is my simple implementation if somebody is interested: > This is great! Please do, if you have time. Anyway, thanks for this code. Thierry -- Envoyé de mon téléphone Android avec K-9 Mail. Excusez la brièveté. From nc-gaertnma at netcologne.de Mon Sep 26 18:45:03 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Mon, 26 Sep 2016 18:45:03 +0200 Subject: [Lazarus] New methods code creation In-Reply-To: <2d5600ec-62fb-2ace-3144-ed143fb40473@kluug.net> References: <1474898460.2390332.737183681.48812426@webmail.messagingengine.com> <2d5600ec-62fb-2ace-3144-ed143fb40473@kluug.net> Message-ID: <20160926184503.523fa263@limapholos.matflo.wg> On Mon, 26 Sep 2016 16:26:06 +0200 Ondrej Pokorny via Lazarus wrote: > On 26.09.2016 16:01, Aradeonas via Lazarus wrote: > > Hi, > > > > In Lazarus 1.6 when I used code creation for procedures and events > > they will be made in private part of class and I had an option in > > Codetool named "Insert new event methods to section" but now in > > Lazarus trunk I cant find that and methods will made in public part. > > > > What is wrong? > > http://wiki.freepascal.org/index.php?title=Lazarus_1.8.0_release_notes Where does it mention the change from default section to public section? Mattias From lazarus at kluug.net Mon Sep 26 19:05:15 2016 From: lazarus at kluug.net (Ondrej Pokorny) Date: Mon, 26 Sep 2016 19:05:15 +0200 Subject: [Lazarus] New methods code creation In-Reply-To: <20160926184503.523fa263@limapholos.matflo.wg> References: <1474898460.2390332.737183681.48812426@webmail.messagingengine.com> <2d5600ec-62fb-2ace-3144-ed143fb40473@kluug.net> <20160926184503.523fa263@limapholos.matflo.wg> Message-ID: <3c83d28b-75c5-2557-cf7f-8c1bb75c3212@kluug.net> On 26.09.2016 18:45, Mattias Gaertner via Lazarus wrote: > On Mon, 26 Sep 2016 16:26:06 +0200 > Ondrej Pokorny via Lazarus wrote: > >> On 26.09.2016 16:01, Aradeonas via Lazarus wrote: >>> Hi, >>> >>> In Lazarus 1.6 when I used code creation for procedures and events >>> they will be made in private part of class and I had an option in >>> Codetool named "Insert new event methods to section" but now in >>> Lazarus trunk I cant find that and methods will made in public part. >>> >>> What is wrong? >> http://wiki.freepascal.org/index.php?title=Lazarus_1.8.0_release_notes > Where does it mention the change from default section to public section? Obviously nowhere. At least I cannot find that information there. Ondrej From aradeonas at operamail.com Mon Sep 26 19:10:00 2016 From: aradeonas at operamail.com (Aradeonas) Date: Mon, 26 Sep 2016 10:10:00 -0700 Subject: [Lazarus] New methods code creation In-Reply-To: <3c83d28b-75c5-2557-cf7f-8c1bb75c3212@kluug.net> References: <1474898460.2390332.737183681.48812426@webmail.messagingengine.com> <2d5600ec-62fb-2ace-3144-ed143fb40473@kluug.net> <20160926184503.523fa263@limapholos.matflo.wg> <3c83d28b-75c5-2557-cf7f-8c1bb75c3212@kluug.net> Message-ID: <1474909800.936520.737490361.65476419@webmail.messagingengine.com> I dont know who changed it but here is a screen shot from 1.6 Regards, Ara -- http://www.fastmail.com - Does exactly what it says on the tin -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 43181 bytes Desc: not available URL: From lazarus at kluug.net Mon Sep 26 19:18:15 2016 From: lazarus at kluug.net (Ondrej Pokorny) Date: Mon, 26 Sep 2016 19:18:15 +0200 Subject: [Lazarus] New methods code creation In-Reply-To: <1474909800.936520.737490361.65476419@webmail.messagingengine.com> References: <1474898460.2390332.737183681.48812426@webmail.messagingengine.com> <2d5600ec-62fb-2ace-3144-ed143fb40473@kluug.net> <20160926184503.523fa263@limapholos.matflo.wg> <3c83d28b-75c5-2557-cf7f-8c1bb75c3212@kluug.net> <1474909800.936520.737490361.65476419@webmail.messagingengine.com> Message-ID: <6b8b4daf-acad-7474-77f0-73b20cac1ffe@kluug.net> On 26.09.2016 19:10, Aradeonas via Lazarus wrote: > I dont know who changed it but here is a screen shot from 1.6 I implemented the option in 1.5 trunk and I extended it in 1.7. During this extension I decided to delete the option because now there are much more options and it doesn't make sense for me to have duplicate functionality (+C with IDE various IDE options and +X with dialog). I decided to keep it simple. But if you get support from other devs and/or users, you can revert the option part of the 1.7 change and bring it back. In that case send a patch through mantis. But please first try to get the green light. Ondrej From aradeonas at operamail.com Mon Sep 26 20:06:15 2016 From: aradeonas at operamail.com (Aradeonas) Date: Mon, 26 Sep 2016 11:06:15 -0700 Subject: [Lazarus] New methods code creation In-Reply-To: <6b8b4daf-acad-7474-77f0-73b20cac1ffe@kluug.net> References: <1474898460.2390332.737183681.48812426@webmail.messagingengine.com> <2d5600ec-62fb-2ace-3144-ed143fb40473@kluug.net> <20160926184503.523fa263@limapholos.matflo.wg> <3c83d28b-75c5-2557-cf7f-8c1bb75c3212@kluug.net> <1474909800.936520.737490361.65476419@webmail.messagingengine.com> <6b8b4daf-acad-7474-77f0-73b20cac1ffe@kluug.net> Message-ID: <1474913175.1666611.737547521.3F86BA55@webmail.messagingengine.com> Thanks Ondrej for your works. You talk about various IDE options but as I searched I cant find any options to make this message off and also from my view it makes no sense forcing anybody to a shortcut do just one thing and make all the stuff in Public. But as you are the maintainer and no one attracted in this topic for know, its your decision and yours is no so it is as is but Im grateful for your works as always. Regards, Ara -- http://www.fastmail.com - Choose from over 50 domains or use your own -------------- next part -------------- An HTML attachment was scrubbed... URL: From nc-gaertnma at netcologne.de Mon Sep 26 20:24:38 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Mon, 26 Sep 2016 20:24:38 +0200 Subject: [Lazarus] New methods code creation In-Reply-To: <1474913175.1666611.737547521.3F86BA55@webmail.messagingengine.com> References: <1474898460.2390332.737183681.48812426@webmail.messagingengine.com> <2d5600ec-62fb-2ace-3144-ed143fb40473@kluug.net> <20160926184503.523fa263@limapholos.matflo.wg> <3c83d28b-75c5-2557-cf7f-8c1bb75c3212@kluug.net> <1474909800.936520.737490361.65476419@webmail.messagingengine.com> <6b8b4daf-acad-7474-77f0-73b20cac1ffe@kluug.net> <1474913175.1666611.737547521.3F86BA55@webmail.messagingengine.com> Message-ID: <20160926202438.242e3f89@limapholos.matflo.wg> On Mon, 26 Sep 2016 11:06:15 -0700 Aradeonas via Lazarus wrote: > Thanks Ondrej for your works. > > You talk about various IDE options but as I searched I cant find any > options to make this message off and also from my view it makes no sense > forcing anybody to a shortcut do just one thing and make all the stuff > in Public. > But as you are the maintainer and no one attracted in this topic for > know, its your decision and yours is no so it is as is but Im grateful > for your works as always. I personally prefer to use private as default. I will add the option. Mattias From lazarus at kluug.net Mon Sep 26 20:36:19 2016 From: lazarus at kluug.net (Ondrej Pokorny) Date: Mon, 26 Sep 2016 20:36:19 +0200 Subject: [Lazarus] New methods code creation In-Reply-To: <20160926202438.242e3f89@limapholos.matflo.wg> References: <1474898460.2390332.737183681.48812426@webmail.messagingengine.com> <2d5600ec-62fb-2ace-3144-ed143fb40473@kluug.net> <20160926184503.523fa263@limapholos.matflo.wg> <3c83d28b-75c5-2557-cf7f-8c1bb75c3212@kluug.net> <1474909800.936520.737490361.65476419@webmail.messagingengine.com> <6b8b4daf-acad-7474-77f0-73b20cac1ffe@kluug.net> <1474913175.1666611.737547521.3F86BA55@webmail.messagingengine.com> <20160926202438.242e3f89@limapholos.matflo.wg> Message-ID: <792ea6b4-d872-3b93-f2dd-97020980dd73@kluug.net> On 26.09.2016 20:24, Mattias Gaertner via Lazarus wrote: > I personally prefer to use private as default. > I will add the option. Good. I add most methods to the private section as well. It looks like more people do: http://mantis.freepascal.org/view.php?id=13994 :) Ondrej From aradeonas at operamail.com Mon Sep 26 22:04:29 2016 From: aradeonas at operamail.com (Aradeonas) Date: Mon, 26 Sep 2016 13:04:29 -0700 Subject: [Lazarus] New methods code creation In-Reply-To: <792ea6b4-d872-3b93-f2dd-97020980dd73@kluug.net> References: <1474898460.2390332.737183681.48812426@webmail.messagingengine.com> <2d5600ec-62fb-2ace-3144-ed143fb40473@kluug.net> <20160926184503.523fa263@limapholos.matflo.wg> <3c83d28b-75c5-2557-cf7f-8c1bb75c3212@kluug.net> <1474909800.936520.737490361.65476419@webmail.messagingengine.com> <6b8b4daf-acad-7474-77f0-73b20cac1ffe@kluug.net> <1474913175.1666611.737547521.3F86BA55@webmail.messagingengine.com> <20160926202438.242e3f89@limapholos.matflo.wg> <792ea6b4-d872-3b93-f2dd-97020980dd73@kluug.net> Message-ID: <1474920269.1695994.737677385.21B3E9E2@webmail.messagingengine.com> > I personally prefer to use private as default. I will add the option. Me too, at least an option for an useful shortcut. Happy to hear that. Regards, Ara -- http://www.fastmail.com - Same, same, but different... -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Mon Sep 26 23:52:23 2016 From: michael at freepascal.org (Michael Van Canneyt) Date: Mon, 26 Sep 2016 23:52:23 +0200 (CEST) Subject: [Lazarus] Breaking change in fcl-pdf Message-ID: Hi, A small warning: There is a small breaking change in the fcl-pdf package: the color parameter in the AddFont() call has been removed. It was ignored anyway and didn't play any useful role. If your code no longer compiles, just remove the color parameter. An option not to embed fonts was also introduced. The next change will be partial embedding of fonts: to embed only actually used characters. Michael. From badsectoracula at gmail.com Tue Sep 27 03:16:49 2016 From: badsectoracula at gmail.com (Kostas Michalopoulos) Date: Tue, 27 Sep 2016 04:16:49 +0300 Subject: [Lazarus] TColor and Alpha channel support In-Reply-To: References: <201609261452.19012.mse00000@gmail.com> <17b81d85-7db3-b2bc-69ac-6691807b4015@geldenhuys.co.uk> <201609261552.50248.mse00000@gmail.com> Message-ID: Yes, overloaded versions that take both TColor and TFPColor (with the former calling the latter with conversion function) should be the best approach both to preserve backwards compatibility (for existing code) and consistency (for any new function). On Mon, Sep 26, 2016 at 6:41 PM, Graeme Geldenhuys via Lazarus < lazarus at lists.lazarus-ide.org> wrote: > On 2016-09-26 16:15, Kostas Michalopoulos via Lazarus wrote: > > Is there a need for alpha *everywhere* a color is used? > > So how would functions that take TColor parameters work? For example, > drawing a gradient with increasing Alpha value, say via a > TCanvas.GradientFill() call. In the case of GradientFill() it has a > Start/Stop TColor parameter. Also other functions like > DrawGradientWindow() etc. So for each such cases, new overloaded > versions will be implemented, replacing TColor with TFPColor? > > 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 noreply at z505.com Tue Sep 27 07:06:09 2016 From: noreply at z505.com (Lars) Date: Mon, 26 Sep 2016 23:06:09 -0600 Subject: [Lazarus] Launching External Tool Cmd.exe in Windows In-Reply-To: References: <2dba84d7e4db49e4569493ba6bc2f219.squirrel@gator3286.hostgator.com> <20160922110817.5b98b126@limapholos.matflo.wg> <20160922234506.490cd882@limapholos.matflo.wg> <148747c414abe91918b3d930c0b87ed6.squirrel@gator3286.hostgator.com> Message-ID: <7f312a7b3aaa99622e32c51731afafd8.squirrel@gator3286.hostgator.com> On Sat, September 24, 2016 11:06 pm, Cyrax via Lazarus wrote: >> Any idea what workarounds people used before? Surely someone used >> cmd.exe before as an external tool in an older version. I tend to not >> use the latest version from source control. But I can, if I have to! >> > > In Tools->Configure External tools...->Add dialog, input these: > > > Title : Command Prompt > Program Filename : $Env(COMSPEC) > Parameters : '/c "start "Command Prompt" "%COMSPEC%""' > > Genius! Any idea how to launch a console app using this trick? i.e. I develop a console app in lazarus (the $TargetFile()) and want to launch it but leave it open. Cmd /k was what I thought. other option would be to make a ms dos batch file, that launches a command window, and run it. Or like the other poster said, create a launcher program From noreply at z505.com Tue Sep 27 07:07:09 2016 From: noreply at z505.com (Lars) Date: Mon, 26 Sep 2016 23:07:09 -0600 Subject: [Lazarus] Run Parameters Dialog In-Reply-To: <20160923081910.4467e530@limapholos.matflo.wg> References: <20160923081910.4467e530@limapholos.matflo.wg> Message-ID: On Fri, September 23, 2016 12:19 am, Mattias Gaertner wrote: > On Thu, 22 Sep 2016 18:46:49 -0600 > "Lars" wrote: > > >> Hi in the Run Parameters dialog, it appears as though $macros such as >> $TargetFile() or the current project directory, etc., don't get >> expanded.... > > Please create a bug report. > > Not sure if it was intended as design. The designer of Lazarus didn't necessarily need this feature... I will create one but it could be as designed From juha.manninen62 at gmail.com Tue Sep 27 07:55:55 2016 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Tue, 27 Sep 2016 08:55:55 +0300 Subject: [Lazarus] Run Parameters Dialog In-Reply-To: References: <20160923081910.4467e530@limapholos.matflo.wg> Message-ID: On Tue, Sep 27, 2016 at 8:07 AM, Lars via Lazarus wrote: > The designer of Lazarus didn't necessarily need this feature... Mattias is the designer of Lazarus. :) Juha From mailinglists at geldenhuys.co.uk Tue Sep 27 17:20:49 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Tue, 27 Sep 2016 16:20:49 +0100 Subject: [Lazarus] TColor($RRGGBB) -> TColor($BBGGRR) Message-ID: Hi, I can do the following myself with a simple function, but does LCL already contain a function that swaps the Red and Blue channel values? I have many color values defined in RRGGBB format (eg: PDF colors, HTML colors, fpGUI colors etc), but need to convert it to a compatible LCL TColor where the format is BBGGRR. Regards, Graeme From mailinglists at geldenhuys.co.uk Tue Sep 27 17:29:43 2016 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Tue, 27 Sep 2016 16:29:43 +0100 Subject: [Lazarus] TColor($RRGGBB) -> TColor($BBGGRR) In-Reply-To: References: Message-ID: <3eea61a0-5b8e-5fc0-d1c0-d2bdc21972cb@geldenhuys.co.uk> On 2016-09-27 16:20, Graeme Geldenhuys via Lazarus wrote: > I can do the following myself with a simple function, but does LCL > already contain a function that swaps the Red and Blue channel values? I searched all of Graphics and GraphUtils and couldn't find anything revelant, so I created a simple RGBtoBGR() function. 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 lacak at zoznam.sk Wed Sep 28 07:39:08 2016 From: lacak at zoznam.sk (LacaK) Date: Wed, 28 Sep 2016 07:39:08 +0200 Subject: [Lazarus] TLazIntfImage.Assign ? Message-ID: <53d7b208-0b73-b9bc-86ad-6aef1a0bc03e@zoznam.sk> Hi, Please look at implementation : procedure TLazIntfImage.Assign(Source: TPersistent); var Src: TLazIntfImage; Desc: TRawImageDescription; begin if Source is TLazIntfImage then begin Src:=TLazIntfImage(Source); Desc:=Src.DataDescription; Desc.Width:=0; // avoid side effects Desc.Height:=0; // avoid side effects DataDescription:=Src.DataDescription; end; inherited Assign(Source); end; Why we set Desc.Width and Height to 0 and later we do not use "Desc" , but "Src.DataDescription" ? -Laco. From noreply at z505.com Wed Sep 28 22:19:02 2016 From: noreply at z505.com (Lars) Date: Wed, 28 Sep 2016 14:19:02 -0600 Subject: [Lazarus] Run Parameters Dialog In-Reply-To: References: <20160923081910.4467e530@limapholos.matflo.wg> Message-ID: On Mon, September 26, 2016 11:55 pm, Juha Manninen via Lazarus wrote: > On Tue, Sep 27, 2016 at 8:07 AM, Lars via Lazarus > wrote: > >> The designer of Lazarus didn't necessarily need this feature... >> > > Mattias is the designer of Lazarus. :) > I thought there were more than one designer and it went through several phases of different people coming and going, hence the name Lazarus which was revived from the dead, and instead of just one Jesus like person being revived it was multiple people which makes it Lazaruses rather than Lazarus From noreply at z505.com Wed Sep 28 22:47:17 2016 From: noreply at z505.com (Lars) Date: Wed, 28 Sep 2016 14:47:17 -0600 Subject: [Lazarus] Run Parameters Dialog In-Reply-To: References: <20160923081910.4467e530@limapholos.matflo.wg> Message-ID: On Wed, September 28, 2016 2:19 pm, Lars wrote: > On Mon, September 26, 2016 11:55 pm, Juha Manninen via Lazarus wrote: > >> On Tue, Sep 27, 2016 at 8:07 AM, Lars via Lazarus >> wrote: >> >> >>> The designer of Lazarus didn't necessarily need this feature... >>> >>> >> >> Mattias is the designer of Lazarus. :) >> >> :-) Quote: "So, three individuals (Cliff Baeseman, Shane Miller, and Michael A. Hess) began Lazarus in February 1999. Each of these three had tried to get involved with the Megido project before it dissolved. They started their own project, Lazarus, out of frustration with their earlier Megido experience. The next member of the team was Marc Weustink. He got involved with the project in August 1999. Marc was looking for a Linux Delphi (at that time Borland had not developed Kylix). He was also interested in Linux in general, and joined the Lazarus project for that reason. At the time Marc joined, Lazarus was not much more than an empty toolbar and some hardcoded GTK menu items. The editor was still being discussed. Marc is still a core contributor, with the debugger interface as his pet subproject. A year after Marc joined Mattias Gaertner got involved (September 2000). With Mattias as a member of the team the project made a significant move forward. Mattias ported synedit, and coded large parts of the codetools and the designer. With these new additions Lazarus began to look more like it does today. Three years later, Mattias added the package system and has continued to add further IDE features and enhancements. " Quote from: http://wiki.freepascal.org/History From terry at haimann.us Wed Sep 28 23:49:15 2016 From: terry at haimann.us (Terry A. Haimann) Date: Wed, 28 Sep 2016 16:49:15 -0500 Subject: [Lazarus] Can't add new form to Lazarus App Message-ID: <1475099355.25243.7.camel@Hercules> On an old Lazarus app (Linux) today I tried to add a form and got the following: http://www.haimann.us/Images/Test.png After selecting this option, the new form appears messed up. At the botton of the unit.pas file the following is displayed: initialization {$I unit1.lrs} Even after I save the unit under another name. After compilation when the form is displayed via a show.modal, the form is blank. Is there someway to repair this app From nc-gaertnma at netcologne.de Thu Sep 29 09:43:45 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 29 Sep 2016 09:43:45 +0200 Subject: [Lazarus] Run Parameters Dialog In-Reply-To: References: <20160923081910.4467e530@limapholos.matflo.wg> Message-ID: <20160929094345.27d69764@limapholos.matflo.wg> On Wed, 28 Sep 2016 14:19:02 -0600 Lars via Lazarus wrote: > On Mon, September 26, 2016 11:55 pm, Juha Manninen via Lazarus wrote: > > On Tue, Sep 27, 2016 at 8:07 AM, Lars via Lazarus > > wrote: > > > >> The designer of Lazarus didn't necessarily need this feature... > >> > > > > Mattias is the designer of Lazarus. :) > > I thought there were more than one designer and it went through several > phases of different people coming and going, hence the name Lazarus which > was revived from the dead, and instead of just one Jesus like person being > revived it was multiple people which makes it Lazaruses rather than > Lazarus Yes. You asked about "The designer of Lazarus" and "this feature". I added the IDE macros in general and to the run parameters in particular, so Juha took the chance to answer in a similar manner. Context sensitive. Mattias From nc-gaertnma at netcologne.de Thu Sep 29 09:57:43 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 29 Sep 2016 09:57:43 +0200 Subject: [Lazarus] Can't add new form to Lazarus App In-Reply-To: <1475099355.25243.7.camel@Hercules> References: <1475099355.25243.7.camel@Hercules> Message-ID: <20160929095743.26c22868@limapholos.matflo.wg> On Wed, 28 Sep 2016 16:49:15 -0500 "Terry A. Haimann via Lazarus" wrote: > On an old Lazarus app (Linux) today I tried to add a form and got the Do you mean add a new empty form or add an existing form? > following: > > http://www.haimann.us/Images/Test.png I recommend to adapt the $mode and $H directive in the main source (usually projectname.lpr). > After selecting this option, the new form appears messed up. What means messed up? It's an empty form, isn't it? > At the > botton of the unit.pas file the following is displayed: > > initialization > {$I unit1.lrs} > > Even after I save the unit under another name. After compilation when > the form is displayed via a show.modal, the form is blank. > Is there someway to repair this app How do you create the form? Mattias From juha.manninen62 at gmail.com Thu Sep 29 10:01:30 2016 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Thu, 29 Sep 2016 11:01:30 +0300 Subject: [Lazarus] TLazIntfImage.Assign ? In-Reply-To: <53d7b208-0b73-b9bc-86ad-6aef1a0bc03e@zoznam.sk> References: <53d7b208-0b73-b9bc-86ad-6aef1a0bc03e@zoznam.sk> Message-ID: On Wed, Sep 28, 2016 at 8:39 AM, LacaK via Lazarus wrote: > Why we set Desc.Width and Height to 0 and later we do not use "Desc" , but > "Src.DataDescription" ? Yes, now the Desc is unused and DataDescription is assigned as is. What could be the "side effects" mentioned in comments? Is there any reason to set Width and Height to 0? I don't know the graph related code well but I can remove the unused part after getting confirmation from others. Juha From lazarus at kluug.net Thu Sep 29 10:10:34 2016 From: lazarus at kluug.net (Ondrej Pokorny) Date: Thu, 29 Sep 2016 10:10:34 +0200 Subject: [Lazarus] TLazIntfImage.Assign ? In-Reply-To: References: <53d7b208-0b73-b9bc-86ad-6aef1a0bc03e@zoznam.sk> Message-ID: <13c965fb-42ca-aa3c-9a37-6c903b365a94@kluug.net> On 29.09.2016 10:01, Juha Manninen via Lazarus wrote: > On Wed, Sep 28, 2016 at 8:39 AM, LacaK via Lazarus > wrote: >> Why we set Desc.Width and Height to 0 and later we do not use "Desc" , but >> "Src.DataDescription" ? > Yes, now the Desc is unused and DataDescription is assigned as is. > What could be the "side effects" mentioned in comments? Is there any > reason to set Width and Height to 0? > > I don't know the graph related code well but I can remove the unused > part after getting confirmation from others. It looks like a left-over to me. It happens regularly also to myself during refactoring. IMO it can be removed - obviously there are not any side effects any more. Ondrej From juha.manninen62 at gmail.com Thu Sep 29 10:18:19 2016 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Thu, 29 Sep 2016 11:18:19 +0300 Subject: [Lazarus] TLazIntfImage.Assign ? In-Reply-To: <13c965fb-42ca-aa3c-9a37-6c903b365a94@kluug.net> References: <53d7b208-0b73-b9bc-86ad-6aef1a0bc03e@zoznam.sk> <13c965fb-42ca-aa3c-9a37-6c903b365a94@kluug.net> Message-ID: On Thu, Sep 29, 2016 at 11:10 AM, Ondrej Pokorny via Lazarus wrote: > It looks like a left-over to me. It happens regularly also to myself during > refactoring. IMO it can be removed - obviously there are not any side > effects any more. Ok, I will remove it ... Juha From lacak at zoznam.sk Thu Sep 29 11:27:26 2016 From: lacak at zoznam.sk (LacaK) Date: Thu, 29 Sep 2016 11:27:26 +0200 Subject: [Lazarus] TLazIntfImage.Assign ? In-Reply-To: References: <53d7b208-0b73-b9bc-86ad-6aef1a0bc03e@zoznam.sk> <13c965fb-42ca-aa3c-9a37-6c903b365a94@kluug.net> Message-ID: <3d145d8e-0fbb-1a60-97ad-2d92d624deef@zoznam.sk> >> IMO it can be removed - obviously there are not any side >> effects any more. > Ok, I will remove it ... Thanks ;-) -Laco From lacak at zoznam.sk Thu Sep 29 12:28:19 2016 From: lacak at zoznam.sk (LacaK) Date: Thu, 29 Sep 2016 12:28:19 +0200 Subject: [Lazarus] Jpeg Exif reader was: TImage shows loaded image rotated by 90? In-Reply-To: <26716D28-D3E7-4B7B-B620-B3FB6A235042@free.fr> References: <94fa589a-73e5-4471-52d6-deb25aba3358@zoznam.sk> <5182614d-ae7d-8712-f08b-b733583df55e@dommelstein.nl> <47c00ae9-b3d1-221d-c363-0c2a084ca042@zoznam.sk> <26716D28-D3E7-4B7B-B620-B3FB6A235042@free.fr> Message-ID: Attached improved code. (as far as there is a lot of Exif tags, not all are parsed and placed in FExif record, but all are in FIFD array) -Laco. >> I have created small Exif reader for my own needs. >> I have looked also in FCL TFPReaderJpeg (which uses pasjpeg) if there >> is >> no support, but I do not see. >> If there would be interest for extending functionality of this reader >> to >> support reading of Exif information I can prepare patch. >> >> Here is my simple implementation if somebody is interested: >> -------------- next part -------------- unit JpegExif; {$IFDEF FPC} {$mode objfpc} {$ENDIF} {$H+} interface uses Classes, SysUtils; type { TJpegExifReader } TJpegExifReader = class private type TIFDEntry = record TagNo: Word; DataType: Word; Count: DWord; Value: DWord; // This tag records the offset from the start of the TIFF header to the position where the value itself is recorded. // In cases where the value fits in 4 bytes, the value itself is recorded. If the value is smaller than 4 bytes, the value is stored in the 4-byte area starting from the left, i.e., from the lower end end; TExifData = record Make, Model, Software, DateTime, Artist: string; Orientation: smallint; XResolution, YResolution: double; ResolutionUnit: smallint; ExposureTime: double; FNumber: double; ColorSpace: Word; ImageUniqueID: string; end; var FBA: Word; function Swap(w: Word): Word; overload; function Swap(dw: DWord): DWord; overload; public FIFD: array of TIFDEntry; FExif: TExifData; public constructor Create(const FileName: string); overload; constructor Create(Stream: TFileStream); overload; function Orientation: smallint; function XResolution: double; function YResolution: double; function ResolutionUnit: string; function DateTime: TDateTime; end; implementation { TJpegExifReader } function TJpegExifReader.Swap(w: Word): Word; begin if FBA = $4D4D then // Motorola align: first byte in data is highest byte (big endian) Result := BEtoN(w) else // Intel align: first byte in data is lowest byte (little endian) Result := LEtoN(w); end; function TJpegExifReader.Swap(dw: DWord): DWord; begin if FBA = $4D4D then Result := BEtoN(dw) else Result := LEtoN(dw); end; constructor TJpegExifReader.Create(const FileName: string); var Stream: TFileStream; begin Stream := TFileStream.Create(FileName, fmOpenRead+fmShareDenyWrite); try Create(Stream); finally Stream.Free; end; end; constructor TJpegExifReader.Create(Stream: TFileStream); type TRATIONAL=record numerator: dword; denominator: dword; end; var b: Byte; w, Marker, Size: Word; dw: DWord; i,c: Integer; S: AnsiString; R: TRATIONAL; D: Double; function ReadIFD(Offset: DWord): integer; var i,j: integer; begin Stream.Position := 12 + Offset; Stream.Read(w, SizeOf(w)); // No of IFD entries Dec(Size, 2); Result := Swap(w); j := Length(FIFD); SetLength(FIFD, j+Result); // Read IFD entries for i:=j to j+Result-1 do begin Stream.Read(FIFD[i], SizeOf(TIFDEntry)); Dec(Size, SizeOf(TIFDEntry)); FIFD[i].TagNo := Swap(FIFD[i].TagNo); FIFD[i].DataType := Swap(FIFD[i].DataType); FIFD[i].Count := Swap(FIFD[i].Count); end; Stream.Read(dw, SizeOf(dw)); // Offset to next IFD (0=last) end; begin inherited Create; Stream.Position := 0; Stream.Read(w,SizeOf(w)); if w <> NtoLE($D8FF) then Exit; // 0-1: Jpeg SOI (Start of image: FFD8) Stream.Read(Marker, SizeOf(w)); // 2-3: Application marker Stream.Read(Size, SizeOf(Size)); // 4-5: Size of APP1 data area (high byte first) Size := BEtoN(Size); Dec(Size, 2); Stream.Read(dw, SizeOf(dw)); // 6-9: 'Exif' of 'JFIF' Dec(Size, 4); // APP0 (Application marker: FFE0) and 'JFIF' if (Marker = NtoLE($E0FF)) and (dw = NtoLE($4649464A)) then begin Stream.Read(b, 1); // 10: 0 Stream.Read(w, SizeOf(w)); // 11-12: JFIF version Stream.Read(b, 1); // 13: Density units (1-in, 2-px) FExif.ResolutionUnit := b+1; Stream.Read(w, SizeOf(w)); // 14-15: XDensity FExif.XResolution := BEtoN(w); Stream.Read(w, SizeOf(w)); // 16-17: YDensity FExif.YResolution := BEtoN(w); end // APP1 (Application marker: FFE1) and 'Exif' else if (Marker = NtoLE($E1FF)) and (dw = NtoLE($66697845)) then begin Stream.Read(w, SizeOf(w)); if w <> NtoLE($0000) then Exit; // 10-11: 0000 Dec(Size, 2); // TIFF header Stream.Read(FBA, SizeOf(FBA)); // 12-13: byte order if (FBA<>$4949) and (FBA<>$4D4D) then Exit; // 4949=Intel, 4D4D=Motorola Stream.Read(w, SizeOf(w)); if Swap(w) <> $002A then Exit; // Tag Mark Stream.Read(dw, SizeOf(dw)); // Offset to first IFD (usualy 8) Dec(Size, 8); // IFD0: Image file directory (main image) ReadIFD(8); // Parse IFD entries i := 0; while i < Length(FIFD) do begin case FIFD[i].DataType of 1: w:=1; // unsigned byte 2: w:=1; // ascii string (terminated with 0) 3: w:=2; // unsigned short (2 bytes) 4: w:=4; // unsigned long (4 bytes) 5: w:=8; // unsigned rational (4+4 long) else w:=1; end; c := w * FIFD[i].Count; if c > 4 then begin // Value contains offset from TIFF header to data Stream.Position := 12 + Swap(FIFD[i].Value); case FIFD[i].DataType of 2: begin Dec(c); SetLength(S, c); Stream.Read(S[1], c); end; 5: begin Stream.Read(R, SizeOf(R)); D := Swap(R.numerator) / Swap(R.denominator); end; end; end else case FIFD[i].DataType of 3: w := Swap(Word(FIFD[i].Value)); 4: dw := Swap(FIFD[i].Value); end; case FIFD[i].TagNo of // IFD0 Tags $010F: FExif.Make := S; $0110: FExif.Model := S; $0112: FExif.Orientation := w; $011A: FExif.XResolution := D; $011B: FExif.YResolution := D; $0128: FExif.ResolutionUnit := w; $0131: FExif.Software := S; $0132: FExif.DateTime := S; $013B: FExif.Artist := S; $8769: ReadIFD(dw); // offset to Exif SubIFD // Exif SubIFD Tags $829A: FExif.ExposureTime := D; $829D: FExif.FNumber := D; $A001: FExif.ColorSpace := w; $A420: FExif.ImageUniqueID := S; end; Inc(i); end; end; end; function TJpegExifReader.Orientation: smallint; begin case FExif.Orientation of 3: Result := 180; // The 0th row is at the visual bottom of the image, and the 0th column is the visual right-hand side. 6: Result := 270; // The 0th row is the visual right-hand side of the image, and the 0th column is the visual top. 8: Result := 90; // The 0th row is the visual left-hand side of the image, and the 0th column is the visual bottom. else Result := 0; end; end; function TJpegExifReader.XResolution: double; begin Result := FExif.XResolution; end; function TJpegExifReader.YResolution: double; begin Result := FExif.YResolution; end; function TJpegExifReader.ResolutionUnit: string; begin case FExif.ResolutionUnit of 2: Result := 'in'; 3: Result := 'cm'; else Result := ''; end; end; function TJpegExifReader.DateTime: TDateTime; begin if Length(FExif.DateTime) = 19 then Result := ComposeDateTime( StrToDate(Copy(FExif.DateTime,1,10), 'yyyy:mm:dd', ':'), StrToTime(Copy(FExif.DateTime,12,8), ':') ) else Result := 0; end; end. From terry at haimann.us Thu Sep 29 12:59:49 2016 From: terry at haimann.us (Terry A. Haimann) Date: Thu, 29 Sep 2016 05:59:49 -0500 Subject: [Lazarus] Can't add new form to Lazarus App In-Reply-To: <20160929095743.26c22868@limapholos.matflo.wg> References: <1475099355.25243.7.camel@Hercules> <20160929095743.26c22868@limapholos.matflo.wg> Message-ID: <1475146789.30403.3.camel@Hercules> On Thu, 2016-09-29 at 09:57 +0200, Mattias Gaertner via Lazarus wrote: > On Wed, 28 Sep 2016 16:49:15 -0500 > "Terry A. Haimann via Lazarus" wrote: > > > On an old Lazarus app (Linux) today I tried to add a form and got the > > Do you mean add a new empty form or add an existing form? A new form. > > > following: > > > > http://www.haimann.us/Images/Test.png > > I recommend to adapt the $mode and $H directive in the main source > (usually projectname.lpr). > > > > After selecting this option, the new form appears messed up. > > What means messed up? It's an empty form, isn't it? The new form and it's source will not compile unless i comment out the: {$I unit1.lrs} I tried renaming unit1 to the new unit name, but it did not like the lrs file. It refused to compile. > > > > At the > > botton of the unit.pas file the following is displayed: > > > > initialization > > {$I unit1.lrs} > > > > Even after I save the unit under another name. After compilation when > > the form is displayed via a show.modal, the form is blank. > > Is there someway to repair this app > > How do you create the form? > > Mattias From terry at haimann.us Thu Sep 29 12:59:49 2016 From: terry at haimann.us (Terry A. Haimann) Date: Thu, 29 Sep 2016 05:59:49 -0500 Subject: [Lazarus] Can't add new form to Lazarus App In-Reply-To: <20160929095743.26c22868@limapholos.matflo.wg> References: <1475099355.25243.7.camel@Hercules> <20160929095743.26c22868@limapholos.matflo.wg> Message-ID: <1475146789.30403.3.camel@Hercules> On Thu, 2016-09-29 at 09:57 +0200, Mattias Gaertner via Lazarus wrote: > On Wed, 28 Sep 2016 16:49:15 -0500 > "Terry A. Haimann via Lazarus" wrote: > > > On an old Lazarus app (Linux) today I tried to add a form and got the > > Do you mean add a new empty form or add an existing form? A new form. > > > following: > > > > http://www.haimann.us/Images/Test.png > > I recommend to adapt the $mode and $H directive in the main source > (usually projectname.lpr). > > > > After selecting this option, the new form appears messed up. > > What means messed up? It's an empty form, isn't it? The new form and it's source will not compile unless i comment out the: {$I unit1.lrs} I tried renaming unit1 to the new unit name, but it did not like the lrs file. It refused to compile. > > > > At the > > botton of the unit.pas file the following is displayed: > > > > initialization > > {$I unit1.lrs} > > > > Even after I save the unit under another name. After compilation when > > the form is displayed via a show.modal, the form is blank. > > Is there someway to repair this app > > How do you create the form? > > Mattias From nc-gaertnma at netcologne.de Thu Sep 29 13:17:29 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 29 Sep 2016 13:17:29 +0200 Subject: [Lazarus] Can't add new form to Lazarus App In-Reply-To: <1475146789.30403.3.camel@Hercules> References: <1475099355.25243.7.camel@Hercules> <20160929095743.26c22868@limapholos.matflo.wg> <1475146789.30403.3.camel@Hercules> Message-ID: <20160929131729.0597cf93@limapholos.matflo.wg> On Thu, 29 Sep 2016 05:59:49 -0500 "Terry A. Haimann" wrote: >[...] > > What means messed up? It's an empty form, isn't it? > > The new form and it's source will not compile unless i comment out the: > > {$I unit1.lrs} > > I tried renaming unit1 to the new unit name, but it did not like the lrs > file. It refused to compile. How did you create the form? Can you post the first few lines of the unit1.lrs? Mattias From luca at wetron.es Thu Sep 29 19:35:33 2016 From: luca at wetron.es (Luca Olivetti) Date: Thu, 29 Sep 2016 19:35:33 +0200 Subject: [Lazarus] lazarus 1.6+fpc 2.6.4, win32, crashes in iphtml.pas Message-ID: <8aa6745c-fa80-4aa2-351d-d11325b9a6de@wetron.es> Hello, I'm playing with lazarus 1.6 (a bit late, I know) with fpc 2.6.4, win32, and I have a strange problem with the ide: the object inspector information box shows nothing and, eventually, when I click on fields in the object inspector, lazarus becomes unresponsive and then crashes. If try to begug the ide under lazarus (tried both with the old 1.4.4 and the new 1.6), I see that it crashes in the heap manager (heap.inc) when it tries to allocate 1117978624 bytes (!) This is the call stack: #0 HANDLEERRORADDRFRAME(-1, 0x7c9201e0, 0x7c91e920) at D:\fpc-2.6.4\rtl\inc\system.inc:962 #1 HANDLEERRORFRAME(203, 0x10f6f92c) at D:\fpc-2.6.4\rtl\inc\system.inc:992 #2 HANDLEERROR(203) at D:\fpc-2.6.4\rtl\inc\system.inc:1002 #3 ALLOC_OSCHUNK(0x17619c4, 0, 1117978624) at D:\fpc-2.6.4\rtl\inc\heap.inc:833 #4 SYSGETMEM_VAR(1117973760) at D:\fpc-2.6.4\rtl\inc\heap.inc:1006 #5 SYSGETMEM(1117973760) at D:\fpc-2.6.4\rtl\inc\heap.inc:1050 #6 GETMEM(0x1b, 1117973745) at D:\fpc-2.6.4\rtl\inc\heap.inc:251 #7 NEWANSISTRING(1117973736) at D:\fpc-2.6.4\rtl\inc\astrings.inc:64 #8 FPC_TRUELY_ANSISTR_UNIQUE(0xfda683) at D:\fpc-2.6.4\rtl\inc\astrings.inc:659 #9 fpc_ansistr_unique at D:\fpc-2.6.4\rtl\i386\i386.inc:1585 #10 UPPERCASE(0xfda683 #255#139'E'#152#137'E'#248#198'E'#224, 0xfda683 #255#139'E'#152#137'E'#248#198'E'#224) at D:\fpc-2.6.4\rtl\objpas\sysutils\sysstr.inc:97 #11 TIPHTML__NEXTTOKEN() at iphtml.pas:5132 #12 TIPHTML__PARSEHEAD(0x154e04c0, ) at iphtml.pas:5451 #13 TIPHTML__PARSEHTML() at iphtml.pas:7474 #14 TIPHTML__PARSE() at iphtml.pas:7538 #15 TIPHTML__LOADFROMSTREAM(0x131e14c0, ) at iphtml.pas:4725 #16 TLAZIPHTMLCONTROL__SETHTMLCONTENT(0x131e14c0, 0x0, ) at ipidehtmlcontrol.pas:368 #17 TMAINIDE__OICHANGEDTIMERTIMER(0x1324fc48, ) at main.pp:11811 #18 TCUSTOMTIMER__DOONTIMER() at customtimer.pas:175 #19 TCUSTOMTIMER__TIMER() at customtimer.pas:150 #20 TIMERCALLBACKPROC(0, 275, 20158, 489829657) at .\win32\win32callback.inc:2773 #21 USER32!GetDC at :0 #22 ?? at :0 The strange things is the transition between #10 and #11, line 5132 of iphtml.pas *doesn't* call uppercase, it is ParmName := ParmString and ParmString is function ParmString: string; begin if PBW = 0 then Result := '' else begin ParmBuf[PBW] := #0; Result := StrPas(ParmBuf); PBW := 0; end; end; Maybe there's a stray pointer somewhere that messes up the stack? If I uninstall turbopower_ipro I get the plain text information box in the object inspector and no crashes. If I run lazarus directly under gdb, I get a different backtrace (but still crashes in TIpHtml.ParseHead): Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 3692.0x340] fpc_ansistr_decr_ref (S=0xfda682) at D:/fpc-2.6.4/rtl/i386/i386.inc:1542 1542 decl (%edx) (gdb) bt #0 fpc_ansistr_decr_ref (S=0xfda682) at D:/fpc-2.6.4/rtl/i386/i386.inc:1542 #1 0x10f6f810 in ?? () #2 0x00fdb714 in TIPHTML__PARSEHEAD (PARENT=0x13821af0, this=) at iphtml.pas:5451 #3 0x00fe2865 in TIPHTML__PARSEHTML (this=) at iphtml.pas:7474 #4 0x00fe2b96 in TIPHTML__PARSE (this=) at iphtml.pas:7538 #5 0x00fd99fa in TIPHTML__LOADFROMSTREAM (S=0x1388c0c8, this=) at iphtml.pas:4725 #6 0x01032007 in TLAZIPHTMLCONTROL__SETHTMLCONTENT (STREAM=0x1388c0c8, NEWURL=0x0, this=) at ipidehtmlcontrol.pas:368 #7 0x00793a62 in DOHTML (parentfp=0x10f6fa84) at idehelpintf.pas:345 #8 0x00793913 in THINTWINDOWMANAGER__SHOWHINT (SCREENPOS=..., THEHINT=0x14ad8838 ''#13#10''#13#10''#13#10'
'..., this=) at idehelpintf.pas:367 #9 0x00849258 in TSOURCEEDITORHINTWINDOWMANAGER__ACTIVATEHINT ( SCREENRECT=..., ABASEURL=0x138b56c 'lazdoc://', AHINT=0x14ad8838 ''#13#10''#13#10''#13#10'
'..., AAUTOSHOWN=true, this=) at sourceeditor.pp:1907 #10 0x0086589b in TSOURCEEDITORMANAGER__ACTIVATEHINT (SCREENRECT=..., BASEURL=0x138b56c 'lazdoc://', THEHINT=0x14ad8838 ''#13#10''#13#10''#13#10'
'..., AUTOSHOWN=true, this=) at sourceeditor.pp:10685 #11 0x0084dbf0 in TSOURCEEDITOR__ACTIVATEHINT (CLIENTRECT=..., ABASEURL=0x138b56c 'lazdoc://', AHINT=0x14ad8838 ''#13#10''#13#10''#13#10'
'..., AAUTOSHOWN=true, this=) at sourceeditor.pp:3304 #12 0x00470cd8 in TMAINIDE__ONSRCNOTEBOOKSHOWHINTFORSOURCE ( SRCEDIT=0x128142c0, CARETPOS=..., AUTOSHOWN=true, this=) at main.pp:10818 #13 0x0086074a in TSOURCENOTEBOOK__SHOWSYNEDITHINT (MOUSEPOS=..., this=) at sourceeditor.pp:8860 #14 0x00849745 in TSOURCEEDITORHINTWINDOWMANAGER__HINTTIMER ( SENDER=0x1337d598, this=) at sourceeditor.pp:1991 #15 0x006009a3 in TCUSTOMTIMER__DOONTIMER (this=) at customtimer.pas:175 #16 0x0060092a in TCUSTOMTIMER__TIMER (this=) at customtimer.pas:150 #17 0x005581a0 in TIMERCALLBACKPROC (WINDOW_HWND=0, MSG=275, IDEVENT=18759, DWTIME=489955458) at ./win32/win32callback.inc:2773 #18 0x7e398734 in USER32!GetDC () from C:\WINDOWS\system32\user32.dll #19 0x00000000 in ?? () (gdb) I tried both 1.6 and the fixes_1_6 branch with the same result. Under Linux, where I'm using fpc 3.0.0, I have no such problems. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 From terry at haimann.us Thu Sep 29 21:26:02 2016 From: terry at haimann.us (Terry A. Haimann) Date: Thu, 29 Sep 2016 14:26:02 -0500 Subject: [Lazarus] Can't add new form to Lazarus App In-Reply-To: <20160929131729.0597cf93@limapholos.matflo.wg> References: <1475099355.25243.7.camel@Hercules> <20160929095743.26c22868@limapholos.matflo.wg> <1475146789.30403.3.camel@Hercules> <20160929131729.0597cf93@limapholos.matflo.wg> Message-ID: <1475177162.3893.3.camel@Mercury> On Thu, 2016-09-29 at 13:17 +0200, Mattias Gaertner via Lazarus wrote: > On Thu, 29 Sep 2016 05:59:49 -0500 > "Terry A. Haimann" wrote: > > >[...] > > > What means messed up? It's an empty form, isn't it? > > > > The new form and it's source will not compile unless i comment out the: > > > > {$I unit1.lrs} > > > > I tried renaming unit1 to the new unit name, but it did not like the lrs > > file. It refused to compile. > > How did you create the form? > Can you post the first few lines of the unit1.lrs? > > Mattias I created the form by clicking on NewForm and then I tried to rename it from the Object Inspector. I am running Lazarus 1.2.4 This app has probably been used by several versions of Lazarus. Terry It renamed it to the new filename: { This is an automatically generated lazarus resource file } LazarusResources.Add('TStRschForm','FORMDATA',[ 'TPF0'#11'TStRschForm'#10'StRschForm'#4'Left'#3#235#0#6'Height'#3#240#0#3'Top' +#3#145#0#5'Width'#3#250#2#7'Caption'#6#10'StRschForm'#12'ClientHeight'#3#240 +#0#11'ClientWidth'#3#250#2#10'LCLVersion'#6#7'1.2.4.0'#0#6'TLabel'#6'Label1' +#4'Left'#2#24#6'Height'#2#15#3'Top'#2#30#5'Width'#2#23#7'Caption'#6#4'Test' +#11'ParentColor'#8#0#0#0 ]); From terry at haimann.us Thu Sep 29 21:26:02 2016 From: terry at haimann.us (Terry A. Haimann) Date: Thu, 29 Sep 2016 14:26:02 -0500 Subject: [Lazarus] Can't add new form to Lazarus App In-Reply-To: <20160929131729.0597cf93@limapholos.matflo.wg> References: <1475099355.25243.7.camel@Hercules> <20160929095743.26c22868@limapholos.matflo.wg> <1475146789.30403.3.camel@Hercules> <20160929131729.0597cf93@limapholos.matflo.wg> Message-ID: <1475177162.3893.3.camel@Mercury> On Thu, 2016-09-29 at 13:17 +0200, Mattias Gaertner via Lazarus wrote: > On Thu, 29 Sep 2016 05:59:49 -0500 > "Terry A. Haimann" wrote: > > >[...] > > > What means messed up? It's an empty form, isn't it? > > > > The new form and it's source will not compile unless i comment out the: > > > > {$I unit1.lrs} > > > > I tried renaming unit1 to the new unit name, but it did not like the lrs > > file. It refused to compile. > > How did you create the form? > Can you post the first few lines of the unit1.lrs? > > Mattias I created the form by clicking on NewForm and then I tried to rename it from the Object Inspector. I am running Lazarus 1.2.4 This app has probably been used by several versions of Lazarus. Terry It renamed it to the new filename: { This is an automatically generated lazarus resource file } LazarusResources.Add('TStRschForm','FORMDATA',[ 'TPF0'#11'TStRschForm'#10'StRschForm'#4'Left'#3#235#0#6'Height'#3#240#0#3'Top' +#3#145#0#5'Width'#3#250#2#7'Caption'#6#10'StRschForm'#12'ClientHeight'#3#240 +#0#11'ClientWidth'#3#250#2#10'LCLVersion'#6#7'1.2.4.0'#0#6'TLabel'#6'Label1' +#4'Left'#2#24#6'Height'#2#15#3'Top'#2#30#5'Width'#2#23#7'Caption'#6#4'Test' +#11'ParentColor'#8#0#0#0 ]); From nc-gaertnma at netcologne.de Thu Sep 29 21:40:13 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 29 Sep 2016 21:40:13 +0200 Subject: [Lazarus] Can't add new form to Lazarus App In-Reply-To: <1475177162.3893.3.camel@Mercury> References: <1475099355.25243.7.camel@Hercules> <20160929095743.26c22868@limapholos.matflo.wg> <1475146789.30403.3.camel@Hercules> <20160929131729.0597cf93@limapholos.matflo.wg> <1475177162.3893.3.camel@Mercury> Message-ID: <20160929214013.164f6a1d@limapholos.matflo.wg> On Thu, 29 Sep 2016 14:26:02 -0500 "Terry A. Haimann" wrote: > On Thu, 2016-09-29 at 13:17 +0200, Mattias Gaertner via Lazarus wrote: > > On Thu, 29 Sep 2016 05:59:49 -0500 > > "Terry A. Haimann" wrote: > > > > >[...] > > > > What means messed up? It's an empty form, isn't it? > > > > > > The new form and it's source will not compile unless i comment out the: > > > > > > {$I unit1.lrs} > > > > > > I tried renaming unit1 to the new unit name, but it did not like the lrs > > > file. It refused to compile. > > > > How did you create the form? > > Can you post the first few lines of the unit1.lrs? > > > > Mattias > > I created the form by clicking on NewForm and then I tried to rename it > from the Object Inspector. I am running Lazarus 1.2.4 This app has > probably been used by several versions of Lazarus. > > Terry > > > It renamed it to the new filename: > > { This is an automatically generated lazarus resource file } > > LazarusResources.Add('TStRschForm','FORMDATA',[ > > 'TPF0'#11'TStRschForm'#10'StRschForm'#4'Left'#3#235#0#6'Height'#3#240#0#3'Top' > > +#3#145#0#5'Width'#3#250#2#7'Caption'#6#10'StRschForm'#12'ClientHeight'#3#240 > > +#0#11'ClientWidth'#3#250#2#10'LCLVersion'#6#7'1.2.4.0'#0#6'TLabel'#6'Label1' > > +#4'Left'#2#24#6'Height'#2#15#3'Top'#2#30#5'Width'#2#23#7'Caption'#6#4'Test' > +#11'ParentColor'#8#0#0#0 > ]); Ok. So it is *not* an empty form. Please post the whole unit and the compiler error you get. Mattias From ganmax at narod.ru Thu Sep 29 23:38:39 2016 From: ganmax at narod.ru (Maxim Ganetsky) Date: Fri, 30 Sep 2016 00:38:39 +0300 Subject: [Lazarus] Can't add new form to Lazarus App In-Reply-To: <1475177162.3893.3.camel@Mercury> References: <1475099355.25243.7.camel@Hercules> <20160929095743.26c22868@limapholos.matflo.wg> <1475146789.30403.3.camel@Hercules> <20160929131729.0597cf93@limapholos.matflo.wg> <1475177162.3893.3.camel@Mercury> Message-ID: <9da3d896-897b-8d17-4d11-ab09407f0185@narod.ru> 29.09.2016 22:26, Terry A. Haimann via Lazarus пишет: > I created the form by clicking on NewForm and then I tried to rename it > from the Object Inspector. I am running Lazarus 1.2.4 This app has Lazarus 1.2.4? Is it a joke? > probably been used by several versions of Lazarus. -- Best regards, Maxim Ganetsky mailto:ganmax at narod.ru From brian at meadows.pair.com Fri Sep 30 03:57:11 2016 From: brian at meadows.pair.com (brian) Date: Thu, 29 Sep 2016 21:57:11 -0400 Subject: [Lazarus] Can't add new form to Lazarus App In-Reply-To: <9da3d896-897b-8d17-4d11-ab09407f0185@narod.ru> References: <1475099355.25243.7.camel@Hercules> <20160929095743.26c22868@limapholos.matflo.wg> <1475146789.30403.3.camel@Hercules> <20160929131729.0597cf93@limapholos.matflo.wg> <1475177162.3893.3.camel@Mercury> <9da3d896-897b-8d17-4d11-ab09407f0185@narod.ru> Message-ID: On Fri, 30 Sep 2016 00:38:39 +0300, Maxim Ganetsky wrote: >29.09.2016 22:26, Terry A. Haimann via Lazarus ?????: >> I created the form by clicking on NewForm and then I tried to rename it >> from the Object Inspector. I am running Lazarus 1.2.4 This app has > >Lazarus 1.2.4? Is it a joke? > This is straying from the point, but anybody who has worked for a LARGE (probably governmental) bureaucracy is likely to be all too familiar with being forced to use out-of-date software. Performing 'unapproved' upgrades may well mean disciplinary proceedings. Yes, I've had to work under those conditions. :( I completely understand the logic for the Lazarus developers wanting to know whether a problem can be reproduced with the latest version. You just have to remember that some people aren't allowed to use that version, as much as they would like to do so. Brian. From luca at wetron.es Fri Sep 30 11:15:26 2016 From: luca at wetron.es (Luca Olivetti) Date: Fri, 30 Sep 2016 11:15:26 +0200 Subject: [Lazarus] lazarus 1.6+fpc 2.6.4, win32, crashes in iphtml.pas In-Reply-To: <8aa6745c-fa80-4aa2-351d-d11325b9a6de@wetron.es> References: <8aa6745c-fa80-4aa2-351d-d11325b9a6de@wetron.es> Message-ID: <34b24cb4-75e1-9a88-1399-81ca917b81a4@wetron.es> El 29/09/16 a les 19:35, Luca Olivetti via Lazarus ha escrit: > Hello, > > I'm playing with lazarus 1.6 (a bit late, I know) with fpc 2.6.4, win32, > and I have a strange problem with the ide: > the object inspector information box shows nothing and, eventually, when > I click on fields in the object inspector, lazarus becomes unresponsive > and then crashes. > If try to begug the ide under lazarus (tried both with the old 1.4.4 and > the new 1.6), I see that it crashes in the heap manager (heap.inc) when > it tries to allocate 1117978624 bytes (!) > This is the call stack: [snip] FWIW, "transplanting" the version of turbopower_ipro from lazarus 1.4.4 to 1.6 (and defining html_print in its lpk otherwise it doesn't compile) "solves" this problem. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 From luca at wetron.es Fri Sep 30 12:27:46 2016 From: luca at wetron.es (Luca Olivetti) Date: Fri, 30 Sep 2016 12:27:46 +0200 Subject: [Lazarus] lazarus 1.6+fpc 2.6.4, win32, crashes in iphtml.pas In-Reply-To: <34b24cb4-75e1-9a88-1399-81ca917b81a4@wetron.es> References: <8aa6745c-fa80-4aa2-351d-d11325b9a6de@wetron.es> <34b24cb4-75e1-9a88-1399-81ca917b81a4@wetron.es> Message-ID: El 30/09/16 a les 11:15, Luca Olivetti via Lazarus ha escrit: > El 29/09/16 a les 19:35, Luca Olivetti via Lazarus ha escrit: >> Hello, >> >> I'm playing with lazarus 1.6 (a bit late, I know) with fpc 2.6.4, win32, >> and I have a strange problem with the ide: >> the object inspector information box shows nothing and, eventually, when >> I click on fields in the object inspector, lazarus becomes unresponsive >> and then crashes. >> If try to begug the ide under lazarus (tried both with the old 1.4.4 and >> the new 1.6), I see that it crashes in the heap manager (heap.inc) when >> it tries to allocate 1117978624 bytes (!) >> This is the call stack: > > [snip] > > FWIW, "transplanting" the version of turbopower_ipro from lazarus 1.4.4 > to 1.6 (and defining html_print in its lpk otherwise it doesn't compile) > "solves" this problem. I now found that the problem is with the directive {$MODESWITCH NESTEDPROCVARS}. If I compile the old turbopower_ipro with this directive (even if it doesn't need it) it doesn't work (the information box doesn't show anything, though I didn't manage to crash lazarus yet), while if I rewrite the new iphtml.pas in order to remove the directive it works OK. A bug in fpc 2.6.4? Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 From nc-gaertnma at netcologne.de Fri Sep 30 12:46:56 2016 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Fri, 30 Sep 2016 12:46:56 +0200 Subject: [Lazarus] lazarus 1.6+fpc 2.6.4, win32, crashes in iphtml.pas In-Reply-To: References: <8aa6745c-fa80-4aa2-351d-d11325b9a6de@wetron.es> <34b24cb4-75e1-9a88-1399-81ca917b81a4@wetron.es> Message-ID: <20160930124656.2bab7644@limapholos.matflo.wg> On Fri, 30 Sep 2016 12:27:46 +0200 Luca Olivetti via Lazarus wrote: >[...] > > FWIW, "transplanting" the version of turbopower_ipro from lazarus 1.4.4 > > to 1.6 (and defining html_print in its lpk otherwise it doesn't compile) > > "solves" this problem. > > I now found that the problem is with the directive > > {$MODESWITCH NESTEDPROCVARS}. > > If I compile the old turbopower_ipro with this directive (even if it > doesn't need it) it doesn't work (the information box doesn't show > anything, though I didn't manage to crash lazarus yet), while if I > rewrite the new iphtml.pas in order to remove the directive it works OK. Does that mean you will provide a patch to fix this? > A bug in fpc 2.6.4? Maybe. Although it exists since 2.6.0. Mattias From lazarus at kluug.net Fri Sep 30 12:51:29 2016 From: lazarus at kluug.net (Ondrej Pokorny) Date: Fri, 30 Sep 2016 12:51:29 +0200 Subject: [Lazarus] lazarus 1.6+fpc 2.6.4, win32, crashes in iphtml.pas In-Reply-To: References: <8aa6745c-fa80-4aa2-351d-d11325b9a6de@wetron.es> <34b24cb4-75e1-9a88-1399-81ca917b81a4@wetron.es> Message-ID: <2b686cef-f2ca-67f4-8f47-4c5d5bbdcab6@kluug.net> On 30.09.2016 12:27, Luca Olivetti via Lazarus wrote: > If I compile the old turbopower_ipro with this directive (even if it > doesn't need it) it doesn't work (the information box doesn't show > anything, though I didn't manage to crash lazarus yet), while if I > rewrite the new iphtml.pas in order to remove the directive it works OK. Strange, there is no {$MODESWITCH NESTEDPROCVARS} directive in my Lazarus trunk\components\turbopower_ipro\iphtml.pas or any other file (except of one file in examples). Ondrej From luca at wetron.es Fri Sep 30 12:57:10 2016 From: luca at wetron.es (Luca Olivetti) Date: Fri, 30 Sep 2016 12:57:10 +0200 Subject: [Lazarus] lazarus 1.6+fpc 2.6.4, win32, crashes in iphtml.pas In-Reply-To: <2b686cef-f2ca-67f4-8f47-4c5d5bbdcab6@kluug.net> References: <8aa6745c-fa80-4aa2-351d-d11325b9a6de@wetron.es> <34b24cb4-75e1-9a88-1399-81ca917b81a4@wetron.es> <2b686cef-f2ca-67f4-8f47-4c5d5bbdcab6@kluug.net> Message-ID: <98ab6e54-bf20-e4f7-b4ed-73a3a81e6c9b@wetron.es> El 30/09/16 a les 12:51, Ondrej Pokorny via Lazarus ha escrit: > On 30.09.2016 12:27, Luca Olivetti via Lazarus wrote: >> If I compile the old turbopower_ipro with this directive (even if it >> doesn't need it) it doesn't work (the information box doesn't show >> anything, though I didn't manage to crash lazarus yet), while if I >> rewrite the new iphtml.pas in order to remove the directive it works OK. > > Strange, there is no {$MODESWITCH NESTEDPROCVARS} directive in my > Lazarus trunk\components\turbopower_ipro\iphtml.pas or any other file > (except of one file in examples). ipdefine.inc. An it's not the only file using it: lcl/grids.pas components/lazdebuggergdbmi/gdbmidebugger.pp components/debuggerintf/dbgintfdebuggerbase.pp components/lazutils/lcsvutils.pas Which could explain some other random crashes I saw Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 From lazarus at kluug.net Fri Sep 30 13:01:29 2016 From: lazarus at kluug.net (Ondrej Pokorny) Date: Fri, 30 Sep 2016 13:01:29 +0200 Subject: [Lazarus] lazarus 1.6+fpc 2.6.4, win32, crashes in iphtml.pas In-Reply-To: <98ab6e54-bf20-e4f7-b4ed-73a3a81e6c9b@wetron.es> References: <8aa6745c-fa80-4aa2-351d-d11325b9a6de@wetron.es> <34b24cb4-75e1-9a88-1399-81ca917b81a4@wetron.es> <2b686cef-f2ca-67f4-8f47-4c5d5bbdcab6@kluug.net> <98ab6e54-bf20-e4f7-b4ed-73a3a81e6c9b@wetron.es> Message-ID: <1bb4f69f-0dca-cc05-4588-89715d349c0f@kluug.net> On 30.09.2016 12:57, Luca Olivetti via Lazarus wrote: > El 30/09/16 a les 12:51, Ondrej Pokorny via Lazarus ha escrit: >> On 30.09.2016 12:27, Luca Olivetti via Lazarus wrote: >>> If I compile the old turbopower_ipro with this directive (even if it >>> doesn't need it) it doesn't work (the information box doesn't show >>> anything, though I didn't manage to crash lazarus yet), while if I >>> rewrite the new iphtml.pas in order to remove the directive it works >>> OK. >> >> Strange, there is no {$MODESWITCH NESTEDPROCVARS} directive in my >> Lazarus trunk\components\turbopower_ipro\iphtml.pas or any other file >> (except of one file in examples). > > ipdefine.inc. Already fixed in trunk. See http://mantis.freepascal.org/view.php?id=29982 I'll add it to merge list for 1.6 Ondrej From luca at wetron.es Fri Sep 30 13:02:26 2016 From: luca at wetron.es (Luca Olivetti) Date: Fri, 30 Sep 2016 13:02:26 +0200 Subject: [Lazarus] lazarus 1.6+fpc 2.6.4, win32, crashes in iphtml.pas In-Reply-To: <20160930124656.2bab7644@limapholos.matflo.wg> References: <8aa6745c-fa80-4aa2-351d-d11325b9a6de@wetron.es> <34b24cb4-75e1-9a88-1399-81ca917b81a4@wetron.es> <20160930124656.2bab7644@limapholos.matflo.wg> Message-ID: <328e84bc-8838-2824-37dc-fc799fbaca18@wetron.es> El 30/09/16 a les 12:46, Mattias Gaertner via Lazarus ha escrit: > On Fri, 30 Sep 2016 12:27:46 +0200 > Luca Olivetti via Lazarus wrote: > >> [...] >>> FWIW, "transplanting" the version of turbopower_ipro from lazarus 1.4.4 >>> to 1.6 (and defining html_print in its lpk otherwise it doesn't compile) >>> "solves" this problem. >> >> I now found that the problem is with the directive >> >> {$MODESWITCH NESTEDPROCVARS}. >> >> If I compile the old turbopower_ipro with this directive (even if it >> doesn't need it) it doesn't work (the information box doesn't show >> anything, though I didn't manage to crash lazarus yet), while if I >> rewrite the new iphtml.pas in order to remove the directive it works OK. > > Does that mean you will provide a patch to fix this? Yes, attached (beware, made under windows with TortoiseSVN), but it's less "elegant" that the solution with nestedprocvars (if it is supposed to work). And, as I said to Ondrej, there are more units using that switch. > >> A bug in fpc 2.6.4? > > Maybe. Although it exists since 2.6.0. I could file a bug then but I'm afraid I cannot produce a simple test case. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 -------------- next part -------------- A non-text attachment was scrubbed... Name: nonestedprocs.patch Type: text/x-patch Size: 3350 bytes Desc: not available URL: From luca at wetron.es Fri Sep 30 13:15:08 2016 From: luca at wetron.es (Luca Olivetti) Date: Fri, 30 Sep 2016 13:15:08 +0200 Subject: [Lazarus] lazarus 1.6+fpc 2.6.4, win32, crashes in iphtml.pas In-Reply-To: <1bb4f69f-0dca-cc05-4588-89715d349c0f@kluug.net> References: <8aa6745c-fa80-4aa2-351d-d11325b9a6de@wetron.es> <34b24cb4-75e1-9a88-1399-81ca917b81a4@wetron.es> <2b686cef-f2ca-67f4-8f47-4c5d5bbdcab6@kluug.net> <98ab6e54-bf20-e4f7-b4ed-73a3a81e6c9b@wetron.es> <1bb4f69f-0dca-cc05-4588-89715d349c0f@kluug.net> Message-ID: <4ec2c024-27e8-1e64-7fb4-f53fcb792250@wetron.es> El 30/09/16 a les 13:01, Ondrej Pokorny via Lazarus ha escrit: > On 30.09.2016 12:57, Luca Olivetti via Lazarus wrote: >> El 30/09/16 a les 12:51, Ondrej Pokorny via Lazarus ha escrit: >>> On 30.09.2016 12:27, Luca Olivetti via Lazarus wrote: >>>> If I compile the old turbopower_ipro with this directive (even if it >>>> doesn't need it) it doesn't work (the information box doesn't show >>>> anything, though I didn't manage to crash lazarus yet), while if I >>>> rewrite the new iphtml.pas in order to remove the directive it works >>>> OK. >>> >>> Strange, there is no {$MODESWITCH NESTEDPROCVARS} directive in my >>> Lazarus trunk\components\turbopower_ipro\iphtml.pas or any other file >>> (except of one file in examples). >> >> ipdefine.inc. > > Already fixed in trunk. See http://mantis.freepascal.org/view.php?id=29982 > > I'll add it to merge list for 1.6 Duh, basically is the same fix I just sent. I deserve it for not checking trunk. However, if the problem is with {$MODESWITCH NESTEDPROCVARS} and fpc 2.6.4, there are still a handful of units that use it in trunk: lcl/grids.pas components/lazdebuggergdbmi/gdbmidebugger.pp components/debuggerintf/dbgintfdebuggerbase.pp components/fpdebug/app/fpdserver/debugthreadcommand.pas components/turbopower_ipro/examples/sumabfrm.pas components/lazutils/lcsvutils.pas Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 From Sascha.Hestermann at gmx.de Fri Sep 30 22:52:16 2016 From: Sascha.Hestermann at gmx.de (Sascha.Hestermann) Date: RANDOM_Fri, 30 Sep 2016 23:52:16 +0300 Subject: [Lazarus] that's surprised me a lot Message-ID: <00002e1b49a2$abce09e1$02b207d2$@gmx.de> Dear, I've read something interesting recently, so I decided to show it to you. It is something really surprising, please take a look Thanks for your consideration, Sascha.Hestermann -------------- next part -------------- An HTML attachment was scrubbed... URL: