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 utf8lentest raised exception class 'External: SIGSEGV'.

 In file 'utf8lentest.lpr' at line 89:

movdqu xmm0, [rcx]

OS: Linux x64. CPU:

   vendor_id = "GenuineIntel"
  (simple synth)  = Intel Core (unknown type) (Sandy Bridge 
D2/J1/Q0) {Sandy Bridge}, 32nm


--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


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 from the west 
(Abba, Beatles, some rocks bands, not much, some Italian singers). Lack 
of hardware to play the music. Some ppl had the vanilla players, some 
had audio-casette players, my family did have only vanilla player, later 
we got soviet auto-casette player, and I asked my family to bye me ONE 
auto-casette per month, they were expensive. And we had queues, queues 
in the grocery shops 'UniverSams'. Shops which lacked many required food 
products (meat was rare, fish was appeared even more rare).


In the childhood, we were teached at the schools about the doings of 
'grandfather Lenin', the mass murderer of early USSR. In 2010-2020s, we 
are teached about the doings of Stalin, the mass murderer of 1930-1953. 
He ruled after Lenin. This is damned country.



On 30.11.2021 02:33, Anthony Walter via lazarus wrote:
On this page  is 
the video and source code of the project.


--
Alexey

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


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
https://lists.lazarus-ide.org/listinfo/lazarus


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 



3- forum, patch by Zoe, Demo to benchmark TextOut on win64/gtk2/Cocoa - 
Cocoa is very slow 



Alexey

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[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 continues his work in 
his public GitHUB fork.


--
Alexey

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


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,
Alexey

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


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

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


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 mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[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 incorrect include?


b) $I is searched case-insens? seems no! why no space after $I to avoid 
other directive?


Regards,
Alexey

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[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 needed.
now it's the problem - do this reaction on macOS, on win32,... no one 
knows how to do it on gtk2/qt...

I wrote to Dmitry (Cocoa developer) about this idea, then wrote here.

Alexey Torgashin

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


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
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


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, 'N' is better).


--
Regards,
Alexey

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


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 mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/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
https://lists.lazarus-ide.org/listinfo/lazarus


[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 - fixed, labels cropped - fixed.


Haiku has GDB 6.x and cannot debug the AV (debug error). I wrote the 
request for new GDB there.


Alexey Torgashin

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[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 mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/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 dialog TabOrders jumps on 1st showing

2020-06-22 Thread Alexey Tor. via lazarus
On 1st showing, dlg jumps from some top position to lefter/lower one. On 
next showing, it doesnot.


video- http://uvviewsoft.com/c/Kazam_screencast_1.mp4 , 3Mb

Laz today's trunk.

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 blue panel with title of function.
reality: IDE shows blue panel with crap "Token: PecSyntToken"

the same - with the next function,
function Py_ed_get_token(Self, Args: PPyObject): PPyObject; cdecl;
IDE shows blue panel for it: "Ed: TATSynEdit".

--
Regards,
Alexey

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[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, ALength);
end;

as you see it's slow
a) get oldstr
b) compare oldstr by 2 funcs
why this cache is needed?
to call ExtTextOut() 20 times with the same x/y/s ?
so I suggest to del checks - just call pango_layout_set_text and that's it.

Alexey Torgashin

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[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: 
/home/user/fpcupdeluxe_fpc33/fpcupdeluxe/lazarus/lcl/units/aarch64-win64/forms.s:47752:1: 
error: invalid symbol redefinition

Error: xdata_forms$_$thintwindow_$__$$_destroy:
Error: ^
forms.pp(2309,0) Error: Error while assembling exitcode 1

--
Regards,
Alexey

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[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 ActiveForm after InputQuery.
IDE r63175.

function Py_dlg_input(Self, Args : PPyObject): PPyObject; cdecl;
var
  P1, P2: PChar;
  StrCaption, StrVal: string;
  t: string;
begin
  with AppPython.Engine do
    if Bool(PyArg_ParseTuple(Args, 'ss:dlg_input', @P1, @P2)) then
    begin
  StrCaption:= string(P1);
  StrVal:= string(P2);

  t:= screen.ActiveForm.caption;this works

  if InputQuery(msgTitle, StrCaption, StrVal) then
    Result:= PyString_FromString(PChar(StrVal))
  else
    Result:= ReturnNone;

  t+= ', '+screen.ActiveForm.caption; //this crashes
  showmessage(t);
    end
  else
    Result:= ReturnNone;
end;

Alexey Torgashin

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[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 to ItemPtr, IDE allows to do it,
and I have conflict with class method ItemPtr(), which is even called in 
this function.


--
Regards,
Alexey Torgashin

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[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 have usual FPC.


Regards,
Alexey Torgashin

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


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
https://lists.lazarus-ide.org/listinfo/lazarus


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&q=freebsd+directoryexists&x=0&y=0

Please. I didn't get confirm msgs, so no issue in bug tracker.

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/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

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


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: 
/home/user/fpcupdeluxe/lazarus/lcl/interfaces/./qt5/qtwidgets.pas:(.text.n_qtwidgets$_$tqttextedit_$__$$_settexthint$ansistring+0x7b): 
undefined reference to `QTextEdit_setPlaceholderText'

cudatext.lpr(37,1) Error: Error while linking

Error shows on PC which compiled CudaText for qt5 before, maybe some 
library is broken in OS? Updates are fresh, libqt5pas-dev is here. 
Ubuntu 19.4 x64.


--
Regards,
Alexey

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[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 parts of curve (with Continuous=false) will be 
connected? does it mean that all points (start-end and parts) will be 
connected and Brush filling is used?


--
Regards,
Alexey

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[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: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gar: 
creating 
/home/user/cuda/synedit/atsynedit/lib/sparc-solaris/libpatsynedit_edits.a
Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gar: 
creating 
/home/user/cuda/synedit/atsynedit/lib/sparc-solaris/libpatsynedit_register.a
Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gar: 
creating /home/user/cuda/cuda/app/lib/sparc-solaris/libpform_choose_theme.a

..
Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gar: 
creating /home/user/cuda/cuda/app/lib/sparc-solaris/libpformmain.a
Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gar: 
creating /home/user/cuda/cuda/app/lib/sparc-solaris/libpcudatext.a

..
Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
cannot find -lm
Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
cannot find -lc
Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
cannot find -lmd5
Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
cannot find -laio
Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
cannot find -lrt
Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
cannot find -lpthread
Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
cannot find -ldl
Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
cannot find -lgdk-x11-2.0
Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
cannot find -lX11
Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
cannot find -lgdk_pixbuf-2.0
Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
cannot find -lgtk-x11-2.0
Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
cannot find -lgobject-2.0
Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
cannot find -lglib-2.0
Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
cannot find -lgthread-2.0
Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
cannot find -lgmodule-2.0
Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
cannot find -lpango-1.0
Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
cannot find -lcairo
Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
cannot find -latk-1.0
Error: /home/user/fpcupdeluxe/cross/bin/sparc-solaris/sparc-solaris-gld: 
cannot find -lc

cudatext.lpr(31,32) Error: Error while linking

--
Regards,
Alexey

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[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:= 'CudaText';
+  Application.Title:='CudaText';
   Application.Scaled:= false;
   RequireDerivedFormResource:= True;
   Application.Initialize;

--
Regards,
Alexey

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


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 codes all 
after 127.


Alexey

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


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 with comments. They use libs which allow comments. 
fpJSON allows comments by option.


2) Pls add an option which allows "," after final dict node: { "a":1, 
"b":2, }


so my app can read json file with final (bad) comma after "b":2.

3) Lib must support "true", "false", "none" or "nil"(?), values like 
list [], with empty list, values like dict {}, with empty dict. And list 
inside dict etc.


Alexey Torgashin



--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[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 | 2018-03-28 23:47:36 +0300 (Ср, 28 мар 2018) | 1 line
LCL: GTK2: TLabel: Accelerating keys will work correct again after 
revision 57571.

--
r57571 | michl | 2018-03-28 23:42:11 +0300 (Ср, 28 мар 2018) | 1 line
LCL: TLabel: Fixed TLabel.FocusControl select control without pressing 
ALT. Issue #33526

--

--
Regards,
Alexey

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


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

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


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
https://lists.lazarus-ide.org/listinfo/lazarus


[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 dropdown for build 
modes.

Laz 2.1 trunk, fpc 3.0.4, Linux x64, cross for Solaris installed

--
Regards,
Alexey

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[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
https://lists.lazarus-ide.org/listinfo/lazarus