[Lazarus] Build error with fixes_3_0 and FPC current main (3.3.1)
Hi All, Free Pascal Compiler version 3.3.1 [2023/08/20] for x86_64 Copyright (c) 1993-2023 by Florian Klaempfl and others (1002) Target OS: Win64 for x64 (3104) Compiling lazarus.pp e:\Lazarus\fixes_3_0\ide\lazarus.pp(121,20) Warning: (5044) Symbol "MainFormOnTaskBar" is not portable (9022) Compiling resource ..\units\x86_64-win64\win32\lazarus.obj (9015) Linking ..\lazarus.exe e:\Lazarus\fixes_3_0\ide\lazarus.pp(171,1) Error: (9221) Undefined symbol: TC_$FPDMEMORYTOOLS_$$__zero_$FPDMEMORYTOOLS_$$_TFPDBGMEMLOCATION (first seen in fpdebugvalueconvertors.o) e:\Lazarus\fixes_3_0\ide\lazarus.pp(171,1) Fatal: (10026) There were 1 errors compiling module, stopping Fatal: (1018) Compilation aborted make[2]: *** [lazarus.exe] Error 1 make[2]: Leaving directory `e:/Lazarus/fixes_3_0/ide' make[1]: *** [ide] Error 2 make[1]: Leaving directory `e:/Lazarus/fixes_3_0/ide' make: *** [ide] Error 2 Gabor -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] Codetools - "Error: identifier not found: Boolean8"
Hi All, FPC main and Lazarus fixes_2_2 or main. If double click on the new project's main form got "identifier not found: Boolean8". Is this a Lazarus or FPC problem? Gabor -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] FpDebug with aarch64-linux
Hi All, FPC 3.3.1, Lazarus fixes_2_2, LazDebuggerFp installed and configured in Tools/Options. If start the project got "Error starting process in debugger". With gdb works as expected. Is FpDebug not supported on aarch64? Gabor -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Start application maximized with a shortcut
2021.09.06. 22:25 keltezéssel, Bart via lazarus írta: On Sun, Sep 5, 2021 at 10:42 AM Gabor Boros via lazarus wrote: Create a new "Application", compile it. Send a shortcut from project1.exe to the desktop. At shortcut's properties change "Run" to "Maximized". Start the application with the shortcut, its not maximized. I can confirm that. Is it a bug? Apparently. You could file a bugreport. Thank you Bart! https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39363 Gabor -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] Start application maximized with a shortcut
Hi All, FPC 3.2.2, Lazarus fixes_2_2, Windows 10 64bit. Create a new "Application", compile it. Send a shortcut from project1.exe to the desktop. At shortcut's properties change "Run" to "Maximized". Start the application with the shortcut, its not maximized. Do the same with Delphi 7 or 10.4.2 and the application starts as maximized. Is it a bug? Gabor -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] How to break a popup menu into multiple columns on Windows?
Hi All, I need a multi-column popup menu on Windows. I found a solution on the forum (see below) but it not working for me. The popup menu created at run-time. Any idea? https://forum.lazarus.freepascal.org/index.php/topic,29912.msg189835.html#msg189835 Gabor -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Where to define conditionals for FPC
2020. 05. 08. 14:07 keltezéssel, Bo Berglund via lazarus írta: I know that you can define "custom options" in Lazarus Project/Options/CompilerOptions/CustomOptions/Defines These can then be used in constructs like this example: {$IFDEF USE_LAZSERIAL} //Code pertaining to LazSerial {$ELSE} //Code pertaining to AsyncPro {$ENDIF} But if I do not want to use Lazarus, how do I set the conditionals I want to use? Compile with "fpc ... -dUSE_LAZSERIAL". Gabor -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] SVN checkout error
Hi All, I have problem with SVN checkout of fixes_2_0 branch (https://svn.freepascal.org/svn/lazarus/branches/fixes_2_0). Tried with TortoiseSVN on Windows (with two different PCs at two different locations(cities) with two different ISPs) and got "ra_serf: The server sent a truncated HTTP response body.". Any idea why and how to solve? Gabor -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] Install LazDebuggerFp with trunk
Hi All, If I try to install LazDebuggerFp package with trunk(62522) got the attached error. Any idea why? (I can install other packages e.g. Printer4Lazarus.) Gabor -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] SynEdit - SQL highlighter with $ in keywords
2019. 11. 10. 19:51 keltezéssel, Gerd Sager via lazarus írta: Hi Gabor, have a look at the implementation of TSynSQLSyn.GetIdentChars(). You could add somthing like if fDialect = sqlFirebird30 then Include(Result, '$'); Gerd Works like a charm. Thank you very much Gerd! Gabor -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] SynEdit - SQL highlighter with $ in keywords
Hi All, I try to extend TSynSQLSyn with keyword lists of Firebird 2.5, 3.0 and 4.0. Every keyword included in one list/version and used as tKey (e.g. sqlFirebird30: EnumerateKeywords(Ord(tkKey), Firebird30KW, IdentChars, @DoAddKeyword);). Some keywords contains a $ sign (RDB$DB_KEY, RDB$GET_CONTEXT, RDB$RECORD_VERSION, RDB$SET_CONTEXT). If I try to use the new highlighters got "Keyword "RDB" already in list with value "sqlFirebird30"". (I tried with actual trunk.) Any idea why and how to solve the problem? Gabor -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] SynEdit - Why a new line added at the end of the text?
Hi All, procedure TForm1.Button1Click(Sender: TObject); var SE:TSynEdit; begin SE:=TSynEdit.Create(Self); SE.Text:='abc'; ShowMessage('*'+SE.Text+'*'); For me the above code show the next message: *abc * Any idea why a new line added? With TMemo the result: *abc* I use fixes_2_0 with FPC fixes_3_2 on Windows 64bit. Gabor -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] FPDebug - Which Dwarf?
Hi All, I use Lazarus fixes_2_0 and FPC fixes_3_2 (OS_TARGET=win64 CPU_TARGET=x86_64). Which is the best Dwarf selection for this combination and FPDebug? Gabor -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] lazreport to fpReport converter
2018. 05. 06. 12:47 keltezéssel, Graeme Geldenhuys via Lazarus írta: Kudos to Christian. The last push to finally say goodbye to LazReport. Also well done to all that took the original fpReport and ran with it - improving and fixing it further than the time I had available. The absolute joy of seeing open source development at its best. FPC really have a gem of a reporting tool now! Is it have LazReport like script feature? Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] LazReport - Build variable or field names in script
Hi All, I can build variable TEXT := '[PAGE_LNG_' + [LNG_ID] + ']: [PAGE#]'; and field TEXT := '[BDS.PAGE_LNG_' + [LNG_ID] + ']: [PAGE#]'; names in this way. LNG_ID is a report variable with a numeric value and the showed captions or used field names depends on it. I try to eliminate the if then else if then else if then else ... chains which give back the result depend on the language. Is this the good/safe solution? Any simpler/better exists? Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Control's default Height and AutoSize
2018. 05. 14. 14:33 keltezéssel, zeljko írta: Default TEdit height (autosize=true) depends on Qt4 theme. Some themes, eg KDE breeze from fedora 26 gives 28 px which is taken from the current desktop environment, but eg -style windows it's size is 23. Thank you! After read your answer I realized RHEL use it's own RHEL7 named theme not the default Oxygen. Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] Control's default Height and AutoSize
Hi All, I have three machines. One physical with Windows 10 (1703) and two virtual, one with Ubuntu Server 14.04.1 + KDE4 and Qt4 and one with RHEL 7.5 + KDE4 and Qt4. Start a new project with trunk (57932), drop a TEdit on Form1 and change it's font to Droid Sans Mono Regular 10. With Windows the TEdit's original Height is 23, after font change 23 too. With Ubuntu 23 and 25, with RHEL 22 and 23. Why is the difference and what it's source? Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] How to use two different versions of FPC
Hi All, My main development toolset is FPC 3.0.4 and Lazarus fixes_1_8. Sometimes I try some things with Lazarus trunk also. It is easy. But now build up a new development machine from scratch with RHEL 7.5 on it and try to utilize FPC trunk too (with Lazarus trunk). I use "--primary-config-path" option always, so Lazarus config placement is not a problem. But the two FPC versions coexist. I found a solution from 2012 on the forum (see the link below). Is BigChimp's suggestion (1.-6.) a good starting point nowadays or something changed meanwhile in this topic. I will build everything (Lazarus fixes_1_8 and trunk, FPC trunk) from source except the actual stable FPC (now 3.0.4). https://forum.lazarus.freepascal.org/index.php/topic,15716.msg85158.html#msg85158 Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] How to catch an unhandled exception? [FIXED - but there is an FPC bug here]
2018. 03. 09. 12:09 keltezéssel, Tony Whyman via Lazarus írta: Finally, knowing all this, I go back to Gabor's program and add the line (again shown in context): repeat SQR:=SM.Query(nil,SRB); for i:=0 to SQR.GetCount-1 do begin case SQR[i].getItemType of isc_info_svc_line:begin s:=SQR[i].getAsString; end; end; if (s<>'') then WriteLn(s); s := ''; {Line added here} end; until (s=''); and guess what - bug goes away. Confirmed. Executed the Debug and Release builds more than 100 times without any exception. Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] How to catch an unhandled exception?
Hi All, The result of the attached example (which use MWA's Firebird Pascal API) for me is an exception: Gstat execution time Fri Mar 9 09:29:18 2018 Database header page information: Flags 0 Generation 173 System Change Number0 Page size 8192 ODS version 12.0 Oldest transaction 161 Oldest active 162 Oldest snapshot 162 Next transaction164 Sequence number 0 Next attachment ID 27 Implementation HW=AMD/Intel/x64 little-endian OS=Linux CC=gcc Shadow count0 Page buffers0 Next header page0 Database dialect3 Creation date Feb 2, 2018 14:07:24 Attributes force write Variable header data: *END* Gstat completion time Fri Mar 9 09:29:18 2018 Heap dump by heaptrc unit 355 memory blocks allocated : 948252/948432 355 memory blocks freed : 948252/948432 0 unfreed memory blocks : 0 True heap size : 131072 True free heap : 131072 An unhandled exception occurred at $7FF97F0A3147: EAccessViolation: $7FF97F0A3147 If comment out cthreads from the uses the exception is: An unhandled exception occurred at $7F21B71F5147: EAccessViolation: $7F21B71F5147 $7F21B71F751B $7F21B71F769C $7F21B746BFFF If run with gdb (and cthreads): Heap dump by heaptrc unit 355 memory blocks allocated : 948252/948432 355 memory blocks freed : 948252/948432 0 unfreed memory blocks : 0 True heap size : 131072 True free heap : 131072 [Thread 0x75991700 (LWP 2874) exited] [Thread 0x76192700 (LWP 2873) exited] [Thread 0x77fe3740 (LWP 2869) exited] Cannot find user-level thread for LWP 2875: generic error Any idea how to detect what/where is the source of the exception? I use Linux 64bit, FPC 3.0.4 and Lazarus fixes_1_8. Gabor FB3API_IBX.tar.gz Description: GNU Zip compressed data -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Form events firing order and count
2018. 02. 17. 17:26 keltezéssel, Graeme Geldenhuys via Lazarus írta: At the time (circa 2006) our application relied heavily on specific event orders and LCL was a nightmare - to the point that we moved to a completely different solution/toolkit. Is that nightmare exists with LCL-fpGUI also? Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] Form events firing order and count
Hi All, I want to know when a form maximized, restored or moved. But completely lost between form's events. See below what I got with the attached example project. For example 1 WindowPosChanged at application start with Linux-Qt and 3 with Windows, with Linux-Qt form maximize and restore give same result but with Windows the result different for maximize and restore, etc. *Linux-Qt* *Application start* Resize ChangeBounds WindowPosChanged Move *Form maximize* WindowStateChange Move ChangeBounds WindowPosChanged Resize *Form restore* WindowStateChange Move ChangeBounds WindowPosChanged Resize *After form move* Move *Windows* *Application start* Resize ChangeBounds WindowPosChanged Move WindowPosChanged WindowPosChanged *Form maximize* Move ChangeBounds WindowPosChanged Resize WindowStateChange WindowPosChanged *Form restore* ChangeBounds WindowPosChanged Resize WindowStateChange WindowPosChanged *Meanwhile form move* Move WindowPosChanged Move WindowPosChanged . . . Move WindowPosChanged Gabor FormEvents.tar.gz Description: GNU Zip compressed data -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] LCL-fpGUI - SIGSEGV
Hi All, I want to try LCL-fpGUI. Followed the instructions from the below wiki page, a new project compiled successfully but got error at application start. If start from the IDE got SIGSEGV, if start from command line got "Access violation". I used Lazarus trunk (57276) and fpGUI's maint branch. http://wiki.freepascal.org/fpGUI_Interface Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] Lazreport - Issues 32481, 32505, 32543
Hi All, I need some help/opinion about these issues. I solved (or half solved) all for myself, but don't know my solutions/modifications are good enough to include into the main source. https://bugs.freepascal.org/view.php?id=32481 https://bugs.freepascal.org/view.php?id=32505 https://bugs.freepascal.org/view.php?id=32543 Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] fixes_1_8 - DBLookupComboBox broken
2018. 01. 12. 15:04 keltezéssel, Werner Pamler via Lazarus írta: I committed the fix to trunk (r57060) and requested backporting to fixes. Thank you very much! :-) Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] fixes_1_8 - DBLookupComboBox broken
2018. 01. 11. 12:22 keltezéssel, Werner Pamler via Lazarus írta: Am 11.01.2018 um 10:14 schrieb Gabor Boros via Lazarus: From my POV, unacceptable if a fix broke a feature in a fixes_* branch after x.y.0 version released from it. Sorry for the inconvenience. Call it "unacceptable" or not - that's the way things are, nobody is perfect. I have no problem with you just with the broken feature. ;-) Please open "dblookupcombobox.inc" (in (lazarus)/lcl/include), find the method TDBLookupCombobox.Select and replace it by the following code which restores the code before r56990/r55911 for the case that the lookupcombobox is not ReadOnly. Your demo works here. Please test carefully - as you see I don't have any experience with that ominous Unbound mode... I switched to the latest fixes_1_8 (57037) and replaced TDBLookupCombobox.Select with the provided code. After that DBLookupCombobox works as expected for me at first try. I use it daily and will report if see problem with it. Thank you! Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] fixes_1_8 - DBLookupComboBox broken
2018. 01. 10. 21:57 keltezéssel, Werner Pamler via Lazarus írta: You did not assign a Datasource to the DBLookupCombo. This is where the value picked from the combo is stored to. Without a Datasource I consider the present hehavior to be correct. I use the DBLookupComboBox without DataSource always in the past 10-20 years with Lazarus and Delphi. From the TDBLookupComboBox's wiki page: "Unbound use - You can get the combobox to look up values from one table without storing the results in another by leaving the DataSource and the KeyField properties empty." http://wiki.freepascal.org/TDBLookupComboBox#Unbound_use From my POV, unacceptable if a fix broke a feature in a fixes_* branch after x.y.0 version released from it. Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] fixes_1_8 - DBLookupComboBox broken
2018. 01. 10. 20:06 keltezéssel, Werner Pamler via Lazarus írta: Could you check out the attached demo? It works for me with Laz trunk and fixes (both r57032) on Windows and Linux GTK2/QT (trunk tested only). The left grid shows the main dataset, the right grid is the lookup dataset. The lookup combo is at the bottom. Select an item from the combo and the CountryCode field should update accordingly. Also rotating the mouse wheel over the combobox works. Tried with fixes_1_8 56990 on Windows. Works as expected. Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] fixes_1_8 - DBLookupComboBox broken
2018. 01. 10. 18:50 keltezéssel, Juha Manninen via Lazarus írta: Is it related to this? https://bugs.freepascal.org/view.php?id=32943 I don't know. Attached a simple example. With it I can reproduce the problem on Windows too. So the problem is not Qt specific. Rev 56987 in 1_8_fixes is: "Translations: updated all LazReport translations from trunk" and does not affect DBLookupComboBox. Yes. 56987 is the last revision which works as expected. Gabor DBLookupComboBox.tar.gz Description: GNU Zip compressed data -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] fixes_1_8 - DBLookupComboBox broken
Hi All, I have a Linux-Qt application and if compile with fixes_1_8 rev 56990 or later the DBLookupComboBox not working as before. Can drop down it and select from the items with the mouse but the selection not showed. The problem not appears with rev 56987. Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] LazReport - Where the width of the designer page come from?
Hi All, LazReport's designer page with in pixels is strange for me. LazReport - 752 FreeReport - 750 FastReport - 790 FPReport - 794 Width of A4 is 210mm. 210/25.4*96=793.7. Where the 752 come from? Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] LazReport - Issues 26971 and 30466
Hi All, https://bugs.freepascal.org/view.php?id=26971 ~3 years later. Any idea? https://bugs.freepascal.org/view.php?id=30466 The KeepChild feature is very important from my POV. Please review the patch. (I have not tried yet.) Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] Strange anchoring with a ScrollBox, Panel, Label combination
Hi All, See the attached example project. If a Label wider than the owner Panel's width its (the owner Panel) resized to Label's width and the horizontal scrollbar appears in the ScrollBox. From my POV this is a bug. I am wrong? Gabor ScrollBox_Panel_Label.tar.gz Description: GNU Zip compressed data -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] Reporting engine - What it's state?
Hi All, 2015. 07. 09. 21:45 keltezéssel, Michael Van Canneyt írta: Just an opinion: I am working with Graeme Geldenhuys to create a reporting engine from scratch. I think Lazreport's design contains some fundamental flaws, which can only be remedied by re-implementing a reporting engine from scratch. Two years gone. Any news? I see "In progress" on the Foundation's page, but want to know more detailed informations. https://foundation.freepascal.org/projects/reporting-engine Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] TForm.OnChangeBounds - Windows vs Linux-Qt
Hi All, Form's OnChangeBounds event fired in different time and number on these platforms. Attached a simple example. On Windows the event firing meanwhile form moving and with Linux-Qt just when the moving ended. At a form maximize or restore with Linux-Qt the event fired twice. Where these come form? Simple platform difference or bug? Gabor Form_ChangeBounds.tar.gz Description: GNU Zip compressed data -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] fixes_1_8 - What happened with default width of DBGrid's columns?
Hi All, I switched from revision 54808 to 55332 and got different default column widths. Reported as bug. I hope Ondrej fix it ASAP. https://bugs.freepascal.org/view.php?id=32021 Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Trunk is broken
2017. 06. 07. 13:15 keltezéssel, Ondrej Pokorny via Lazarus írta: On 07.06.2017 10:38, Gabor Boros via Lazarus wrote: I tried to compile trunk(55263) with FPC 3.0.2 on Win32 but got this: Are you sure you use FPC 3.0.2? IMO you use an old revision of fixes_3_0 or trunk branch which you have to update. I sure the directory name is 3.0.2. :-) But sitting "3.0.3 [2017/05/14]" (rev 36152) in it. Compile success with 3.0.2 release and fixes_3_0 rev 36415. Sorry for the false alarm! Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] Trunk is broken
Hi All, I tried to compile trunk(55263) with FPC 3.0.2 on Win32 but got this: e:\Lazarus\trunk\ide\sourcefilemanager.pas(6452,29) Error: (5038) identifier idents no member "DesignPPI" e:\Lazarus\trunk\ide\sourcefilemanager.pas(6454,71) Error: (5038) identifier idents no member "DesignPPI" e:\Lazarus\trunk\ide\sourcefilemanager.pas(6456,88) Error: (5038) identifier idents no member "DesignPPI" e:\Lazarus\trunk\ide\sourcefilemanager.pas(6457,88) Error: (5038) identifier idents no member "DesignPPI" e:\Lazarus\trunk\ide\sourcefilemanager.pas(6459,86) Error: (5038) identifier idents no member "DesignPPI" e:\Lazarus\trunk\ide\sourcefilemanager.pas(6460,86) Error: (5038) identifier idents no member "DesignPPI" e:\Lazarus\trunk\ide\sourcefilemanager.pas(6461,27) Error: (5038) identifier idents no member "DesignPPI" sourcefilemanager.pas(8459) Fatal: (10026) There were 7 errors compiling module, stopping Fatal: (1018) Compilation aborted make[2]: *** [lazarus.exe] Error 1 make[2]: Leaving directory `e:/Lazarus/trunk/ide' make[1]: *** [ide] Error 2 make[1]: Leaving directory `e:/Lazarus/trunk/ide' make: *** [ide] Error 2 Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Anchoring problem with ScrollBox and Panels
2017. 06. 07. 8:37 keltezéssel, Michael W. Vogel via Lazarus írta: You will see, the resizing problem comes from Panel2. I see. But don't understand. :D To demonstrate what happen take the added example or create a new app, put a panel on it and anchor Left, Top, Right to the form sides and anchor Bottom to nil. Start the app and change the bounds of it. Your example work as expected. If resize the form panel resized properly. I tried to accomplish the task in a different way. Attached a new example. Bottom of Panel2 anchored to bottom of ScrollBox. This works. Top of Panel2 anchored to bottom of Panel1. When resize the form top of Panel2 is moving Why? Top of Panel2 why not stay with bottom of Panel1? Gabor ScrollBox_position_range_overflow.tar.gz Description: application/gzip -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Anchoring problem with ScrollBox and Panels
2017. 06. 06. 19:54 keltezéssel, Michael W. Vogel via Lazarus írta: I can tell you here the same as in the related bug report https://bugs.freepascal.org/view.php?id=30617, this isn't a bug it is not happy design. You want that the scrollbox height is increased, but then the Panel2 height is increased too. Simple remove anchored bottom of Panel2 and the loop is gone. You wrote on the tracker: "You have anchored Panel2.Bottom to no sibling and Panel3.Top to Panel2.Bottom. When you now change the height of Panel3, that it doesn't fit in the scrollbox anymore, the scrollbox is resized. With resizing of the scrollbox, Panel2 is also resized (because its Bottom is anchored). Now Panel3.Top is moved too and Panel3 doesn't fit in the scrollbox anymore. And repeat." I understand you(r description) except one thing. "Panel2 is also resized (because its Bottom is anchored)" Why you think Panel2 is resized? When height of Panel3 increased and the vertical scrollbox showed up, height of scrollbox not changed nor top of Panel3. Attached two pictures. One before resized Panel3 and one after (pressed Continue on the loop error message). You see top, bottom and height of Panel1 and Panel2 is same as before. So top, bottom, height of Panel1, Panel2 and ScrollBox1 not changed. Why got the loop error? Only height of Panel3 changed. Width of Panel1,2,3 changed, okay but why this block the work of vertical anchoring? Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] Anchoring problem with ScrollBox and Panels
Hi All, The attached example contains a form with a ScrollBox on it with three Panels in it. Height of Panel1 is static, height of Panel2 depend on the size of Form/ScrollBox, height of Panel3 can be modifiable by the user. In the example a simple OnClick emulate the variable height feature of Panel3. So, start the example, modify (or not) size of the form, then click on Panel3. I got a "Position range overflow..." error. What I doing wrong or is this a bug? Gabor ScrollBox_position_range_overflow.tar.gz Description: application/gzip -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] fixes_1_8 - What happened with default height of DBGrid's rows?
2017. 05. 16. 18:13 keltezéssel, Ondrej Pokorny via Lazarus írta: Probably yes and problably I am responsible. Please report to Mantis. Done: https://bugs.freepascal.org/view.php?id=31824 Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] fixes_1_8 - What happened with default height of DBGrid's rows?
Hi All, I switched from revision 54808 to 54920 and got different row heights. What happened? Is this a regression? Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] ✈Re: amazing news!
Yo! This news is going to amaze you, I'm telling you! Just check it out http://frame.williamtara.com Gabor Boros Sent from Mail for Windows 10-- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Fw: just look at that!
Hi All, This is not the first spam with my name. "Nice!" I see this in the source of the message: Cc: Gabor Boros Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] fpDebug error "Debug information not available"
2017. 03. 28. 20:14 keltezéssel, Ondrej Pokorny via Lazarus írta: Hello, I want to test the fpDebug debugger. I followed http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Need-testers-for-the-a-new-debugger-td4037911.html When I run a LCL application, I get the following error within Lazarus IDE: [Window Title] project1 - Lazarus IDE v1.7 [Content] No Dwarf-debug information available. The debugger will not function properly. [CurrentProcess=TDbgWinProcess,DbgInfo=TFpDwarfInfo] [OK] I tried various "Type of debug info" in Project Options. The last I tried: Do you have any hints? OS: Win 10 64bit Lazarus: trunk 1.7 32bit Ondrej Hi Ondrej and All, For me Automatic and Stabs give the above error message and works with the other three options. Tried with Win10 64bit, FPC 3.0.2 32bit, Lazarus trunk 54502 (build with a simple "make" command then installed components\lazdebuggers\lazdebuggerfp\lazdebuggerfp.lpk). Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] What is the estimated creation time of fixes_1_8 branch?
Hi All, I want to switch from fixes_1_6 to ... Is the fixes_1_8 branch will be created in the near future? I want to skip switch to trunk if possible. Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Qt5 - Size and permissions of the compiled bindings
2017. 01. 02. 17:10 keltezéssel, zeljko írta: Bindings are not yet finished. See .pro file in lcl/interfaces/qt5/cbindings and change there from debug to release mode. Modified from CONFIG -= release CONFIG += debug to CONFIG += release CONFIG -= debug and the size of the compiled so file is 3202768 bytes, after install 2331624 bytes ("strip --strip-unneeded" called by make install). Don't know about permissions, not sure if .pro file is doing anything about permissions. make install set the permissions with "install -m 755 -p libQt5Pas.so.1.2.6 ...". The Makefile (generated by qmake) contains two lines about install/permissions: INSTALL_FILE = install -m 644 -p INSTALL_PROGRAM = install -m 755 -p So, the "make install" think the installed thing is a program and set the execute permissions. Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] Qt5 - Size and permissions of the compiled bindings
Hi All, I tried to compile the bindings with Debian Stretch. Success. But the size of libQt5Pas.so.1.2.6 is very big (86222128 bytes). I compiled a debug build? The permissions of the file is 755 (libQt4Pas have 644). The execute permission(s) just a mistake? Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] DBGrid - Patch review request
2016. 12. 14. 19:41 keltezéssel, Jesus Reyes A. via Lazarus írta: On Wed, 14 Dec 2016 06:27:18 -0600, Gabor Boros via Lazarus So, I created a patch for help record reordering feature in my application with DBGrid and an example project for demonstration. Please review, comment (good, bad, never ever), ... http://bugs.freepascal.org/view.php?id=31061 Gabor I'm sorry, I have been too busy lately, I hope to find time to review it this weekend if nobody does it sooner. No problem. I am patient. Thank you! Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] DBGrid - Patch review request
Hi All, I do not want to disturb the developers but don't know which is the best practice. Wait or not wait. For example issue 28597. Wait more than a year then wrote to the list about it and Zeljko fixed on same day (on Saturday!). So, I created a patch for help record reordering feature in my application with DBGrid and an example project for demonstration. Please review, comment (good, bad, never ever), ... http://bugs.freepascal.org/view.php?id=31061 Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] How to utilize goRowMoving with TDBGird?
2016. 11. 15. 15:11 keltezéssel, Gabor Boros via Lazarus írta: I need a record reordering feature with TDBGrid, worked out a half-solution with drag and drop and later found TStringGrid have a goRowMoving option. Just want the effect of it and the FromIndex and ToIndex row numbers. And TCustomDBGrid.ColRowMoved(IsColumn: Boolean; FromIndex, ToIndex: Integer) exists. Any easy way to access this feature from a DBGrid? Created an issue for it with patch and example project: http://bugs.freepascal.org/view.php?id=31061 Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] DBLookupComboBox vs Qt
2016. 11. 05. 13:05 keltezéssel, zeljko írta: Ok, just create example project with TComboBox which reproduces problem so I'll sit with it and try to fix it somehow. Done. You can find as an attachment in the bugtracker. Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] DBLookupComboBox vs Qt
2016. 11. 05. 10:47 keltezéssel, zeljko írta: On 11/05/2016 10:30 AM, Gabor Boros via Lazarus wrote: Hi All, Created an issue in the past but got no answer. Now attached a better example project. Please try and comment. Is it a Qt bug or this is the expected behaviour? http://bugs.freepascal.org/view.php?id=28597 Can it be reproduced with regular TComboBox ? I cannot understand what's exact problem from issue explanation ... Yes I got same result with a TComboBox. See the attached screenshot, better than my description. 1.TCombobox is empty Yes. 2.You are assigning items Yes, in two places. In FormCreate and in FormShow. 3.ItemIndex should stay -1 instead of 0 (first item selected ? ) No automatic selection if Items filled up in FormCreate but automatic selection if filled up in FormShow. 4.What about other widgetsets ? On Windows works as expected. Nothing selected. (Got same result with Delphi.) Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] DBLookupComboBox vs Qt
2016. 11. 05. 10:47 keltezéssel, zeljko írta: On 11/05/2016 10:30 AM, Gabor Boros via Lazarus wrote: Hi All, Created an issue in the past but got no answer. Now attached a better example project. Please try and comment. Is it a Qt bug or this is the expected behaviour? http://bugs.freepascal.org/view.php?id=28597 I don't use db controls at all so don't know what's exact problem. Can it be reproduced with regular TComboBox ? I cannot understand what's exact problem from issue explanation ... 1.TCombobox is empty 2.You are assigning items 3.ItemIndex should stay -1 instead of 0 (first item selected ? ) 4.What about other widgetsets ? Attached a screenshot to the issue. My problem is with Qt widgetset... If append a record into an empty dataset in FormShow the new record selected automatically in the DBLookupComboBox. Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] DBLookupComboBox vs Qt
Hi All, Created an issue in the past but got no answer. Now attached a better example project. Please try and comment. Is it a Qt bug or this is the expected behaviour? http://bugs.freepascal.org/view.php?id=28597 Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Memo.Lines.Add seems to be slow with Lazarus 1.6
2016. 11. 04. 8:35 keltezéssel, Ondrej Pokorny via Lazarus írta: The TextHint implementation should be completely rewritten. It shouldn't use the text property but paint the TextHint onto the control by itself. It's good to hear! The new implementation will be included in 1.8? Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] How to use strings properly with fixes_1_6 and FPC 3.0.0?
2016. 10. 21. 12:38 keltezéssel, Juha Manninen via Lazarus írta: for i:=1 to UTF8Length(s) do Write(UTF8Copy(s,i,1)) No, it not a good solution! I predict that most your code can still use byte indexing. At some point you will get a Heureka-moment like "hey, I don't need the codepoint index when doing this task!". Juha, thank you for your patience and sorry if I am a completely idiot but... :-) Why the below example better than a for loop with UTF8Length and UTF8Copy for go through the string? I hope my "Heureka-moment" coming shortly! :D http://wiki.freepascal.org/UTF8_strings_and_characters#Iterating_over_string_analysing_individual_codepoints Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] How to use strings properly with fixes_1_6 and FPC 3.0.0?
2016. 10. 21. 12:48 keltezéssel, Jürgen Hestermann via Lazarus írta: If you realy need the character position/length, then you have to use UTF8Length/UTF8Copy/etc. But as said: It is only needed in special circumstances. Still you have to know when to use what. I will know if somebody describe what a difference between á and an á characters in two points of my program. I answered to Juha's reply with two short examples. Don't understand why an á character/string different for example from a ReadLn and from Edit1.Text. Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus