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

2017-03-20 Thread Jürgen Hestermann via Lazarus
I have a TSplitter that separates elements on the left from those on the right. I use code to move this splitter to the left or right in an KeyDown routine. Example: --- case Key of VK_LEFT : begin if Shift=[ssS

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

2017-03-23 Thread Jürgen Hestermann via Lazarus
Am 2017-03-22 um 22:35 schrieb Vojtěch Čihák via Lazarus: > 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

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

2017-03-23 Thread Jürgen Hestermann via Lazarus
Am 2017-03-23 um 12:06 schrieb Ondrej Pokorny via Lazarus: > On 23.03.2017 10:34, Jürgen Hestermann via Lazarus wrote: >> TSplitter.MinSize is the (min) size of the splitter itself. >> It has nothing to do with the location of the splitter (just its size). > Yo

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

2017-03-27 Thread Jürgen Hestermann via Lazarus
Am 2017-03-20 um 18:04 schrieb Jürgen Hestermann via Lazarus: > I have a TSplitter that separates elements on the left from those on the right. > > But when I try to move the splitter with the mouse, > only moving to the right works okay. > Moving to the left only moves the s

[Lazarus] Opening file in editor window if it's loaded in another editor window

2017-04-11 Thread Jürgen Hestermann via Lazarus
I have 2 editor windows ("Source Editor" and ""Source Editor (2)" and have loaded "Unit1.pas" in both of these windows. After I have now (inadvertently) closed "Unit1.pas" in "Source Editor" I cannot load it again with "File Open". It just happens nothing. A known bug? -- ___

Re: [Lazarus] Opening file in editor window if it's loaded in another editor window

2017-04-11 Thread Jürgen Hestermann via Lazarus
Am 2017-04-11 um 18:18 schrieb Mattias Gaertner via Lazarus: > On Tue, 11 Apr 2017 17:39:13 +0200 > Jürgen Hestermann via Lazarus wrote: >> I have 2 editor windows ("Source Editor" and ""Source Editor (2)" >> and have loaded "Unit1.pa

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-03 Thread Jürgen Hestermann via Lazarus
Am 2017-05-03 um 11:34 schrieb Graeme Geldenhuys via Lazarus: > I don't know why anybody would still want to run the standard Windows > console - it is 20 years behind everybody else. The reason: It is available on every Windows machine. The alternatives need to be installed first so scripts desi

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-05 Thread Jürgen Hestermann via Lazarus
Am 2017-05-05 um 12:16 schrieb Graeme Geldenhuys via Lazarus: > In the end it’s about supporting Unicode. Does it really matter > what internal encoding it is to achieve the “Unicode support” > goal? From a performance perspective it may be unwanted to convert string encodings back and forth all

Re: [Lazarus] Teaching Pascal at College

2016-10-14 Thread Jürgen Hestermann via Lazarus
Am 2016-10-14 um 15:52 schrieb Michael Schnell via Lazarus: > On 14.10.2016 13:01, Graeme Geldenhuys via Lazarus wrote: >> They will be thrown into the deep end and sink. > I don't think so. You can learn to drive a car even if you don't know how the engine is constructed. > At first you can just

Re: [Lazarus] Windows and german Umlauts: why do i have to PWideChar(UTF8Decode(String)) and not UTF8ToAnsi(String)

2016-10-18 Thread Jürgen Hestermann via Lazarus
Am 2016-10-18 um 11:31 schrieb Mattias Gaertner via Lazarus: > Did you start the csv file with the UTF8 BOM, so that Excel knows that > the file is UTF-8 encoded? > UTF8BOM = #$EF#$BB#$BF In https://en.wikipedia.org/wiki/Comma-separated_values it says: "Also, many regional versions of Excel wi

Re: [Lazarus] Teaching Pascal at College

2016-10-18 Thread Jürgen Hestermann via Lazarus
Am 2016-10-18 um 12:53 schrieb Mehmet Erol Sanliturk via Lazarus: > Order of teaching is not so critical : As you say , write a GUI program for events : Say : "Now it is necessary to define what will be done for the events ? ... Its way is the following : Write your program parts in that way ...

Re: [Lazarus] Teaching Pascal at College

2016-10-18 Thread Jürgen Hestermann via Lazarus
Am 2016-10-18 um 16:47 schrieb Michael Schnell via Lazarus: > If you start with complex stuff that does not yield immediate success (i.e. a working program that does something that might be useful) The students will loose interest and run away, unless they are nerds like ourselves. Yes, therefo

Re: [Lazarus] Teaching Pascal at College

2016-10-21 Thread Jürgen Hestermann via Lazarus
Am 2016-10-21 um 09:20 schrieb Lars via Lazarus: > The issue with console mode programs is students see utterly no use for them. Why should they not? A computer is a information processing machine and GUI is not necessary to process information, it's just a cosmetic thing. The interaction of a pr

Re: [Lazarus] Teaching Pascal at College

2016-10-21 Thread Jürgen Hestermann via Lazarus
Am 2016-10-21 um 10:08 schrieb Lars via Lazarus: > Sometimes knowing the internals and details can be a disadvantage because > instead of thinking about the abstract program you are thinking about cpu > cycles, bit popping, bit twiddling, low level API calls. How do you think about "the abstract

Re: [Lazarus] *** GMX Spamverdacht *** Re: Teaching Pascal at College

2016-10-21 Thread Jürgen Hestermann via Lazarus
Am 2016-10-21 um 10:33 schrieb Lars via Lazarus: > How do you know some clever student wouldn't end up using recursion > without any loop involved? How can a student think about loops and recursion at all if he does not get the information that they exist (in the specific programming language)? S

Re: [Lazarus] Teaching Pascal at College

2016-10-21 Thread Jürgen Hestermann via Lazarus
Am 2016-10-21 um 11:28 schrieb Lars via Lazarus: > Hmmm.. I'm not so sure learning about the internals of the CPU is so good. > IMO that is computer science, whereas programming is computing science. > I was interested in how computers physically worked, before I became a > programmer. One of the

Re: [Lazarus] Teaching Pascal at College

2016-10-21 Thread Jürgen Hestermann via Lazarus
Am 2016-10-21 um 11:35 schrieb Lars via Lazarus: > There are two sides to this story, I'm afraid. I'm a fan of the console > program teaching method myself but the issue is: console mode programs are > irrelevant and useless. > Today, MS DOS doesn't exist any more. Even when > ms dos existed, cons

Re: [Lazarus] How to use strings properly with fixes_1_6 and FPC 3.0.0?

2016-10-21 Thread Jürgen Hestermann via Lazarus
Am 2016-10-21 um 12:05 schrieb Gabor Boros via Lazarus: > 2016. 10. 21. 10:25 keltezéssel, Juha Manninen via Lazarus írta: >> * Please read the wiki page ... > I read, I read but if contains buggy example... ;-) Yes, this can be very frustrating... Documenation is one of the major drawbacks of Fr

Re: [Lazarus] How to use strings properly with fixes_1_6 and FPC 3.0.0?

2016-10-21 Thread Jürgen Hestermann via Lazarus
Am 2016-10-21 um 14:59 schrieb Juha Manninen via Lazarus: > On Fri, Oct 21, 2016 at 3:24 PM, Gabor Boros via Lazarus > wrote: >> Why the below example better than a for loop with UTF8Length and UTF8Copy >> for go through the string? > Because it is MUCH faster. It scales linearly, O(n). > Calling

Re: [Lazarus] How to use strings properly with fixes_1_6 and FPC 3.0.0?

2016-10-21 Thread Jürgen Hestermann via Lazarus
Am 2016-10-21 um 13:23 schrieb Gabor Boros via Lazarus: > I will know if somebody describe what a difference between á and an á characters in two points of my program. The problem is, that Unicode has a code point for "á" but also allows to compose this characters by having an "a" and an "´" pri

Re: [Lazarus] How to use strings properly with fixes_1_6 and FPC 3.0.0?

2016-10-22 Thread Jürgen Hestermann via Lazarus
Am 2016-10-22 um 10:53 schrieb Mattias Gaertner via Lazarus: > Maybe you mean ligatures? Many languages have them, even German: > https://en.wikipedia.org/wiki/Typographic_ligature I thought that ligatures are just a matter of the font but not the unicode representation? When I write a text which

Re: [Lazarus] How to use strings properly with fixes_1_6 and FPC 3.0.0?

2016-10-23 Thread Jürgen Hestermann via Lazarus
Am 2016-10-22 um 22:38 schrieb Mattias Gaertner via Lazarus: > Languages don't care about programmers. True. But Unicode should have cared. It was made for its use on computers. Pressing each and every language peculiarity into Unicode was a mistake and made Unicode so hard to use. -- __

Re: [Lazarus] Teaching Pascal at College

2016-10-24 Thread Jürgen Hestermann via Lazarus
Am 2016-10-24 um 11:57 schrieb Michael Schnell via Lazarus: > On 21.10.2016 09:51, Lars via Lazarus wrote: >> The concept of callbacks is very similar to events. > The difference is that with a callback you usually know both sides and hence how exactly it is called, > while with an event (especia

Re: [Lazarus] Teaching Pascal at College

2016-10-24 Thread Jürgen Hestermann via Lazarus
Am 2016-10-24 um 12:13 schrieb Michael Schnell via Lazarus: > On 18.10.2016 17:16, Jürgen Hestermann via Lazarus wrote: >> Yes, therefore start with simple procedural (console) >> programs that let them have immediate success with >> all the elementary things that

Re: [Lazarus] Teaching Pascal at College

2016-10-24 Thread Jürgen Hestermann via Lazarus
Am 2016-10-24 um 12:20 schrieb Michael Schnell via Lazarus: > On 21.10.2016 11:09, Jürgen Hestermann via Lazarus wrote: >> What is the use of a program? Entertainment? > Nowadays in 90% of the usage exactly this. > Maybe other usage cases are more "important", but stil

[Lazarus] Exception in OnResize event handler

2016-11-06 Thread Jürgen Hestermann via Lazarus
In one of my Windows programs I use a splitter to separate two VirtualTreeView components on a Form. The relation of the heights of these two VirtualTreeView components should be constant even if the height of the Form changed. To achieve this, the two VirtualTreeView components are anchored to

Re: [Lazarus] Exception in OnResize event handler

2016-11-06 Thread Jürgen Hestermann via Lazarus
Am 2016-11-06 um 12:45 schrieb Mattias Gaertner via Lazarus: > For example a TButton in a TGroupBox in a TForm. > When the theme changes, the GroupBox client area may change, > and the form's client area not. > Then form's OnResize is not triggered. > You need to set the GroupBox.OnResize event.

Re: [Lazarus] Exception in OnResize event handler

2016-11-06 Thread Jürgen Hestermann via Lazarus
Am 2016-11-06 um 16:08 schrieb Ondrej Pokorny via Lazarus: > On 06.11.2016 13:03, Jürgen Hestermann via Lazarus wrote: >> The wording of the help is misleading. >> It says: >> "Common mistake: Keep in mind that ClientWidth and ClientHeight can change even when Wi

Re: [Lazarus] Exception in OnResize event handler

2016-11-06 Thread Jürgen Hestermann via Lazarus
Am 2016-11-06 um 16:39 schrieb Ondrej Pokorny via Lazarus: >> The sentence >> "Common mistake: Keep in mind that ClientWidth and ClientHeight can change even when Width, Height stays the same" >> makes me think that the event is not triggered when *Client*Width/-Height changes >> but only when W

[Lazarus] Fwd: Re: Exception in OnResize event handler

2016-11-07 Thread Jürgen Hestermann via Lazarus
I did a reply but then saw that this email was not sent via Lazarus mailing list but directly from zeljko to me. I therefore forward it again to the list. Weitergeleitete Nachricht Betreff:Re: [Lazarus] Exception in OnResize event handler Datum: Mon, 7 Nov 2016 16:07:2

[Lazarus] Anchoring fails on Windows 10

2016-11-08 Thread Jürgen Hestermann via Lazarus
I have a simple form with 2 components, a TVirtualDrawTree and a TProgressBar. The TProgressBar is anchored to the bottom of the form and the bottom of the TVirtualDrawTree is anchored to the top of the TProgressBar. This works okay on Windows 7 and 8.1 but not on Windows 10! When I resize the f

Re: [Lazarus] Anchoring fails on Windows 10

2016-11-08 Thread Jürgen Hestermann via Lazarus
Am 2016-11-08 um 16:47 schrieb Mattias Gaertner via Lazarus: On Tue, 8 Nov 2016 14:59:45 +0100 Jürgen Hestermann via Lazarus wrote: I have a simple form with 2 components, a TVirtualDrawTree and a TProgressBar. The TProgressBar is anchored to the bottom of the form and the bottom of the

Re: [Lazarus] Anchoring fails on Windows 10

2016-11-09 Thread Jürgen Hestermann via Lazarus
Am 2016-11-08 um 23:13 schrieb Mattias Gaertner via Lazarus: > On Tue, 8 Nov 2016 18:45:56 +0100 > Jürgen Hestermann via Lazarus wrote: >>>> Anybody else having such issues on Windows 10? >>> I tested with a TTreeView and a TProgressBar and it works here with Laz >

[Lazarus] TEdit initial display width

2016-11-20 Thread Jürgen Hestermann via Lazarus
I have a form Form1 with an TEdit component Edit1 on it. Edit1 is anchored to Form1 on the left and on the right. I create the Form and set its width on the fly with the following code: Form1 := TForm1.Create(Nil); with Form

[Lazarus] IDE, indentation after inserting from clipboard

2016-11-28 Thread Jürgen Hestermann via Lazarus
In the editor of the IDE, when I put the cursor somewhere and paste multiple lines from the clipboard then only the first line is indented (starts where the cursor is) but all following lines are not indented (start from column 0). For example, if I have this code snippet in the clipboard: case

Re: [Lazarus] IDE, indentation after inserting from clipboard

2016-11-28 Thread Jürgen Hestermann via Lazarus
Am 2016-11-28 um 14:50 schrieb Mattias Gaertner via Lazarus: On Mon, 28 Nov 2016 13:38:11 +0100 Jürgen Hestermann via Lazarus wrote: In the editor of the IDE, when I put the cursor somewhere and paste multiple lines from the clipboard then only the first line is indented (starts where the

Re: [Lazarus] In search of a component for holding a table of strings

2017-01-09 Thread Jürgen Hestermann via Lazarus
Am 2017-01-09 um 16:28 schrieb Werner Pamler via Lazarus: Am 05.01.2017 um 16:35 schrieb Bart via Lazarus: filling a 1000x1000 TStringTable just cost me 76 ms. A 5000x5000 table however cost me 1248 ms. Amazing. I tried the AVLTree used by fpspreadsheet and it needs 0.37 sec for 1000x1000 and

Re: [Lazarus] In search of a component for holding a table of strings

2017-01-10 Thread Jürgen Hestermann via Lazarus
Am 2017-01-10 um 11:06 schrieb Graeme Geldenhuys via Lazarus: > Now if any developers implements an application that actually displays > that amount of data to the end-user without filtering, I'll be first in > line to knock them over the head. :-P I think this is easy with VirtualTreeView as it

Re: [Lazarus] In search of a component for holding a table of strings

2017-01-10 Thread Jürgen Hestermann via Lazarus
Am 2017-01-10 um 12:24 schrieb Michael Schnell via Lazarus: > On 09.01.2017 23:28, Werner Pamler via Lazarus wrote: > What about a two dimensional array of integers pointing to a one dimensional array of strings, and doing some garbage collection cells are set to empty strings ? (Maybe even iden

Re: [Lazarus] In search of a component for holding a table of strings

2017-01-10 Thread Jürgen Hestermann via Lazarus
Am 2017-01-10 um 12:03 schrieb Graeme Geldenhuys via Lazarus: > My point was that NO application should display so much data to a > end-user, as it is simply too much. I disagree. I have written an (XTree-like) file manager that can log all directories and files into memory. Then there is a func

Re: [Lazarus] In search of a component for holding a table of strings

2017-01-10 Thread Jürgen Hestermann via Lazarus
Am 2017-01-10 um 13:35 schrieb Graeme Geldenhuys via Lazarus: >> I can also apply some more sophisticated functions like attribute change, delete, rename, etc. >> where I would not like to be resticted on the number of files in any way. > You don't need to see those items to apply those attribute

[Lazarus] "Procedure list" level depth dependend?

2017-02-14 Thread Jürgen Hestermann via Lazarus
In my program the "Procedure List" function (Ctrl+G) does not list functions that are subfunctions of other functions. Is there a restriction to show only functions of level depth 1? If yes, why? I did not found any options influencing this. -- ___ Laza

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

2017-02-22 Thread Jürgen Hestermann via Lazarus
Am 2017-02-22 um 02:32 schrieb Vojtěch Čihák via Lazarus: > I tested with Lazarus 1.7 r54239M FPC 3.0.2 x86_64-linux-qt and nested functions and procedures are listed well (I tested depth 3). I am using the last official release of Lazarus (1.6.2) on Windows 8.1. It does not show deeper nested f

Re: [Lazarus] Lazarus Release 1.6.4

2017-03-01 Thread Jürgen Hestermann via Lazarus
Am 2017-03-01 um 14:05 schrieb Mattias Gaertner via Lazarus: The Lazarus team is glad to announce the release of Lazarus 1.6.4. This is a bugfix release. I just downloaded this new version for Windows 32 and tried to install packages (LCLextension 0.6 and VirtualTreeView 5.5.3) but always get

Re: [Lazarus] Lazarus Release 1.6.4

2017-03-02 Thread Jürgen Hestermann via Lazarus
Am 2017-03-02 um 12:59 schrieb Luiz Americo Pereira Camara via Lazarus: 2017-03-01 19:16 GMT-03:00 Martok via Lazarus mailto:lazarus@lists.lazarus-ide.org>>: > The conditional should be {$if FPC_FULLVERSION >= 30001} instead of {$if > FPC_FULLVERSION >= 30100} because the change was b