Re: [Lazarus] Lazarus IDE text display

2020-08-16 Thread Alexey via lazarus
> Ideally "default" for the IDE font would give a sensible monospace font for > each platform No, “default” is def variable width font. But yes, we need new alias for default mono font, eg “def_mono”. And I will use it, and IDE should use it. Courier isn’t installed on all OS. Courier New too

Re: [Lazarus] Unneeded Paint calls from LCL

2020-01-15 Thread Alexey via lazarus
Seems I posted too pessimistic analysis. Too many repaints are caused by atsynedit, and with an empty control (which only has overridden Paint to show counter) it’s not so bad— counter is 1, only on few WS it’s 2. Sorry Alexey -- ___ lazarus mailing

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

2019-08-30 Thread Alexey via lazarus
It is maybe bug which was fixed in FPC trunk, there was some Unicode issue in 3.0.4. > > On my system with FPJson the test is failing it failing on "bank teller > \u00Ae ", but on when using approximately the same code with JSONTools it > passes on both "name" and "occupation" always. What do

Re: [Lazarus] TProgressbar moves slowly, is there a hidden setting for faster response?

2019-05-15 Thread Alexey via lazarus
I suggest to use ATScrollbar from ATFlatControls, but it needs the option for fast move- I can easily add it soon. -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Mantis: cannot edit my comments

2019-04-26 Thread Alexey via lazarus
I don’t see such buttons, on Firefox. -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] New XML format for project info files

2019-03-15 Thread Alexey via lazarus
Great, thanks. I hope that old files will be read ok and then saved to new format. -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] VirtualTreeView rendering on Cocoa

2019-03-13 Thread Alexey via lazarus
Graeme, if VTV code is good then blurring problem can be solved - by setting DblBuffered to false, no? -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Universal FontDialog for LCL

2019-03-08 Thread Alexey via lazarus
Completely new form. > Do you want to embed a component into the native dialog, or to > create a complete custom drawn font dialog? > -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Universal FontDialog for LCL

2019-03-08 Thread Alexey via lazarus
Juha, I wanted to hook new dialog (ok, separate component) into TFontDialog. Can I make a patch to allow such a hook? It must be very small diff which don’t bloat the lcl. -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-

Re: [Lazarus] Universal FontDialog for LCL

2019-03-07 Thread Alexey via lazarus
Please no? What do other developers think, also no (lcl option for universal dialog not wanted)? AT -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Fwd: TRadioGroup not found error

2019-01-01 Thread Alexey via lazarus
To use your units in Lazarus, make a new package, then copy all units to a single subdir (with the Lpk package), then add all pas units to this package. So user needs to install this package. So all pas files will be auto found by program if program uses this package. AT -- ___

Re: [Lazarus] With new Win32 manifest LongPathAware I cannot make long filename

2018-11-23 Thread Alexey via lazarus
I turned new Ide manifest option (subj) on, so I can skip prefix, no? -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Built console app on Linux, but won't run on another Linux machine

2018-10-27 Thread Alexey via Lazarus
I have an idea. Make an error in some gtk2 widget set unit. Build. Then you ll see which part of the app requires gtk2 code. Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Cross-compile console program to Linux (Ubuntu)?

2018-10-22 Thread Alexey via Lazarus
I would suggest to install FpcupDeluxe, in it you have button to install cross compilers. and then you can choose Target - Linux in Lazarus project options. Alex -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/l

Re: [Lazarus] new http client

2018-10-04 Thread Alexey via Lazarus
FPC has the fpJson lib, so I cannot see why he made Json module. Suggestion for Http: name it PaxHTTP and put demos to the same repo, so OnlinePkgManager guy can get them all. -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.laz

Re: [Lazarus] IDE Spotter

2018-09-24 Thread Alexey via Lazarus
I suggest shorter title - Runner. -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] fpcres not found with custom FPC 2.6.4 installation on Ubuntu

2018-01-29 Thread Alexey via Lazarus
You can install both fpc 2 and 3, if you use the tool: fpcupdeluxe. Alex -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] IDE needs lexers JSON, XML

2018-01-11 Thread Alexey via Lazarus
But I don’t see that IDE supports file filters for xml/json/ini, and seems that these 3 syntaxes not activated for files on editor. Text not colored. -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazar

[Lazarus] TControl.AutoAdjustLayout needs param AScaleFont

2017-12-25 Thread Alexey via Lazarus
 subj. with default=true. Reason: if F.AutoAdjustLayout called manually in non scaled app (CudaText), then i have oversized fonts in result form. Fonts (label, button, listbox) are scaled anyway in my app, and form size not scaled auto (Scaled=off in proj) -- Regards, Alexey T --

[Lazarus] ButtonPanel uses not same back color as Form uses

2017-12-20 Thread Alexey via Lazarus
This is on Ubuntu 17.10, default theme, gtk2. Pucture, buttonpanel below. -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] In trunk, cannot run app from IDE

2017-12-19 Thread Alexey via Lazarus
With Laz trunk, on Win10, i cannot run app from IDE (new empty window with imagelist+ main menu) "No program file "" found" - when i do Run "Launching application invalid"-- when i do Run Without Debug exe file is compiled ok. -- Regards, Alexey -- _

[Lazarus] fgl unit, TFPSList needs DeleteRange

2017-12-09 Thread Alexey via Lazarus
I have 1M lines file. CudaText cannot delete lines fast [selected 800K lines]. FPSList has only Delete for one item. Need DeleteRange. -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo

Re: [Lazarus] Some trunk changes make CudaText crash

2017-12-08 Thread Alexey via Lazarus
I found the reason, it's my bug with generic lists. Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Some trunk changes make CudaText crash

2017-12-08 Thread Alexey via Lazarus
My workaround don't help, still AV on pasting. Both cases give AV in fpc_ansistr_dec_ref. Here is asm window: Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Some trunk changes make CudaText crash

2017-12-08 Thread Alexey via Lazarus
>You don't see the source code for function UTF8CharacterLength() I don't see which place gives AV (on pasting text), is it in this^^^ func, or not. I only see last stop at ...:=UTF8CharacterLength(). Then i removed this call and replaced it with ...:=Length(UTF8Decode(s)). now this crash gone

Re: [Lazarus] Some trunk changes make CudaText crash

2017-12-08 Thread Alexey via Lazarus
User uses Win32, I use Linux gtk2 x64. FPC 3.0.0 (win) and 3.0.2 (linux). -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] Some trunk changes make CudaText crash

2017-12-08 Thread Alexey via Lazarus
User sees crash in CudaText, when he makes paste from clipboard. He tells how to repeat crash: https://github.com/Alexey-T/CudaText/issues/1146 First i saw error in debugger in lazutf8 (UTF8CharacterLength(..)), after Lazarus update I don't see source of crash now (only some asm dump). -- Reg

Re: [Lazarus] CHM help package

2017-12-08 Thread Alexey via Lazarus
On 08.12.2017 17:21, Werner Pamler via Lazarus wrote: I am absolutely against renaming units When user uses new package lzx, he adds new req in project. Then he also can change unit names in "uses". -- Regards, Alexey -- ___ Lazarus mailing list L

Re: [Lazarus] CHM help package

2017-12-08 Thread Alexey via Lazarus
> FPC package 'chm' contain LZX compression routines in some files - paslzx.pas, paslzxcomp.pas, paslznonslide.pas, lzxcompressthread.pas It makes sense to move them to new package, and rename files! to lzx_*.pas. I like such names with _. -- Regards, Alexey -- __

[Lazarus] Laz commit for SpinEdit overflow fix

2017-12-08 Thread Alexey via Lazarus
- FIncrement := AIncrement; + if AIncrement > 0 then + FIncrement := AIncrement + else + FIncrement := -AIncrement; better: FIncrement := Abs(AIncrement); -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists

Re: [Lazarus] OnlinePM wish about folder

2017-12-08 Thread Alexey via Lazarus
On 08.12.2017 11:32, Werner Pamler via Lazarus wrote: don't like this, I want to keep third-party packages away from Lazarus Then maybe lazarus/components_user/ ? It's on the same level as components/. -- Regards, Alexey -- ___ Lazarus mailing list

[Lazarus] OnlinePM wish about folder

2017-12-07 Thread Alexey via Lazarus
It will be good, of OPM install all packages into subdir lazarus/components/_user. Now it uses very deep subdir which is hard to find in file manager. _user (with _ char so it will be first in filemanager) is easy to find. Or you can use _opm or _addons (_ char must have). -- Regards, Alexey

Re: [Lazarus] NewRequirement dlg

2017-12-04 Thread Alexey via Lazarus
 4) "package type" label misaligned with "[x]Online[x]Offline" - coz of big Ubuntu controls. Alex -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] NewRequirement dlg

2017-12-04 Thread Alexey via Lazarus
3) listbox items "aggpas" and with "p" -truncated from below of item by 2pixels, coz of big Ubuntu font. Alex -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] NewRequirement dlg

2017-12-04 Thread Alexey via Lazarus
In this dlg it's needed 1) to paint listbox items with 3-4 pixel indent from left. 2) "Package name" label - make v-centered near Edit field. -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/l

[Lazarus] Mantis patch "Mouse-wheel-horz-scroll support"

2017-11-30 Thread Alexey via Lazarus
https://bugs.freepascal.org/view.php?id=32753 1. It is tested on Gtk2 and Win32. Gtk1 is not tested [but code is copy pasted, 4..5 values for vert scroll - copied block with 6..7 values for horz scroll, 6..7 is from gtk doc]. 2. Maybe change issue section to "Patches" 3. you applied micro pa

[Lazarus] Need to use this fix in 1.8

2017-11-29 Thread Alexey via Lazarus
https://bugs.freepascal.org/view.php?id=32717 Otherwise, this dialog is not scaled. -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Mouse horiz scroll support

2017-11-29 Thread Alexey via Lazarus
LCL don't support it. Pls apply this diff- only constant LM_MouseHWHeel https://msdn.microsoft.com/en-us/library/windows/desktop/ms645614(v=vs.85).aspx Index: lcl/lmessages.pp === --- lcl/lmessages.pp (revision 56436) +++ lcl/lmessa

[Lazarus] Mouse horiz scroll support

2017-11-29 Thread Alexey via Lazarus
Does LCL support mouse wheel horz scrolling? how? Ie, i have a mouse which has wheel with horz scroll. On Linux it works in Firefox if i tilt the wheel left/rt. -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://list

Re: [Lazarus] Center text in multi-line hints?

2017-11-26 Thread Alexey via Lazarus
any way to center the text in a multi-line hint? You can now apply the patch https://bugs.freepascal.org/view.php?id=32716 -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Guessing the encoding of some text

2017-11-17 Thread Alexey via Lazarus
ChsDet is in IDE OnlinePackageManager, "trivial changes" aren't needed. Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] Apply diff in mantis, CF_text/CF_bitmap

2017-11-16 Thread Alexey via Lazarus
Pls see and apply it, posted long ago: https://bugs.freepascal.org/view.php?id=27194 -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Guessing the encoding of some text

2017-11-16 Thread Alexey via Lazarus
>What do others do in this situation? I use https://github.com/Alexey-T/ATSynEdit/blob/master/atsynedit/atstringproc_utf8detect.pas -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/l

Re: [Lazarus] IDE OI always-on-top: fix

2017-11-14 Thread Alexey via Lazarus
>It's fixed in r.56413 Yes, now it's fixed this way. -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] IDE OI always-on-top: fix

2017-11-14 Thread Alexey via Lazarus
On 12.11.2017 21:53, Alexey wrote: Can you apply this fix? it changes only window-type-hints for "toolwindow" BorderStyle, it's safe i think. -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org

Re: [Lazarus] type IntegerList

2017-11-13 Thread Alexey via Lazarus
  it is very easy to implement using generics as you can see from TIntegerList. Good to include lists for [Int64, PtrInt, PtrUInt] to the same unit. -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-i

[Lazarus] type IntegerList

2017-11-13 Thread Alexey via Lazarus
Thanks for this new list. Diff like - Result:=integer(PtrUInt(FCols[aCol])) + Result:=FCols[aCol] shows it's useful. It supports Longint or PtrInt or PtrUInt? Or i need another list for PtrInt? -- Regards, Alexey -- ___ Lazarus mailing list Lazar

[Lazarus] IDE SearchResult dlg - edit is clipped

2017-11-13 Thread Alexey via Lazarus
Here's screenshot, top border of edit is out of window. Linux gtk2. -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] IDE OI always-on-top: fix

2017-11-12 Thread Alexey via Lazarus
I see reports about OI is always on top; I see it too. Here's simple fix, found it becoz I made patch for these lines, window-type-hints. -- Regards, Alexey Index: lcl/interfaces/gtk2/gtk2globals.pp === --- lcl/interfaces/gtk2/gtk2

Re: [Lazarus] PackageLinks dialog

2017-11-10 Thread Alexey via Lazarus
- enable option RowSelect Why? Now selection is barely visible with thin frame on 1 cell. - not sure about opt Editing, maybe disable it. What do you mean with opt Editing? grid.Options has goEditing. Mattias -- Regards, Alexey -- ___ L

[Lazarus] PackageLinks dialog

2017-11-10 Thread Alexey via Lazarus
I wish that in this dialog grid - disable option RangeSelect (select n lines) - enable option RowSelect - not sure about opt Editing, maybe disable it. -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazaru

[Lazarus] Why not to apply patch of TListView.CustomSort

2017-11-09 Thread Alexey via Lazarus
Patch is ready and tested- https://bugs.freepascal.org/view.php?id=8536 -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] PlotFunction patch declined?

2017-11-07 Thread Alexey via Lazarus
Can you add to FPC some example which uses this engine? (fpc)\source\packages\fcl-base\src\fpexprpars.pp -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] PlotFunction patch declined?

2017-11-07 Thread Alexey via Lazarus
 >missing some features of the fpexprparser. I couldn't find fpexprparser folders in FPC 3.0.2 and Laz- where is it? -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] PlotFunction patch declined?

2017-11-07 Thread Alexey via Lazarus
https://bugs.freepascal.org/view.php?id=32653 wp wrote: >>Sorry I will not fix this one because it opens another Pandora to add features well-established in TAChart. Pls apply the patch. it makes several plots on one panel. What Pandora?? I don't know Pandora, I use Laz and LCL. -- Regards,

[Lazarus] PlotFunction: code style

2017-11-06 Thread Alexey via Lazarus
I don't understand why in PlotFunction code we have TextOut(ACanvas.Handle, 4, CY, PChar(L), Length(L)); Why not simple ACanvas.TextOut. -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listi

Re: [Lazarus] "Ambiguous unit found" message

2017-10-31 Thread Alexey via Lazarus
On 31.10.2017 12:41, Michael Van Canneyt via Lazarus wrote: Hm. Somehow the use of the word 'sad' at the end reminds me of the tweets of the Orange Emperor... I saw such tweets from anther man. E.g. "Today we have meeting. They don't understand this and this. Sad!" -- Regards, Alexey -- __

Re: [Lazarus] "Ambiguous unit found" message

2017-10-31 Thread Alexey via Lazarus
On 31.10.2017 12:01, Werner Pamler via Lazarus wrote: the interesting parts are hidden by the "...", no way to expand the dialog: It is caused by WinAPI truncating path. i suggested to make workaround for WinAPI, but guys declined. -- Regards, Alexey -- _

Re: [Lazarus] Who is using Object Pascal in production?

2017-10-27 Thread Alexey via Lazarus
>What do you think? I think, new langs are for other tasks. Go- for web servers; Rust- maybe concurrent or not (used for browser). JS based langs- for web. Kotlin- for Java. 90% of new langs - for other tasks. -- Regards, Alexey -- ___ Lazarus mail

[Lazarus] Gtk2 error after update to Ubuntu 17.10

2017-10-22 Thread Alexey via Lazarus
LCL Gtk2 app [was ok] now shows in console msg about str-constant: user@PC:~$ cudatext -v /usr/share/themes/Radiance/gtk-2.0/apps/mate-panel.rc:30: error: invalid string constant "murrine-scrollbar", expected valid string constant CudaText version 1.22.0.0 user@PC:~$ -- Regards, Alexey -- _

Re: [Lazarus] How to enable Code outline feature of the IDE

2017-10-21 Thread Alexey via Lazarus
>A link to a description would be nice. I made desc topic here: http://wiki.freepascal.org/Lazarus_IDE_Tools#Outline -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] TCDListbox implemented?

2017-10-17 Thread Alexey via Lazarus
I see not implemented, CustomDrawn demo don't show it. ...Why you cannot take ATListbox and make CDListbox on its base? -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] AppProps property for dimmed disabled controls

2017-10-15 Thread Alexey via Lazarus
Old issue about "patch for dimmed font color for Grid.Enabled=false" (patch wasnt applied). Maybe add TApplicationProperties.DimmedColorOfDisabledControls ? Then we can use it in LCL. -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.laza

Re: [Lazarus] App don't appear on taskbar of 2nd monitor

2017-10-06 Thread Alexey via Lazarus
On 06.10.2017 12:10, Michael Van Canneyt via Lazarus wrote: Works fine if I do it here with an LCL app. Linux mint It seems was a Win8/Win10 report. (I dont have monitors to test.) -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-

[Lazarus] App don't appear on taskbar of 2nd monitor

2017-10-06 Thread Alexey via Lazarus
Is looks like LCL bug. who can confirm it? https://github.com/Alexey-T/CudaText/issues/1108 -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] IDE with ATtabs idea

2017-10-04 Thread Alexey via Lazarus
Hi. I thought it would be nice change, coz of features of ATtabs: + pseudo tab, v dropdown menu, <> scroll arrows. PAS icon on pas tabs, LFM icon on form tabs, etc. But minus of this: not native tabs look. On Win10 look is like native, on Linux/Mac not. Plus: is same look on Win/Lin/Mac. --

Re: [Lazarus] Documentation in Lazarus

2017-10-02 Thread Alexey via Lazarus
IMO you need: - Latex files (with formulas) - lib which can render latex to HTML - lib which can show HTML on a form (several exist for fpc) Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Custom component: cannot make Items: TStrings

2017-09-30 Thread Alexey via Lazarus
On 30.09.2017 22:44, Michael Van Canneyt via Lazarus wrote: Remove the clear statement in the setter ? It clears FTabItems, which you just assigned. That's pointless. Also, if FTabItems equals AValue, it will clear the AValue hmm, setter don't clear FTabItems, it clear another FTabList [TList]

Re: [Lazarus] Custom component: cannot make Items: TStrings

2017-09-30 Thread Alexey via Lazarus
On 30.09.2017 20:20, Vojtěch Čihák via Lazarus wrote: ATTabs should read Items from *.lfm. But it creates new instance of TStringList instead. New instance is created from existing tabs, therefore it is empty. I changed getter. it uses now FTabItems (field) and fills it on each GetItems. But

[Lazarus] Custom component: cannot make Items: TStrings

2017-09-30 Thread Alexey via Lazarus
Hi. I added to ATTabs prop Items: TStrings. It has getter/setter. It has registering in IDE. - in designer, OI can set Items and tabs appear - if i run app, tabs dont appear- ?? - if I restart IDE, app's LFM looses Items- ?? https://github.com/alexey-t/attabs -- Regards, Alexey -- _

[Lazarus] MainMenu dropped to the left, Win bug?

2017-09-28 Thread Alexey via Lazarus
User reported this bug here: https://github.com/Alexey-T/CudaText/issues/1101 -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] FPReport file names

2017-09-12 Thread Alexey via Lazarus
On 12.09.2017 21:25, Michael Van Canneyt via Lazarus wrote: Why would people see filename conflicts ? None of these files exist yet. because files like dlginputcombo.pp, fradbfdata.*, frmresizeelements.* may exist in BIG app. -- Regards, Alexey -- ___

Re: [Lazarus] FPReport file names

2017-09-12 Thread Alexey via Lazarus
>Definitely not. It is good to do (some users will see filename conflicts in big apps). no big apps ready on FPRep yet. -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] FPReport file names

2017-09-12 Thread Alexey via Lazarus
Hi It is new. Please rename (it's easy for new component) all files: usually its good with one prefix. E.g. fprep_*.*. And form resources: 18 LFM files, 29 pas files. Pls rename with prefix too, to avoid LFM conflicts. -- Regards, Alexey -- ___ L

Re: [Lazarus] Idea of TFormTitle

2017-09-11 Thread Alexey via Lazarus
>Why would you want that? LCL can have global var for FormTitle. this var can be used by all forms. so all forms will be "themed". if programmer changes this glob var (like we can do with THintWindow) then all windows have themed window title. -- Regards, Alexey -- ___

[Lazarus] Idea of TFormTitle

2017-09-11 Thread Alexey via Lazarus
Maybe ok idea? make class TFormTitle. it is some small (by Y) form which is embedded into Form (form which has FormTitle property set). When prop FormTitle set, OS border hides and obj of FormTitle inserted into TOP of form (it looks like OS window caption). When this FormTitle is used, form h

[Lazarus] not optimal code (need Move) in RegExpr unit

2017-09-11 Thread Alexey via Lazarus
function StrPCopy (Dest: PRegExprChar; const Source: RegExprString): PRegExprChar; var i, Len : PtrInt; begin Len := length (Source); //###0.932 for i := 1 to Len do Dest [i - 1] := Source [i]; Dest [Len] := #0; Result := Dest; end; { of function StrPCopy -

[Lazarus] TreeView.SortType has no effect on adding

2017-09-07 Thread Alexey via Lazarus
not sure it is a bug. set Tree.SortType to stText. tree is sorted OK. now clear it, add many new items ==> items not sorted. so AlphaSort not called after adding items. -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http

[Lazarus] crDrag cursor is now 2x bigger

2017-09-06 Thread Alexey via Lazarus
with crNoDrop cursor. On Linux gtk2 I see cursor is 2x-3x bigger than I seen it before, 2-3 months ago. -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] TControl.ChangeScale impl

2017-08-31 Thread Alexey via Lazarus
There is such procedure. why not to rewrite it via call to AutoAdjustLayout. to not have "dup" code. procedure TControl.ChangeScale(Multiplier, Divider: Integer); var R: TRect; begin if Multiplier <> Divider then begin ScaleConstraints(Multiplier, Divider); if not ParentFont then

Re: [Lazarus] dynamic string proposal

2017-08-17 Thread Alexey via Lazarus
On 16.08.2017 17:36, Martin Frb via Lazarus wrote: There is ONE character, that comprises more than 200 codepoints. Only way to store such a char is in a type of dynamic size (aka string) Interesting inf, thanks; so that my idea is not ok for new FPC type. it is ok only for some class, which a

Re: [Lazarus] dynamic string proposal

2017-08-16 Thread Alexey via Lazarus
On 16.08.2017 15:30, Martin Frb via Lazarus wrote: A char can be composed of several combining code points (each of them afaik, in the 32 bit range). So a char can have 96 or more bits. (And not all of them have a combined form). See my prev post: i see that each S[i] good to be like QWord (

Re: [Lazarus] dynamic string proposal

2017-08-16 Thread Alexey via Lazarus
On 16.08.2017 12:51, Mattias Gaertner via Lazarus wrote: When you propose a new string type "dynamicstring" you have to define these operators. BTW, it will be good to have "Cstring" (or another name, not "dynamicstring") : - [] operator is 0-based like Python/C - s[i] is DWORD per char (f

Re: [Lazarus] Optimize SwapEndian for widestring?

2017-08-02 Thread Alexey via Lazarus
Thanks, it didn't compile, this this did: function SSwapEndian(const S: UnicodeString): UnicodeString; var i: integer; p: PWord; begin Result:= S; if S='' then exit; UniqueString(Result); P:= PWord(@Result[1]); for i:= 1 to Length(Result) do begin P^:= SwapEndian(P^); Inc(

[Lazarus] Optimize SwapEndian for widestring?

2017-08-01 Thread Alexey via Lazarus
Pls tell can I optimize this func? E.g. calc each char's PWord and read/write word. function SSwapEndian(const S: UnicodeString): UnicodeString; var i: integer; begin Result:= S; for i:= 1 to Length(Result) do Result[i]:= WideChar(SwapEndian(Ord(Result[i]))); end; -- Regards, Alexey

[Lazarus] TCustomControl.Caption setter needs Invalidate

2017-07-29 Thread Alexey via Lazarus
TCustomControl.Caption setter (ie TControl.SetText) misses Invalidate call. So, my ATButtons (ATButton based on CustomControl) miss visual update, when user changes app i18n. -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org

[Lazarus] LCL don't paint to canvas if a key is holded

2017-07-28 Thread Alexey via Lazarus
Problem: CudaText editor opens 400K file at the end, syntax parser is slow, I hold "d" char. expected: "d" or "d"*n chars appears from time to time. Eg each 1-2 seconds. Seen: "d" chars appears each 5-6 seconds. Not

Re: [Lazarus] Display multiple images

2017-07-27 Thread Alexey via Lazarus
Old from me, 2008 year, Delphi only http://atviewer.sourceforge.net/atimagemap.htm Alex -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] ComparePoints func

2017-07-27 Thread Alexey via Lazarus
>Therefore it makes no sense to introduce a general ComparePoints-function. Yes, it is right, func not needed. And my case [compare source editor x/y coords] is rare. -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http

Re: [Lazarus] ComparePoints func

2017-07-26 Thread Alexey via Lazarus
First start by defining what ComparePoints is supposed to measure or compare. yes, of course: compare source editor x/y positions. Ie, it is CompareCoords. -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists

Re: [Lazarus] ComparePoints func

2017-07-26 Thread Alexey via Lazarus
On 26.07.2017 18:11, Graeme Geldenhuys via Lazarus wrote: ComparePoints() returning a Integer is not a very friendly return type either, Hm, in my app Int makes sense: i need to compare Points in binary search, and see: >, <, =. -- Regards, Alexey --

[Lazarus] ComparePoints func

2017-07-26 Thread Alexey via Lazarus
I think LCL has many Compare funcs, but misses func for TPoint. Here it's comparing x/y screen coordinates function ComparePoints(P1, P2: TPoint): integer; begin if (P1.X=P2.X) and (P1.Y=P2.Y) then exit(0); if (P1.Y>P2.Y) then exit(1); if (P1.YP2.X) then exit(1) else exit(-1); end; -

Re: [Lazarus] Gtk2 missed try-finally

2017-07-25 Thread Alexey via Lazarus
How did you manage to create a mem leak there? If not using try-finally, and exception, Bitmap will not be freed. -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] Gtk2 missed try-finally

2017-07-25 Thread Alexey via Lazarus
gtk2proc.inc, procedure DrawImageListIconOnWidget: it allocates Bitmap + DC. Pls add try-finally for Bitmap; and (not sure) try-finally for DC: finally ReleaseDC(HDC({%H-}PtrUInt(DestWidget)),DestDC); end; finally Bitmap.Free; end; -- Regards, Alexey -- __

Re: [Lazarus] New tool sspell for pascal programmers

2017-07-24 Thread Alexey via Lazarus
On 24.07.2017 04:07, Darius Blaszyk via Lazarus wrote: This tool extracts text from comments and string literals in source code files and checks them for spelling. Very useful It is already doable in CudaText editor: - install plugin SpellChecker [not ready for Win64] - open Pas file, call sp

[Lazarus] pmXor pen mode on Mac

2017-07-20 Thread Alexey via Lazarus
Dmitry, i searched for pmXor and i see it's not implemented on Mac too? And it's used in Grids, 3 matches. +Search for "pmXor" in "/home/user/lazarus/lcl" (7 matches in 4 files) : #7 : #2 <(162)>: pmXor = FPCanvas.pmXor; <(162)>: pmXor = FPCanvas.pmXor;

Re: [Lazarus] MenuItem's new methods

2017-07-20 Thread Alexey via Lazarus
For this you have the methods in TPopupMenu/TMainMenu. You should be able to link your global events there. Change of each PopupMenu +MainMenu is not nice: theming of all menus at once in nicer, global option. If app does theme for main menu, why not to change other popupmenus. -- Regards, A

[Lazarus] MenuItem's new methods

2017-07-20 Thread Alexey via Lazarus
Ondrej, thanks for adding this. Pls tell: is it possible to make MenuItems themes (application wide in all menus, or MainMenu)? this needs global OnDrawItem which will be used by LCL. Can you add it? -- Regards, AlexeyT -- ___ Lazarus mailing list

[Lazarus] pmNotXor on Carbon

2017-07-19 Thread Alexey via Lazarus
Dmitry, can you see, pls, how to add the same on Cocoa WS. Maybe easy... -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] MessageBox mb_defbutton1

2017-07-19 Thread Alexey via Lazarus
This must show def-button Retry, as button#1, but shows def-button Cancel. Is it a bug? Linux gtk2 x64 if MsgBox{simple wrapper}(msgCannotSaveFile+#10+FFileName, MB_RETRYCANCEL or MB_ICONERROR or MB_DEFBUTTON1) = .. -- Regards, Alexey -- ___ L

  1   2   3   >