Re: [Lazarus] Hi-DPI tweak of components

2023-06-17 Thread Vojtěch Čihák via lazarus
ng list" Datum: 15.06.2023 08:35 Předmět: Re: [Lazarus] Hi-DPI tweak of components On 14.06.2023 21:52, Vojtěch Čihák via lazarus wrote:This is strange. All controls should be adjusted regardless of the Owner. TLabeledEdit works fine (edit that has an att

Re: [Lazarus] Hi-DPI tweak of components

2023-06-14 Thread Vojtěch Čihák via lazarus
Hi, I have one more question to DoAutoAdjustLayout();. I use TECSpinBtns (TGraphicControl) in two variants: The first as a stand-alone component and the second as a part of TECSpinEdit (where TEdit is Owner and TECSpinBtns is subcomponent anchored to it). When I put them on the form, 

Re: [Lazarus] Hi-DPI tweak of components

2023-06-07 Thread Vojtěch Čihák via lazarus
ředmět: Re: [Lazarus] Hi-DPI tweak of components On 07.06.2023 00:35, Vojtěch Čihák via lazarus wrote:... Here is information: https://wiki.freepascal.org/High_DPI#High_DPI_in_Lazarus_1.8_and_above <https://wiki.freepascal.org/High_DPI#High_DPI_in_Lazarus_1.8_and_above> IIRC, DoAutoAdjust

[Lazarus] Hi-DPI tweak of components

2023-06-06 Thread Vojtěch Čihák via lazarus
Hi,   I finally built a hi-DPI machine (28'' 4k display, currently set to 118PPI) and I need to tweak EC-Controls (https://wiki.freepascal.org/Eye-Candy_Controls) to scale better. One problematic is TECSpinBtns because it is designed like this: it consists of (initially) nine small buttons

Re: [Lazarus] converted Delphi 7 project: add new form not possible?

2023-02-24 Thread Vojtěch Čihák via lazarus
Yes, files are unit2.pas and unit2.lfm so you must manually rename the class and the form.   I tried to rename the second Form1 to Form2 in Object Inspector but it automatically changed line Application.CreateForm(TForm1, Form1); to Application.CreateForm(TForm2, Form2); in ProjectD7.lpr Buit

Re: [Lazarus] converted Delphi 7 project: add new form not possible?

2023-02-24 Thread Vojtěch Čihák via lazarus
Hi,   it is my new experience with Delphi project convertor. I noticed that: The converted unit1 has:  TForm1 = class(TForm)     ListBox1: TListBox;     Button1: TButton;          And when I add a new form, i.e. unit2, it has also TForm1 = class(TForm)   private     Normally (common

Re: [Lazarus] How to fix slow screen refresh of TListbox?

2022-11-20 Thread Vojtěch Čihák via lazarus
It wouldn't be that hard to write custom component based on TGraphicControl + TBitmap with built-in bitmap font. Copying bitmap letters will be faster than rendering from ttf.   V. __ Od: "Bo Berglund via lazarus" Komu:

[Lazarus] Mantis vs GitLab issue tracker

2021-08-13 Thread Vojtěch Čihák via lazarus
Hi,   is it just my impression that Mantis was more feature rich an had better layout? An example: Mantis has "Reported by me".   (I understand that new tracker is better wired with version system which is benefit for developers.)   Thanks, V. -- ___

Re: [Lazarus] Borderspacing property not working?

2021-02-12 Thread Vojtěch Čihák via lazarus
rderSpacing property).  Is this a known bug?  Or is it an undocumented feature?  If the latter, how do I anchor to a parent in a manner that respects border spacing? On Fri, 12 Feb 2021 at 14:19, Timothy Groves > wrote:That worked.  Thanks. On Fri, 12 Feb 2021 at 14:06, Vojtěch Čihák via laz

Re: [Lazarus] Borderspacing property not working?

2021-02-12 Thread Vojtěch Čihák via lazarus
Try to add there AnchorParallel:   labSurface [0].AnchorSide [akTop].Control := labSurfaceLocation; labSurface [0].AnchorSide [akTop].Side := asrBottom; labSurface [0].AnchorSide [akLeft].Control := Parent; labSurface [0].AnchorSide [akLeft].Side := asrRight; labSurface[0].AnchorParallel(akLeft,

Re: [Lazarus] Lazarus (idescout) cannot be compiled after 64182

2020-12-09 Thread Vojtěch Čihák via lazarus
Thanks. __ Od: "Juha Manninen via lazarus" Komu: "Lazarus mailing list" Datum: 09.12.2020 15:53 Předmět: Re: [Lazarus] Lazarus (idescout) cannot be compiled after 64182 Oops, yes. I restored it in r64190.Regards,Juha -- --

[Lazarus] Lazarus (idescout) cannot be compiled after 64182

2020-12-09 Thread Vojtěch Čihák via lazarus
Hi,   error is unit frmscout.pas, lines 676 and 678 (frmscout.pas(676,35) Error: Identifier idents no member "Comps").   Reason is that the line 294 of componentreg.pas:    property Comps: TRegisteredComponentList read fComps;   was removed (accidentaly? because the private field fComps is still

Re: [Lazarus] FormClose

2020-09-09 Thread Vojtěch Čihák via lazarus
Hi,   FormClose is opposite to FormShow. The use-case is a modal form which exists always (i.e. is autocreated when app. starts and is freed when app. end). You can call ShowModal, create some objects in FormShow and free them in FormClose.   V.

Re: [Lazarus] TextHint in TComboBox

2020-08-13 Thread Vojtěch Čihák via lazarus
Yes, it looks fine now.   Thanks! __ Od: "Juha Manninen via lazarus" Komu: "Lazarus mailing list" Datum: 13.08.2020 19:36 Předmět: Re: [Lazarus] TextHint in TComboBox Please test with r63734. The 3-state type TEmulatedTextHintStatus

Re: [Lazarus] TextHint in TComboBox

2020-08-13 Thread Vojtěch Čihák via lazarus
Hi,   something went wrong. When I open IDE Options or Project Options and I click on any item of TreeView, everything disappear. Content of the filter become "(filter)". When I change it (i.e. non-empty string), content is back. And many of the content is italic.   Lazarus 2.1.0 r63731M FPC

Re: [Lazarus] TAction and Short-cut conflicts

2020-05-25 Thread Vojtěch Čihák via lazarus
I didn't know that Menu Editor has this feature. I tried and my project has >160 conflicts and I can confirm what you report. I also noticed that it reports Alt+C (i.e. accelerators, when some caption is "_Cut" with underlined _C_). And the window needs better anchoring for vertical resizing

Re: [Lazarus] Tool to make icons ?

2020-05-21 Thread Vojtěch Čihák via lazarus
IMO Inkscape works much better compared to Karbon (if it is what you meant  LibreOffice Draw). Therefore I prefer it, even if it is a little stranger (GTK app.) on my Plasma desktop.   V. __ Od: "Werner Pamler via lazarus" Komu:

Re: [Lazarus] Tool to make icons ?

2020-05-21 Thread Vojtěch Čihák via lazarus
I also use Inkscape and rsvg-convert   I have a script for converting all *.svg icons to multiple sizes:   #!/bin/bash   for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 64 -h 64 -a -o ../png_all/`echo $i | sed -e 's/.svg$/_64.png/'`; done   for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 56 -h 56

Re: [Lazarus] Repainting of TWinControl children

2020-05-06 Thread Vojtěch Čihák via lazarus
AFAIK with TCustomControl you obtain just Resize and then Paint. Paint is preceded by WMPaint. You should move your code to one of these methods.   Vojtěch a.k.a. Blaazen   __ Od: "Martin Grajcar via lazarus" Komu: "Lazarus mailing

Re: [Lazarus] Website/Mantis back online (colors)

2019-04-23 Thread Vojtěch Čihák via lazarus
Hi,   original appearance on Wayback machine:  https://web.archive.org/web/20171104124226/https://bugs.freepascal.org/view_all_bug_page.php   V. __ Od: "Martin Frb via lazarus" Komu: lazarus@lists.lazarus-ide.org Datum: 23.04.2019

Re: [Lazarus] Website/Mantis back online

2019-04-20 Thread Vojtěch Čihák via lazarus
So I am not alone (I chose more diplomatic words).   Vojtěch __ Od: "Bart via lazarus" Komu: "Lazarus mailing list" Datum: 21.04.2019 00:16 Předmět: Re: [Lazarus] Website/Mantis back online On Sat, Apr 20, 2019 at 11:36 PM Michael

Re: [Lazarus] Website/Mantis back online

2019-04-20 Thread Vojtěch Čihák via lazarus
Oh, the new bugtracker skin is ... hmm, not so bad, but I'm rather conservative.   Well, life is change. :-)   Vojtěch   __ Od: "Michael Van Canneyt via lazarus" Komu: "FPC mailing list" , "FPC development mailing list" , "Lazarus

Re: [Lazarus] Cannot build trunk

2019-04-13 Thread Vojtěch Čihák via lazarus
Op 13-04-19 om 14:41 schreef Vojtěch Čihák via lazarus: > the latest trunk 60960 can't be built: fppkghelper.pas(524,20) Error: Identifier idents no member "ConfigurationFilename" You have to update fpc. (I suppost you are using fpc-t

[Lazarus] Cannot build trunk

2019-04-13 Thread Vojtěch Čihák via lazarus
Hi,   the latest trunk 60960 can't be built: fppkghelper.pas(524,20) Error: Identifier idents no member "ConfigurationFilename"   Thanks, Vojtěch -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Is LCL-GTK still possible?

2019-03-26 Thread Vojtěch Čihák via lazarus
Hi   I tried to compile an empty project in Laz. 2.1 an it fails on: gtkwsstdctrls.pp(95,21) Error: There is no method in an ancestor class to be overridden: "class SetReadOnly(const TCustomComboBox;Boolean);"   as GTK1 is not actively maintained anymore so it would need some patches for even a

Re: [Lazarus] IDE dlg Go To don't react to Esc key

2019-01-23 Thread Vojtěch Čihák via lazarus
Hi,   I just did a test. Escape closes automatically any Form displayed with "ShowModal" (not Show) if there is BitBtn with Kind=bkCancel on that Form. It works on Delphi7, Lazarus+Qt4 or GTk2. Edit.OnKeyPress on GoToFrm form contains this code:  if not (Key in [^C,^V,^X,#8,'0'..'9']) then    

Re: [Lazarus] Exception=Unable to create file "/etc/fppkg/default"

2018-12-30 Thread Vojtěch Čihák via lazarus
ia lazarus: > On Sun, Dec 30, 2018 at 2:42 PM Vojtěch Čihák via lazarus > wrote: > >> Lazarus(SVN) at startup tries to write at /etc/fppkg/ where it has no rights. The same file exists /home/$USERNAME/.fppkg/ That ain't good. > There are more issues with r59933: see > http

[Lazarus] Exception=Unable to create file "/etc/fppkg/default"

2018-12-30 Thread Vojtěch Čihák via lazarus
Hi,   Lazarus(SVN) at startup tries to write at /etc/fppkg/ where it has no rights. The same file exists /home/$USERNAME/.fppkg/   Revision 59930 works well yet, revisions 59936 and 59940 are affected.   [v1@nb-msi lazarus]$ ./startlazarus is a file TLazarusManager.Run starting

Re: [Lazarus] TRadioGroup not found error

2018-12-11 Thread Vojtěch Čihák via lazarus
TRadioGroup is in unit ExtCtrls. Lazarus, however, adds it automatically to "uses" when you insert it to form at design-time.   V. __ Od: "Thomas Crone via lazarus" Komu: lazarus@lists.lazarus-ide.org Datum: 11.12.2018 22:58 Předmět:

[Lazarus] Failed to wait for debug event. Errcode: 4

2018-12-02 Thread Vojtěch Čihák via lazarus
Hi,   sometimes, after I close my project, I got this message dialog: "Failed to wait for debug event. Errcode: 4". I can see this in console:   Hint: (lazarus) [TMainIDE.DoRunProject] INIT Note: (lazarus) [TMainIDE.DoBuildProject] MainBuildBoss.DoCheckIfProjectNeedsCompilation nothing to be

Re: [Lazarus] Order of OnCreate and OnActivate in Qt4

2018-11-26 Thread Vojtěch Čihák via lazarus
rus > wrote:On 11/25/2018 04:43 PM, Vojtěch Čihák via lazarus wrote: > CRASH, because code in OnActivate assumes that FrmContext already exists. > > So, Qt4+Plastique has different order of events than Qt4+QtCurve. > > Unfortunately, I cannot reproduce with simple demo

[Lazarus] Order of OnCreate and OnActivate in Qt4

2018-11-25 Thread Vojtěch Čihák via lazarus
Hi,   I met strange bug today. I have these lines in .lpr: ... Application.CreateForm(TFrmMain, FrmMain); ... Application.CreateForm(TFrmContext, FrmContext); ...   and the order of events in Qt and GTk2 is: FrmMain.Create FrmContext.Create FrmMain.Activate   Today I used tool qtconfig and

Re: [Lazarus] Text in console in/output mirrored

2018-11-20 Thread Vojtěch Čihák via lazarus
Thankś, r.59612 is OK.   V. __ Od: "Mattias Gaertner via lazarus" Komu: lazarus@lists.lazarus-ide.org Datum: 20.11.2018 22:07 Předmět: Re: [Lazarus] Text in console in/output mirrored On Tue, 20 Nov 2018 18:17:02 +0100 Voj

Re: [Lazarus] Text in console in/output mirrored

2018-11-20 Thread Vojtěch Čihák via lazarus
in console in/output mirrored On Tue, 20 Nov 2018 17:29:12 +0100 Vojtěch Čihák via lazarus wrote: > Hi, >   > it's caused by 59589 > (https://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/debugger/pseudoterminaldlg.pp?root=lazarus=59589=59588=59589 <https://svn.freepascal.org/cgi-bin/

[Lazarus] Text in console in/output mirrored

2018-11-19 Thread Vojtěch Čihák via lazarus
Hi,   it's funny, text is mirrored.   DebugLn('May the Force be with you.');   writes .uoy htiw eb ecroF eht yaM   Lazarus 2.1.0 r59610 FPC 3.3.1 x86_64-linux-qt   V. -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org

[Lazarus] Auto accel. keys on tabs in Qt5

2018-10-31 Thread Vojtěch Čihák via Lazarus
Hi,   I noticed that Qt5 automatically adds accerelator keys to TabSheets of PageControl, i.e. _TabSheet1, T_abSheet2, Ta_bSheet3 etc. which allows switching tab by Alt+T/A/B.   Is possible to disable this feature? The reason is that I have complex form and it creates duplicite shortcut Alt+C

Re: [Lazarus] Remove unmatched vars in published

2018-10-25 Thread Vojtěch Čihák via Lazarus
Hi,   do you mean that you add control on the form (let's say Button1), then you remove it (in designer) and line "Button1: TButton;" remains in source editor?   V. __ Od: "Fabio Luis Girardi via Lazarus" Komu: "Lazarus mailing list"

Re: [Lazarus] Can't assign event procedure....

2018-10-13 Thread Vojtěch Čihák via Lazarus
Did you try simply to add "const"?   V. __ Od: "Bo Berglund via Lazarus" Komu: laza...@lists.lazarus.freepascal.org Datum: 13.10.2018 20:43 Předmět: [Lazarus] Can't assign event procedure What am I doing wrong here? I have

Re: [Lazarus] IDE Spotter- issues

2018-09-24 Thread Vojtěch Čihák via Lazarus
TEdit.Autosize does autosizing of edit's Height to its Font (mainly font.size or font.height). It does not affect edit's Width. V. __ Od: "Michael Van Canneyt via Lazarus" Komu: "Lazarus mailing list" , "AlexeyT" Datum: 24.09.2018

Re: [Lazarus] Mouse wheel problem

2018-09-19 Thread Vojtěch Čihák via Lazarus
Hi, I tested with Lazarus 2.1.0 r59059M FPC 3.3.1 x86_64-linux-qt, Qt 4.8.7 & libQt4pas 5.2.5, Qt 5.11.1 & libQt5pas 2.6.r57057-1, GTk 2.24.32   V. __ Od: "Fabio Luis Girardi" Komu: "Vojtěch Čihák" Datum: 19.09.2018 12:49 Předmět:

Re: [Lazarus] Mouse wheel problem

2018-09-18 Thread Vojtěch Čihák via Lazarus
Hi, you can use event   procedure TForm1.ComboBox1MouseWheel(Sender: TObject; Shift: TShiftState; WheelDelta: Integer; MousePos: TPoint;   var Handled: Boolean); begin   Handled:=True; end;    this will not scroll the scrollbox when mouse pointer is over combobox, but ComboBox.ItemIndex will at

[Lazarus] Is FPC-Pascal list down?

2018-09-05 Thread Vojtěch Čihák via Lazarus
Hi,   FPC-Pascal list is probably down. Last message in my box is "[fpc-pascal] with in classes/records" by Sven from yesterday 14:15. The two replies by Ryan Joseph + my new topic didn't appear in my box although they are listed in 

Re: [Lazarus] TESTERS NEEDED / ALL PLATFORMS / COPY AND PASTE / Re: Copy to clipboard from synedit

2018-07-15 Thread Vojtěch Čihák via Lazarus
PM Vojtěch Čihák via Lazarus wrote: > 2) I don't know what is "Column Mode Selection" Alt-Shift with arrow keys select a column. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/la

Re: [Lazarus] TESTERS NEEDED / ALL PLATFORMS / COPY AND PASTE / Re: Copy to clipboard from synedit

2018-07-15 Thread Vojtěch Čihák via Lazarus
Hi,   I tested with Lazarus 1.9.0 r58530M FPC 3.1.1 x86_64-linux-qt. I tried also with -dDisableUTF8RTL All works well with two exceptions:   1) folded block is copied folded only in implementation section. In interface section become unfolded (for example block TForm1 = class(TForm)...)   2) I

Re: [Lazarus] TESTERS NEEDED / ALL PLATFORMS / COPY AND PASTE / Re: Copy to clipboard from synedit

2018-07-15 Thread Vojtěch Čihák via Lazarus
Hi,   I tested with Lazarus 1.9.0 r58530M FPC 3.1.1 x86_64-linux-qt. I tried also with -dDisableUTF8RTL All works well with two exceptions:   1) folded block is copied folded only in implementation section. In interface section become unfolded (for example block TForm1 = class(TForm)...)   2) I

Re: [Lazarus] fpdebug question

2018-07-13 Thread Vojtěch Čihák via Lazarus
Thank you very much! :-) __ Od: Martin Frb via Lazarus Komu: lazarus@lists.lazarus-ide.org Datum: 13.07.2018 17:20 Předmět: Re: [Lazarus] fpdebug question On 13/07/2018 16:01, Vojtěch Čihák via Lazarus wrote:Hi, when I write

[Lazarus] fpdebug question

2018-07-13 Thread Vojtěch Čihák via Lazarus
Hi, when I write following code (to force SIGSEGV)   unit Unit1; {$mode objfpc}{$H+}   interface   uses   Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls;   type   { TForm1 }   TForm1 = class(TForm)     Button1: TButton;     procedure Button1Click(Sender: TObject);   private    

Re: [Lazarus] Searchable docs online

2018-07-05 Thread Vojtěch Čihák via Lazarus
Hi,   what is your browser? I use Falkon, here works both button and enter-key.   V. __ Od: "Marcos Douglas B. Santos via Lazarus" Komu: Lazarus mailing list Datum: 05.07.2018 18:59 Předmět: Re: [Lazarus] Searchable docs online On

Re: [Lazarus] CodeTools commands question

2018-06-19 Thread Vojtěch Čihák via Lazarus
] CodeTools commands question On Tue, 19 Jun 2018 16:57:11 +0200 Vojtěch Čihák via Lazarus wrote: Maybe this option helps: "Jump directly to method body" http://wiki.lazarus.freepascal.org/IDE_Window:_Codetools_Options#Jumping_.28e.g._Method_Jumping.29 <http://wiki.lazarus.freepascal.o

[Lazarus] CodeTools commands question

2018-06-19 Thread Vojtěch Čihák via Lazarus
Hi,   is there a CodeTool command that can take me directly to procedure/method implementation?   Example:   function TTreeNode.GetTop: integer; begin   if TreeView <> nil then     TreeView.UpdateAllTops|;  //<-- caret is HERE   Result := FTop; end;     by default, Ctrl+Shift+Up and

Re: [Lazarus] Can't call the resource compiler

2018-06-14 Thread Vojtěch Čihák via Lazarus
Hi,   now I recompiled successfully after update to Lazarus 1.9.0 r58277M FPC 3.1.1 x86_64-linux-qt   I see many updates related to lazdebuggers. May it be related?   Thanks,   V. __ Od: Vojtěch Čihák via Lazarus Komu: Lazarus mailing

[Lazarus] Can't call the resource compiler

2018-06-14 Thread Vojtěch Čihák via Lazarus
Hi,   I have often following message when I try to rebuild Lazarus from IDE:   lazarus.pp(167,1) Error: Can't call the resource compiler "/usr/local/bin/fpcres", switching to external mode   It happens ~last week with trunk: Lazarus 1.9.0 r58270M FPC 3.1.1 x86_64-linux-qt (or qt5).   There's no

Re: [Lazarus] New Image Lists question

2018-05-23 Thread Vojtěch Čihák via Lazarus
I have one more question: do I understand well that ImageList stores basic resolution uncompressed in node Bitmap and all other resolutions compressed in node BitmapAdv?   Thanks,   Vojtěch. __ Od: Ondrej Pokorny via Lazarus

Re: [Lazarus] New Image Lists question

2018-05-23 Thread Vojtěch Čihák via Lazarus
ote:On 23.05.2018 19:29, Vojtěch Čihák via Lazarus wrote:But I need to add images at design-time via Image List Editor. I have my images at *.svg format and I use script for converting (I use rsvg tool).   So I need to know where to store transfered images (one or more directories) and what

Re: [Lazarus] New Image Lists question

2018-05-23 Thread Vojtěch Čihák via Lazarus
19:20 Předmět: Re: [Lazarus] New Image Lists question On 23.05.2018 19:18, Vojtěch Čihák via Lazarus wrote:Thanks, I saw the demos, I see now how it works. But how can I add multiple resolution to ImageList? Is it possible only with suffixes and all images must be in the same directory? I need t

Re: [Lazarus] New Image Lists question

2018-05-23 Thread Vojtěch Čihák via Lazarus
16:07, Vojtěch Čihák via Lazarus wrote: > I have application where user can choose size of toolbars, i.e. I have several image lists named IL16, IL20, IL24, IL32, IL48 and I switch them in property TToolBar.Images. In meanwhile, TImageList was redesigned to work with hi-DPI desktops. > Now

[Lazarus] New Image Lists question

2018-05-23 Thread Vojtěch Čihák via Lazarus
Hi,   I have application where user can choose size of toolbars, i.e. I have several image lists named IL16, IL20, IL24, IL32, IL48 and I switch them in property TToolBar.Images. In meanwhile, TImageList was redesigned to work with hi-DPI desktops. Now, I can load more images to each imagelist,

Re: [Lazarus] IDE multi-caret options wishes

2018-05-22 Thread Vojtěch Čihák via Lazarus
Yes, even on my first PC - Commodore 64 - it was "cursor". Therefore it is stupid that Delphi named that property Cursor: TCursor and it means image of mouse pointer.   V. __ Od: Graeme Geldenhuys via Lazarus

Re: [Lazarus] Bug in form Taborder?

2018-05-05 Thread Vojtěch Čihák via Lazarus
Hi,   this is very probably issue https://bugs.freepascal.org/view.php?id=30010 - resolved in meanwhile. You wrote that you use two versions of Lazarus. Does it happen in the newer 1.8.2 too? I don't know if the fix is there.   V. __

Re: [Lazarus] Runtime error: INCLOCKED

2018-04-29 Thread Vojtěch Čihák via Lazarus
Hi,   I changed line 7:   TElement = record       strr: String;   end;   TList = array[0..1] of TElement;  //HERE   Plist = ^TList;      and demo works. Simply, static and dynamic arrays are not the same. AFAIR, dynamic array is just pointer while static array are data. I guess someone else will

Re: [Lazarus] FormStyle=fsStayOnTop: broken?

2018-04-28 Thread Vojtěch Čihák via Lazarus
Hi, it works here for GTk2, i.e. normal main form + fsStayOnTop form (a tool window). I have Plasma (KDE). Isn't it related to your window manager?   V. __ Od: AlexeyT via Lazarus Komu: Lazarus mailing

Re: [Lazarus] Selection block/brace

2018-04-26 Thread Vojtěch Čihák via Lazarus
t; Komu: lazarus@lists.lazarus-ide.org Datum: 26.04.2018 18:35 Předmět: Re: [Lazarus] Selection block/brace On 25/04/2018 03:01, Vojtěch Čihák via Lazarus wrote: > Hi, >   > I tried two items from Lazarus Edit menu: Select to Brace and Select Code Block. Both seem do nothing. Are they broken?

Re: [Lazarus] Component editors and related

2018-04-25 Thread Vojtěch Čihák via Lazarus
Hi,   ad 1: I never tried two level collection. Are they all published (both collections and their items)?   ad 2: You can do (in your component editor) something like:   var aHook: TPropertyEditorHook; begin   ...   aHook:=nil;       if not GetHook(aHook) then exit;   ...   //add or insert:    

[Lazarus] Selection block/brace

2018-04-24 Thread Vojtěch Čihák via Lazarus
Hi,   I tried two items from Lazarus Edit menu: Select to Brace and Select Code Block. Both seem do nothing. Are they broken? I didn't use them before so I expexted they would do what their name say. I have Lazarus 1.9.0 r57693M FPC 3.1.1 x86_64-linux-qt.   Thanks   V. --

Re: [Lazarus] Color and transparancy selection ?

2018-03-22 Thread Vojtěch Čihák via Lazarus
Hello,   native TColorDialog in Qt4 has slider and edit for Alpha channel but this value is never in the result (i.e. TColorDialog.Color property). TColor uses upper 8 bits for other purposes than alpha.   V. __ Od: Michael Van

[Lazarus] Lazarus projects (wiki)

2018-03-13 Thread Vojtěch Čihák via Lazarus
Hello,   I noticed that wiki pages  http://wiki.freepascal.org/Lazarus_Application_Gallery and  http://wiki.freepascal.org/Projects_using_Lazarus become too comprehensive and therefore obuscated. Especially the second should/can be separated to more pages - Components and Libraries, Multimedia,

Re: [Lazarus] Call context menu in my component

2018-03-10 Thread Vojtěch Čihák via Lazarus
Hi,   DoContextMenu(...) cannot work, this method only manages OnContextPopup event. Perform(LM_CONTEXTMENU, 0, 0) (or SendMessage or PostMessage) works here (Qt). Handle must have assigned PopupMenu and it needs correct parameters, not just (...,0, 0) which shows Popmenu in the top-left screen

Re: [Lazarus] Special Request: Theme entire IDE support

2018-03-10 Thread Vojtěch Čihák via Lazarus
Hi,   you can do it for Qt applications, just run Lazarus (or any Laz. project built as Qt) as:   ./lazarus -stylesheet mydarkstyle.qss   where mydarkstyle.qss must be valid Qt Style Sheet file, see:  http://doc.qt.io/archives/qt-4.8/stylesheet.html#stylesheet   V.

Re: [Lazarus] Floats not streamed always (bug in trunk)

2018-03-06 Thread Vojtěch Čihák via Lazarus
Reported: https://bugs.freepascal.org/view.php?id=33348   It happens with FPC 3.1.1 only, 3.0.4 works fine, so I reported it to FPC mantis.   V.  __ Od: Vojtěch Čihák via Lazarus Komu: Lazarus mailing list <l

[Lazarus] Floats not streamed always (bug in trunk)

2018-03-06 Thread Vojtěch Čihák via Lazarus
Hi,   I found bug in Lazarus 1.9 (Lazarus 1.9.0 r57442M FPC 3.1.1 x86_64-linux-qt). Properties of type Float are not streamed to *.lfm when theirs value =0. It is not problem with for example TFloatSpinEdit where is "default" =0 (default means "value set in constructor" here, since floats cannot

Re: [Lazarus] An expression is returning false, why?

2018-03-04 Thread Vojtěch Čihák via Lazarus
Hi, I just tested. Active Form always returns Focused False. Use property Active instead.   Result := (FControl is TCustomForm) and TCustomForm(FControl).Active;   V. __ Od: Lubos Pintes via Lazarus

Re: [Lazarus] ghost selector in form editor

2018-02-17 Thread Vojtěch Čihák via Lazarus
Hi,   I can simulate this on Qt in several ways: 1) select two components on different tabs of page control, one of them will be ghost 2) some components can be hidden behind other, it is caused by wrong Z-order, for example TSpeedButton behind enlarged non-transparent TLabel or TStaticText.

[Lazarus] WARNING: TResourceCacheItem.IncreaseRefCount 1000 TFontHandleCache

2018-02-16 Thread Vojtěch Čihák via Lazarus
Hi,   don't you know what does this output mean (in Console In/Output, not in Messages): WARNING: TResourceCacheItem.IncreaseRefCount 1000 TFontHandleCache ?   Thanks,   V. -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org

Re: [Lazarus] IDE loose func default param on class completion

2018-02-13 Thread Vojtěch Čihák via Lazarus
00:45 Předmět: Re: [Lazarus] IDE loose func default param on class completion On Tue, 13 Feb 2018 22:26:28 +0100 Vojtěch Čihák via Lazarus <lazarus@lists.lazarus-ide.org> wrote: > I knw it but I always thought it is by design. It should remove default values from implementation, not

Re: [Lazarus] IDE loose func default param on class completion

2018-02-13 Thread Vojtěch Čihák via Lazarus
I knw it but I always thought it is by design.   V. __ Od: AlexeyT via Lazarus Komu: Lazarus mailing list Datum: 13.02.2018 20:22 Předmět: [Lazarus] IDE loose func default

Re: [Lazarus] IDE focused window after app terminates

2018-01-28 Thread Vojtěch Čihák via Lazarus
Hi, my Linux+KDE (Plasma) experience:   I have no docking manager for Lazarus. Source Editor (or Object Inspector or Messages etc.) is focused. I run app. using F9. When app. active, I close it, by click to [X] or by Alt+F4. I can see Source Editor sometimes focused for a fraction of second

[Lazarus] Editor Macros looses key shortcuts

2018-01-15 Thread Vojtěch Čihák via Lazarus
Hi,   it happened me already twice (yesterday and ~month ago) that Editor Macros lost key shortcuts. All macros remains in EditorMacros.xml but without any key shortcut info, i.e. there are no  nodes. No problem, I recovered from backup.   I use Lazarus SVN and I rebuild it quite often, I also

[Lazarus] Redundant assigned(X) and (X is Txxx) in Laz. sources

2018-01-12 Thread Vojtěch Čihák via Lazarus
Hi,   I wrote a small routine to search Lazarus sources and it found about 60 places similar to this (taborderdlg.pas, line 398):   if Assigned(LookupRoot) and (LookupRoot is TWinControl) then begin   Should I make a patch for all occurences?   V. --

Re: [Lazarus] Source | complete code - does nothing.

2018-01-09 Thread Vojtěch Čihák via Lazarus
Hi,   example - you write: i:=5; and hit Ctrl+Shift+X on that line and it will open dialog where you can choose if you want to create "i" as a local or class variable.   V. __ Od: Donald Ziesig via Lazarus

Re: [Lazarus] Extended filter for Code Completion

2018-01-08 Thread Vojtěch Čihák via Lazarus
It can be resized by mouse, by the small handle in bottom-rigth corner.   V. __ Od: AlexeyT via Lazarus Komu: Juha Manninen via Lazarus Datum: 08.01.2018 19:30 Předmět: Re:

[Lazarus] Strip symbols in IDE

2018-01-07 Thread Vojtěch Čihák via Lazarus
Hi,   does the checkbox [X] Strip symbols from executble works well for you? It does nothing here. If I then do: >strip project1 in xterm, it works. I have "strip" installed in /usr/bin. It seems that other options have no efect to it, except -Xg [X] Use external debug file.   V. --

Re: [Lazarus] Package filenames with _package

2018-01-07 Thread Vojtěch Čihák via Lazarus
I noticed: if the main package file has the same name as the lpk than it is not listed in that lpk, right? V. __ Od: Mattias Gaertner via Lazarus Komu: lazarus@lists.lazarus-ide.org Datum: 07.01.2018

Re: [Lazarus] Rebuilding IDE Gtk/Qt

2018-01-05 Thread Vojtěch Čihák via Lazarus
a Lazarus <lazarus@lists.lazarus-ide.org> Komu: lazarus@lists.lazarus-ide.org Datum: 05.01.2018 13:11 Předmět: Re: [Lazarus] Rebuilding IDE Gtk/Qt On Fri, 05 Jan 2018 02:59:56 +0100 Vojtěch Čihák via Lazarus <lazarus@lists.lazarus-ide.org> wrote: > I found the reason but to make a pa

Re: [Lazarus] Rebuilding IDE Gtk/Qt

2018-01-05 Thread Vojtěch Čihák via Lazarus
de.org Datum: 05.01.2018 13:11 Předmět: Re: [Lazarus] Rebuilding IDE Gtk/Qt On Fri, 05 Jan 2018 02:59:56 +0100 Vojtěch Čihák via Lazarus <lazarus@lists.lazarus-ide.org> wrote: > I found the reason but to make a patch is beyond my powers. > When I used the steps described below, I g

Re: [Lazarus] Rebuilding IDE Gtk/Qt

2018-01-04 Thread Vojtěch Čihák via Lazarus
ked at line 4595.It calls TBuildManager.SetBuildTarget and nested function GetEffectiveLCLWidgetType where is line: Result:=FBuildTarget.CompilerOptions.GetEffectiveLCLWidgetTypeIt is probably the reason why combobox in "Configure Build Lazarus" is ignored and is replaced by value from Compiler Options.V.__

Re: [Lazarus] Rebuilding IDE Gtk/Qt

2018-01-02 Thread Vojtěch Čihák via Lazarus
0.4 x86_64-linux-gtk2.   V.   ______________ Od: Vojtěch Čihák via Lazarus Komu: Lazarus mailing list <laza...@lists.lazarus.freepascal.org> Datum: 02.01.2018 16:01 Předmět: [Lazarus] Rebuilding IDE Gtk/Qt Hi,   I sometimes experienced that IDE does not follow the value in combobox in To

[Lazarus] Rebuilding IDE Gtk/Qt

2018-01-02 Thread Vojtěch Čihák via Lazarus
Hi,   I sometimes experienced that IDE does not follow the value in combobox in Tools -> Configure "Build Lazarus". Setting Qt is ignored and IDE rebuilds to GTk. But when I change the value in Project Options -> Additions and Overrides -> LCL Widget Type and then I rebuild IDE, it rebuilds to

Re: [Lazarus] TTrackbar and Wine

2017-12-22 Thread Vojtěch Čihák via Lazarus
I can confirm behavior in Wine. When you change trVertical to trHorizotal - everything OK. But oppositely, trackbar calculates with new width and OLD height and ticks remain horizontal. When you resize it at least 1 pixel, everything is OK. But I'm not able to say if the issue is in Wine or in

[Lazarus] Alternative key mappings and sequences

2017-12-12 Thread Vojtěch Čihák via Lazarus
Hi,   are alternative shortcuts and sequences broken? See screenshot. Ctrl+Alt+Q works but F9 doesn't. If I swap them, F9 works but Ctrl+Alt+Q doesn't.   If I will edit sequence [F9, Ctrl+Alt+Q], Lazarus doesn't wait for the second and run project immediately after F9. The same for [Ctrl+Alt+Q,

Re: [Lazarus] Highlight matching brackets

2017-12-11 Thread Vojtěch Čihák via Lazarus
I can confirm. It is also broken for [] and {}. I observed that it depends on previous character:   ControlStyle:=ControlStyle+[csNoDesignVisible];  //works   ControlStyle:=ControlStyle+ [csNoDesignVisible];  //does NOT work   i.e. when previous char is "red" +-*/@() etc. it works, while

Re: [Lazarus] Note to new high-DPI icons

2017-12-09 Thread Vojtěch Čihák via Lazarus
Datum: 09.12.2017 22:24 Předmět: Re: [Lazarus] Note to new high-DPI icons Am 09.12.2017 um 16:18 schrieb Vojtěch Čihák via Lazarus: > Hi, >   > I tried to run Lazarus with dark theme and icons for TLabel and TStaticText are not visible. I propose to use that blue color used with the old icons i

[Lazarus] Note to new high-DPI icons

2017-12-09 Thread Vojtěch Čihák via Lazarus
Hi,   I tried to run Lazarus with dark theme and icons for TLabel and TStaticText are not visible. I propose to use that blue color used with the old icons instead of black.   V.   PS: I have no direct contact to author of icons, FTurtle, so I sent it to Lazarus ML.   --

Re: [Lazarus] Deleting items in OI

2017-11-29 Thread Vojtěch Čihák via Lazarus
rg> Datum: 28.11.2017 13:10 Předmět: Re: [Lazarus] Deleting items in OI On Sat, Nov 25, 2017 at 8:21 PM, Vojtěch Čihák via Lazarus <lazarus@lists.lazarus-ide.org> wrote: > I just have some more info. Everything was OK to revision 52209. > OI was completly broken between 52210 and

[Lazarus] Fonts for Lazarus

2017-11-26 Thread Vojtěch Čihák via Lazarus
Hi, I started thread about fonts on forum. There's info about new font from IBM (IBM Plex Mono) and list of ten fonts good-looking in Source Editor. See: http://forum.lazarus.freepascal.org/index.php/topic,39020.0.html   V.  -- ___ Lazarus mailing

Re: [Lazarus] Deleting items in OI

2017-10-26 Thread Vojtěch Čihák via Lazarus
. __ Od: Juha Manninen via Lazarus <lazarus@lists.lazarus-ide.org> Komu: Lazarus mailing list <lazarus@lists.lazarus-ide.org> Datum: 25.10.2017 20:31 Předmět: Re: [Lazarus] Deleting items in OI On Wed, Oct 25, 2017 at 8:30 PM, Vojtěch Čihák via Laza

Re: [Lazarus] Deleting items in OI

2017-10-25 Thread Vojtěch Čihák via Lazarus
. __ Od: Juha Manninen via Lazarus <lazarus@lists.lazarus-ide.org> Komu: Lazarus mailing list <lazarus@lists.lazarus-ide.org> Datum: 25.10.2017 20:31 Předmět: Re: [Lazarus] Deleting items in OI On Wed, Oct 25, 2017 at 8:30 PM, Vojtěch Čihák via Lazarus <lazarus@lists.lazarus-ide.org&g

[Lazarus] Deleting items in OI

2017-10-25 Thread Vojtěch Čihák via Lazarus
Hi,   I got this code for design time editing (note the line+comment ***  aHook.SelectOnlyThis(aECTC.Tabs);  { force the OI to refresh } ***). That line should refresh OI so the deleted item (CollectionItem) is removed (node in OI). It worked in recent Lazarus versions, but it doesn't work in

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

2017-10-20 Thread Vojtěch Čihák via Lazarus
Tools -> Options... -> (Nodes) Editor / Display / Markup and Matches. There's checkbox Outline (global). It took me a while too :-).   V. __ Od: Donald Ziesig via Lazarus Komu:

Re: [Lazarus] Code outline feature of the IDE

2017-10-20 Thread Vojtěch Čihák via Lazarus
Hi,   I even didn't know this feature, but... so much colors, I almost collapsed :-)   Are there plans to make it (more) configurable? Keep keywords black and only lines colorful, or paint lines only when code-block exceeds vertical screen size.   Thanks.

Re: [Lazarus] Rendering Issue Emoji for HTML List Items

2017-10-16 Thread Vojtěch Čihák via Lazarus
Hi,   it seems OK on Qt and GTk2 at r.56055.   V. __ Od: Martok via Lazarus Komu: laza...@lists.lazarus.freepascal.org Datum: 16.10.2017 15:43 Předmět: [Lazarus] Rendering Issue Emoji for HTML List Items

  1   2   >