Re: [Lazarus] CapsLock and KeyDown

2017-02-08 Thread Vojtěch Čihák via Lazarus
Hi, so far I only found this commented line in LCLType:   // $E9-$F5 OEM specific   V.   __ Od: Bart via Lazarus Komu: Lazarus mailing list Datum: 09.02.2017 00:01 Předmět:

Re: [Lazarus] "Procedure list" level depth dependend?

2017-02-22 Thread Vojtěch Čihák via Lazarus
. __ Od: Jürgen Hestermann via Lazarus Komu: Lazarus mailing list <lazarus@lists.lazarus-ide.org> Datum: 22.02.2017 12:49 Předmět: Re: [Lazarus] "Procedure list" level depth dependend? Am 2017-02-22 um 02:32 schrieb Vojtěch Č

Re: [Lazarus] Does anybody know a TStrinGrid-Component capable of sorting Date. Time, Float ...

2017-02-13 Thread Vojtěch Čihák via Lazarus
Hi, IMO such sorting is not very handy. TStringGrid is for strings. Consider what you do: 1) you have some data structure - dates, floats, integers 2) you fill stringgrid with the data Now you need to sort. You have three possibilities: 1) Sort data structure and fill string grid again - better

[Lazarus] Semicolon checking

2017-01-15 Thread Vojtěch Čihák via Lazarus
Hello, has Lazarus (CodeTools) or FPC some checking for empty commands? I accidentally did this stupid mistake:   if ... then   begin      ...   end else;   begin     ...     exit;   end;   Note the semicolon behind the "else". Semicolon as an empty command is sometimes useful (temporary

Re: [Lazarus] LCL High-DPI request for help adding images

2017-02-26 Thread Vojtěch Čihák via Lazarus
images On 02/26/2017 10:33 AM, Vojtěch Čihák via Lazarus wrote:Wouldn't be better (or would it be possible) to have *.svg icons in resources and generate *.png icons on start of IDE? Now you add 150% and 200%, later will come 250, 300% as 4k, 5k and 8k monitors come to market.   I agree.  I just

Re: [Lazarus] LCL High-DPI request for help adding images

2017-02-26 Thread Vojtěch Čihák via Lazarus
Wouldn't be better (or would it be possible) to have *.svg icons in resources and generate *.png icons on start of IDE? Now you add 150% and 200%, later will come 250, 300% as 4k, 5k and 8k monitors come to market.   V. __ Od: Ondrej

Re: [Lazarus] LCL High-DPI request for help adding images

2017-02-26 Thread Vojtěch Čihák via Lazarus
s.lazarus-ide.org> Datum: 26.02.2017 19:28 Předmět: Re: [Lazarus] LCL High-DPI request for help adding images Am 26.02.2017 18:01 schrieb "Vojtěch Čihák via Lazarus" <lazarus@lists.lazarus-ide.org <lazarus@lists.lazarus-ide.org>>: > > I use Inkscape for icons. I

Re: [Lazarus] TColor and Alpha channel support

2016-09-26 Thread Vojtěch Čihák via Lazarus
Hi,   on one hand,   TColor = TGraphicsColor and TGraphicsColor = -$7FFF-1..$7FFF;   on the other hand, there are defined colors like   clNone    = TColor($1FFF); clDefault = TColor($2000);   So I'm also curious if its possible *somehow*.   Vojtěch

Re: [Lazarus] Suggestion for Object Inspector

2016-11-01 Thread Vojtěch Čihák via Lazarus
It is impossible since methods are not part of RTTI. Maybe Code Explerer would be better place for it.   V. __ Od: "Bob B. via Lazarus" Komu: Lazarus Mailing List Datum:

Re: [Lazarus] Suggestion for Object Inspector

2016-11-01 Thread Vojtěch Čihák via Lazarus
I guess we are talking about virtual (abstrat) methods which can be overridden.   V. __ Od: Vojtěch Čihák via Lazarus Komu: Bob B. <parkingspac...@yahoo.com>, Datum: 02.11.2016 01:51 Předmět: Re: [Lazarus] Suggestion for

Re: [Lazarus] TSplitter refuses to move to the left with mouse (but moves via code)

2017-03-22 Thread Vojtěch Čihák via Lazarus
Hi,   It is caused by property TSplitter.MinSize. I just tested, when I move by mouse, I'm stopped on this value. But with code, I can go below this limit. You can modify the code:   if Splitter1.Left>Splitter1.MinSize then   ... (and set MinSize to 50 in Object Inspector).   so the limit will

Re: [Lazarus] TCustomControl.Caption setter needs Invalidate

2017-07-29 Thread Vojtěch Čihák via Lazarus
Hi,   you have to override one of these methods:   procedure RealSetText; override;  //this is done in TSpeedBtn or procedure TextChanged; override;  //this is what I do in some components of ECControl   and call Invalidate; (and inherited;) there.   V.

Re: [Lazarus] visual appearance of ReadOnly state widgets

2017-05-10 Thread Vojtěch Čihák via Lazarus
Hi,   I just did a little test in Qt Designer. There seems to be no difference in QLineEdit (TEdit). There is sometimes difference in editable and non-editable QComboBox (depends on style - QtCurve, Oxygen, Breeze are different, Windows style is identical).   OTOH, your fpGUI read-only controls

Re: [Lazarus] Measuring text width in a TEdit

2017-05-30 Thread Vojtěch Čihák via Lazarus
Hi,   maybe you can create some temporary canvas, assign TEdit.Font to TCanvas.Font, do the measurement and free that canvas.   V. __ Od: Torsten Bonde Christiansen via Lazarus Komu: Lazarus mailing list

Re: [Lazarus] TFont.Assign not complete

2017-05-30 Thread Vojtěch Čihák via Lazarus
Hi,   IMO it should be OK. PixelsPerInchs has probably meaning when you have two displays with different DPI. Therefore copying the value PixelsPerInchs is wrong because method Assign() cannot know where the font will be displayed (on the same display or the second display with different DPI).

Re: [Lazarus] FPReport file names

2017-09-13 Thread Vojtěch Čihák via Lazarus
Hi,   in fact, it is called PascalCase, see https://en.wikipedia.org/wiki/PascalCase   V. __ Od: Graeme Geldenhuys via Lazarus Komu: lazarus@lists.lazarus-ide.org Datum: 13.09.2017 20:19 Předmět: Re:

Re: [Lazarus] Settings in the options dialog are not focusable via keyboard

2017-10-06 Thread Vojtěch Čihák via Lazarus
Maybe frames (TFrame), because I use similar dialog (treeview + buttons) but I use TPageControl for content and tab key works well. V. __ Od: Juha Manninen via Lazarus Komu: Lazarus mailing list

Re: [Lazarus] Settings in the options dialog are not focusable via keyboard

2017-10-06 Thread Vojtěch Čihák via Lazarus
I can confirm with Lazarus 1.9.0 r55934 FPC 3.0.2 x86_64-linux-qt. V. __ Od: Lubos Pintes via Lazarus Komu: laza...@lists.lazarus.freepascal.org Datum: 06.10.2017 22:03 Předmět: [Lazarus] Settings in the

Re: [Lazarus] Mousewheel events on TCustomControl

2017-10-03 Thread Vojtěch Čihák via Lazarus
@ You wrote component ECScheme ...   No, I wrote it :-) __ Od: Vojtěch Čihák via Lazarus Komu: Lazarus mailing list <lazarus@lists.lazarus-ide.org> Datum: 03.10.2017 19:32 Předmět: Re: [Lazarus] Mousewheel events on TCustomContro

[Lazarus] Hi-DPI for own components

2017-10-03 Thread Vojtěch Čihák via Lazarus
Hi, if I want hi-DPI for my own components, it is enough to draw two additional icons with suffix _150 and _200 and bundle it to package?   Thanks, V. -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org

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

Re: [Lazarus] UTF8Tools problem

2017-09-30 Thread Vojtěch Čihák via Lazarus
ide.org> Komu: Lazarus mailing list <lazarus@lists.lazarus-ide.org> Datum: 30.09.2017 09:27 Předmět: Re: [Lazarus] UTF8Tools problem On Sat, Sep 30, 2017 at 3:59 AM, Vojtěch Čihák via Lazarus <lazarus@lists.lazarus-ide.org> wrote: . Juha -- ___

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

2017-09-30 Thread Vojtěch Čihák via Lazarus
Hi,   you have unusual getter:   function TATTabs.GetItems: TStrings; var   D: TATTabData;   i: integer; begin   Result:= TStringList.Create;   for i:= 0 to TabCount-1 do   begin     D:= GetTabData(i);     if Assigned(D) then       Result.Add(D.TabCaption)     else       Result.Add('?');   end;

[Lazarus] UTF8Tools problem

2017-09-29 Thread Vojtěch Čihák via Lazarus
Hi,   I have this code for improved autocomplete of TCombo:   var i, aCharMatch, aIndex: Integer;     aCmbText, aItemStr: TUTF8Scanner;     aStr: string; begin   with TStringGrid(TComboBox(Sender).Parent) do     if TComboBox(Sender).ItemIndex>=0       then Cells[Col,

Re: [Lazarus] Why is OnShow not executed?

2017-09-28 Thread Vojtěch Čihák via Lazarus
Hi, just tested, it is same in Delphi7. Refresh data manually in FormShow is one of correct ways.   V. __ Od: frans via Lazarus Komu: lazarus@lists.lazarus-ide.org Datum: 28.09.2017 12:20 Předmět:

Re: [Lazarus] Mousewheel events on TCustomControl

2017-10-03 Thread Vojtěch Čihák via Lazarus
Hi,   your scrollbars are part of control? I mean, are they created via   ShowScrollBar(Handle, SB_HORZ, True);   ShowScrollBar(Handle, SB_VERT, True);  ?   You wrote component ECScheme, it is part of ECControls and I didn't use DoMouseWheelxxx methods at all. I use   procedure WMHScroll(var

[Lazarus] MemTrain

2017-08-25 Thread Vojtěch Čihák via Lazarus
Hi,   for those who don't visit forum: I announced a very simple game for training memory: http://forum.lazarus.freepascal.org/index.php/topic,38004.0.html   Or directly on SF: https://sourceforge.net/projects/memtrain/files/   Currently sources are available only.   Enjoy, V. (Blaazen)  --

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.

[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-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

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

[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.   --

[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] 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] 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] 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

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] 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

[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] 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
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

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
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] 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] 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] 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] 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] 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] 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-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] 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

[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] 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:

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

[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] 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

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 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] 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

[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

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

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] 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

[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] 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

[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] 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] 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] 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] 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.

[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

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] 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:    

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] 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

[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] 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] 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] 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] 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/

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] 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] 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] 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

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

  1   2   >