Re: [Lazarus] Faster than popcnt [[Re: UTF8LengthFast returning incorrect results on AARCH64 (MacOS)]]

2021-12-29 Thread Alexey Tor. via lazarus
New unit test, with Martin's integrated. If I play with godbolt, Ryzen zen3 (ryzen 5x00X) is nearly twice as fast in cycles as my Ivy Bridge, so I would like to see some benchmarks from various processors. Also from very old ones (P4 and Clawhammers) to test instruction sets. Project

Re: [Lazarus] New Synthwave Demo

2021-11-30 Thread Alexey Tor. via lazarus
quote: This demo evokes the style of the 1980s synthwave music culture using Free Pascal. I don't remember that synthwave culture. I lived in the damned communist USSR at 1980's, we did not have any synthwave. Only soviet music (==by 60% it's bad copied western music) + some (not all) hits

Re: [Lazarus] Drag/drop project and package filenames on the IDE

2021-11-13 Thread Alexey Tor. via lazarus
This must be tested with the patch: --pcp= parameter, which is used in IDE shortcuts from fpcupdeluxe. What if different --pcp content is passed (1st instance has another --pcp). Alexey -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org

Re: [Lazarus] Request for Gitlab access rights for Cocoa

2021-09-29 Thread Alexey Tor. via lazarus
Thanks, here are 3 patches which I wanted to merge on start 1- TListItem.MakeVisible does not work on MacOS 2- [Cocoa] TListView.GetItemAt returns wrong item when ShowColumnHeaders=true

[Lazarus] Request for Gitlab access rights for Cocoa

2021-09-28 Thread Alexey Tor. via lazarus
Hello. As you see on Gitlab comments: https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39372 Dmitry (Cocoa WS supporter) has no Gitlab rights and he wants to pass these rights to me - Gitlab account Alexey-T1. Please do so. Dmitry is busy and has no enough wish to talk here. But he

Re: [Lazarus] -dWINDOWS_LIGATURE [[Re: Font ligatures support]]

2020-10-06 Thread Alexey Tor. via lazarus
-> => >= <= *** .. ... <> >< >> << >>> <<< == != Visual Studio shows all as ligatures except the first one It's trivial - synedit just doesn't TextOut such symbols in one block, ie it doesn't renders '->' as 2 chars but renders it as 2 chars - and >. Same for >>> and <<< etc. -- Regards,

Re: [Lazarus] Font ligatures support

2020-10-03 Thread Alexey Tor. via lazarus
It's not very simple. see file https://github.com/Alexey-T/ATSynEdit/blob/master/atsynedit/atsynedit_canvasproc.pas and search for "ligatures" in all places. Unit has special code for win32. Do you get the ligature? -- -- Regards, Alexey -- ___

Re: [Lazarus] Font ligatures support

2020-10-03 Thread Alexey Tor. via lazarus
On 02.10.2020 23:48, Sven Barth via lazarus wrote: Is there something that needs to be enabled to get ligatures working on Windows? You need to use one of APIs which support it (afair, DrawTextW?) and output whole ligature, not char-by-char. -- Regards, Alexey --

[Lazarus] JCF2 patch in trunk

2020-09-11 Thread Alexey Tor. via lazarus
https://github.com/graemeg/lazarus/commit/f4ffd5e0640948e9c396e1ef1b2aacd90512ac77    if StartsText('{$include',pcToken.SourceCode)=true then   lPos:=10     else if StartsStr('{$I',pcToken.SourceCode)=true then a) $include is searched case-insens? why no space after "$include" to avoid

[Lazarus] OS theme change via TAppProperties

2020-08-30 Thread Alexey Tor. via lazarus
This forum topic is about how we can react to macOS theme change. https://forum.lazarus.freepascal.org/index.php?topic=43111.msg376056;topicseen#new and I had the idea to make all this task simpler. we have the TApplicationProperties. let's add OnThemeChange there! some widgetset funcs will be

Re: [Lazarus] Lazarus IDE text display

2020-08-16 Thread Alexey Tor. via lazarus
On 16.08.2020 19:24, Martin Frb via lazarus wrote: And how does a this text look? MMM@@@WWW In Pascal syntax, it is 3 tokens; all 3 tokens are clipped on right side (with non monospaced font). -- Regards, Alexey -- ___ lazarus mailing list

Re: [Lazarus] Lazarus IDE text display

2020-08-16 Thread Alexey Tor. via lazarus
On 16.08.2020 14:57, Martin Frb via lazarus wrote: To do so, SynEdit looks for the widest char in the font (by looking at specific samples, like XMW@): "@" is often the widest. ATSynEdit takes with of 'grid' as widht of 'N' (before it was 'M', it gave too big size for non monospaced fonts,

Re: [Lazarus] TCheckLisBox and SelCount

2020-08-04 Thread Alexey Tor. via lazarus
http://docwiki.embarcadero.com/Libraries/Sydney/en/Vcl.CheckLst.TCheckListBox_Properties It is Delphi compatable? -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] How many timers available on Linux (Raspberry Pi)?

2020-07-21 Thread Alexey Tor. via lazarus
On gtk2 it calls TGtk2WidgetSet.CreateTimer, which calls gtk_timeout_add() I cannot find in inet, about max number of 'timeouts' in gtk2. Alexey -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] Gtk2 list of pressed keys

2020-07-17 Thread Alexey Tor. via lazarus
    FKeyStateList_: TFPList; // Keeps track of which keys are pressed I suggest to change this to array[0..N] of integer (N can be only 2? 5? 10? 20?). this way we won't do mem allocs on each keypresss/depress. Alexey Torgashin -- ___ lazarus

[Lazarus] Laz next release- Cocoa WS

2020-07-03 Thread Alexey Tor. via lazarus
IMO it's good to make Cocoa the default WS! Why? macOS is now all-64bit, so Carbon (old WS)+32bit apps cannot run (or run with a warning). Alexey Torgashin -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org

[Lazarus] Problem with Lazarus on Haiku x86

2020-07-01 Thread Alexey Tor. via lazarus
Some bug in Lazarus or Qt5 ws. Haiku x86 FPC 3.2.0 a) Laz release 2.0.8. CudaText starts and works ok (Laz cannot render monospaced fonts as monospaced, and some labels are cropped in About). b) Laz trunk 2.1.*CudaText shows AV on start* (after showing form, it works then). Monospaced fonts -

[Lazarus] FPC and Lazarus packages for Haiku on Hakilo.ru

2020-06-26 Thread Alexey Tor. via lazarus
Some invisible man runs this project. Thanks! Pls update FPC and Laz packages - they are year old! FPC 3.3 package - a) "fpc" command isn't in PATH (some deep dir) b) no fpc.cfg file near fpc binary- Laz cannot work Alexey Torgashin -- ___ lazarus

Re: [Lazarus] We are planning the next release: Lazarus 2.0.10

2020-06-22 Thread Alexey Tor. via lazarus
 >Cocoa (64bit, beta), Please move Cocoa to `release` state, it's ready.. Alexey Torgashin -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] IDE source editor blue-panel bug

2020-06-20 Thread Alexey Tor. via lazarus
get project CudaText https://github.com/alexey-t/cudatext/ open its file formmain_py_api.inc, scroll to function Py_GetTokenList(Adapter: TATAdapterEControl; ALineFrom, ALineTo: integer): PPyObject; now move caret lower so that IDE shows blue-ribbon on top of source editor. expected: IDE shows

[Lazarus] Gtk2 ExtTextOut internal helper is slow

2020-06-11 Thread Alexey Tor. via lazarus
gtk2devicecontext.inc procedure SetLayoutText(ALayout: PPangoLayout; AText: PChar; ALength: PtrInt); var   OldStr: PChar; begin   OldStr := pango_layout_get_text(ALayout);   if (strlen(OldStr)<>ALength) or (strlcomp(AText, OldStr, ALength) <> 0) then     pango_layout_set_text(ALayout, AText,

[Lazarus] Cannot compile LCL for Win-aarch64

2020-05-27 Thread Alexey Tor. via lazarus
Win-aarch64 (arm64) is used in real hardware on Win10. installed FPC trunk with Laz trunk with Linux-x64->Win-ARM64 cross. on making CudaText with build mode "Win-arm64" I got strange errors: ..Compile package LCLBase 2.1, exit code 1 Error:

[Lazarus] Not restored Screen.ActiveForm after InputQuery

2020-05-27 Thread Alexey Tor. via lazarus
CudaText for Linux gtk2 x64. its Python API fails when it reads current form, after plugin shows InputQuery dialog. I added test ShowMessage near the showing InputQuery and found that after InputQ call, program reads empty Screen.ActiveForm. marked by comment. is it LCL bug? LCL must restore

[Lazarus] IDE "Rename identifier" misfeature

2020-05-25 Thread Alexey Tor. via lazarus
Hello ATSynEdit has such function procedure TATSynRanges.DeleteFromLineIndexer(AIndex: integer); var   Ptr: PATSynRange;   NItemLen, iLine, iItem, j: integer; begin   Ptr:= ItemPtr(AIndex);   for iLine:= Ptr^.Y2 downto Ptr^.Y do   begin     ..   end; end; when I do "Rename identifier" from Ptr

[Lazarus] Dlg "Generate new fppkg config files" text

2020-05-06 Thread Alexey Tor. via lazarus
Dlg is shown on 1st start of IDE when I cleared and made new fpcupdeluxe (1.6.8m) folder on Linux. with FPC 3.0.4 and Laz trunk. it tells about "prefixes lib/fpc, lib64/fpc" - now tell me what to enter here if I have fpcupdeluxe (only it) in /home/user/fpcupdeluxe/fpcupdeluxe/fpc and don't

Re: [Lazarus] Qt/Qt5 users - need trunk testing

2020-04-05 Thread Alexey Tor. via lazarus
after updating Laz to today's trunk, CudaText qt5 build has broken look of tabs. angled side of tab. and X sign. they are painted via canvas.StretchDraw. Alexey -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org

Re: [Lazarus] FPC 3.2.0RC1 released!

2020-03-30 Thread Alexey Tor. via lazarus
I am mostly interested in fixing CudaText on freebsd 12, see all posts https://www.mail-archive.com/search?l=fpc-pascal%40lists.freepascal.org=freebsd+directoryexists=0=0 Please. I didn't get confirm msgs, so no issue in bug tracker. -- ___ lazarus

[Lazarus] TForm.CreateNew - form hides not immediately

2020-02-16 Thread Alexey Tor. via lazarus
Linux gtk2.   Form:= TForm.CreateNew(Application.MainForm);   Form.Visible:= FOption; if FOption=False, form flickers! it appears for 0.2sec and hides. Can we avoid flicker and just hide? Maybe AVisible param can be added to CreateNew? It is so on all widgetsets? -- Regards, Alexey --

Re: [Lazarus] Cannot compile app for Qt5 on Ubuntu 19.4 now

2019-12-25 Thread Alexey Tor. via lazarus
Problem solved: reason is too old libqt5pas-dev in Ubuntu 19.4 (19.10 is ok). AT -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] Cannot compile app for Qt5 on Ubuntu 19.4 now

2019-12-25 Thread Alexey Tor. via lazarus
Compile Project, Mode: linux x32 qt5, CPU: i386, Target: builds/linux-x32-qt5/cudatext: Exit code 1, Errors: 3 Error: /home/user/fpcupdeluxe/lazarus/lcl/units/i386-linux/qt5/qtwidgets.o: In function `TQTABSTRACTSPINBOX__SETVALUE': Error:

[Lazarus] Canvas.PolyBezier docs is poor

2019-12-15 Thread Alexey Tor. via lazarus
https://lazarus-ccr.sourceforge.io/docs/lcl/graphics/tcanvas.polybezier.html "Filled" help is poor: If the Filled Flag is set to TRUE then the resulting Poly-Bezier will be drawn as a Polygon. ??? does it mean that start and end points of a curve will be connected? does it mean that all

[Lazarus] Cannot cross-compile from Linux x64 to Solaris-SPARC ?

2019-10-02 Thread Alexey Tor. via lazarus
Linux x64. Free Pascal Compiler version 3.2.0-beta-r41315 [2019/02/16] for x86_64 Installed cross-compiler to Solaris-SPARC, using fpcupdeluxe 1.6.2y. I got such errors on compiling my project. what it means? maybe I must update FPC to trunk? Error:

[Lazarus] IDE: on deleting build-modes, I got change in .lpr file

2019-09-04 Thread Alexey Tor. via lazarus
I deleted 2 build modes, and diff shows that also the .lpr file was changed. Space was deleted near the :=. --- a/app/cudatext.lpr +++ b/app/cudatext.lpr @@ -28,7 +28,7 @@ begin    if Screen.MonitorCount>1 then Application.MainFormOnTaskBar:= True;    {$IFEND} -  Application.Title:=

Re: [Lazarus] [fpc-pascal] Tests results of several pascal based JSON parsers

2019-08-30 Thread Alexey Tor. via lazarus
Yes, JsonTools needs a method SaveToFile if it has not. It must save formatted json with indent, set by a property or global variable (default is 2 usually). SaveToFile must handle Unicode strings, ie output them with \u or like it. Use Unicode escape for all codes >=128, because utf8

Re: [Lazarus] Tests results of several pascal based JSON parsers

2019-08-30 Thread Alexey Tor. via lazarus
This is very good news, that we have JsonTools parser now. I may think of using it in CudaText - ie replacing fpJSON to JsonTools. About lib. 1) Pls add an option to handle // comments in json. yes, json don't allow this but CudaText and SublimeText and many programs have json configs

[Lazarus] TextHint for TCombobox?

2019-08-11 Thread Alexey Tor. via lazarus
I see that TextHint works for Edit/Memo - but its not supported for Combobox (in editable style). Can you add? -- Regards, Alexey -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] TLabel accelerator "&:" don't work since 2018

2019-08-04 Thread Alexey Tor. via lazarus
>not working accelerator (TLabel) for ":" User has Windows 10. -- Regards, Alexey -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] TLabel accelerator "&:" don't work since 2018

2019-08-04 Thread Alexey Tor. via lazarus
Hi User of CudaText says that he sees not working accelerator (TLabel) for ":" char in his addons (Label1.Caption:= "Enter string&:" ). he has found 1sts bad version - from 2018. I ve searched SVN from this date (may 2018) and found such fixes in March. Can you see? r57572 | michl |

Re: [Lazarus] Maybe it's TreeView hi-dpi bug on Linux?

2019-08-03 Thread Alexey Tor. via lazarus
 >Why not? Just set the DPI of your system to something higher I now changed my Ubuntu to hi-dpi 200%, but cannot see this issue, my monitor is small. https://www.addictivetips.com/ubuntu-linux-tips/enable-hidpi-scaling-on-linux/ -- Regards, Alexey --

Re: [Lazarus] Detailed message about "incompatible ppu=..."

2019-05-11 Thread Alexey Tor. via lazarus
Have you tried to compile clean? I tried, yes. It didn't help, same error. What helped: i updated date stamp of WSGrids.pas (touch). -- Regards, Alexey -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org

[Lazarus] IDE build mode not saved

2019-04-29 Thread Alexey Tor. via lazarus
ATSynEdit repo on GitHub. ATSynEdit I open demo app/test_regex_match_loop; add to demo new build-mode "Solaris" (cloned from default mode and changed Target to Solaris OS); on ide close I save project. I reopen IDE and DON'T see new build mode in toolbar

[Lazarus] LCLTranslator last patch, refactor

2019-04-24 Thread Alexey Tor. via lazarus
Maxim, last patch (supporting --lang=) has 4 reads of the same ParamStrUTF8(i). Pls use a var. -- Regards, Alexey -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] IDE trunk update broke my project build modes

2019-03-25 Thread Alexey Tor. via lazarus
all 10 builds modes are erased. github shows it: https://github.com/Alexey-T/CudaText/commit/3265afe97eb279038cc06c77fc40c89057eed2f1#diff-3c136f54a3b789d5a1bf3d633bd76906 -- Regards, Alexey -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org