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

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

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

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;

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

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

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

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:

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

<    1   2