Re: [Lazarus] Nice Lazarus ScrabbleControl, also a Gtk2 Bug

2019-08-09 Thread Graeme Geldenhuys via lazarus
On 09/08/2019 1:50 pm, Anthony Walter via lazarus wrote: > but perhaps someday someone > might want to remake a new non Delphi compatible library from scratch for > FPC and carry forward with this idea. Such libraries already exist. eg: fpGUI Toolkit and MSEide+MSEgui. Feel free to experiment with

Re: [Lazarus] Nice Lazarus ScrabbleControl, also a Gtk2 Bug

2019-08-09 Thread Graeme Geldenhuys via lazarus
On 09/08/2019 8:40 am, Anthony Walter via lazarus wrote: > Here is a brief video demonstration: I know nothing about Scrabble, but as a seasoned visual component developer I can see a lot of effort went into that. Well done! Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit usin

Re: [Lazarus] It is a beautiful day...

2019-08-11 Thread Graeme Geldenhuys via lazarus
On 11/08/2019 10:56 am, Ondrej Pokorny via lazarus wrote: > I found out that the XML format is unusual (wrong). Fully agree. That is so INI-ish, and really not needed in XML or JSON formats. > I ask because I wanted to update the file format to the new Lazarus XML > format (without the indexes a

Re: [Lazarus] getlazarus.org search request

2019-08-12 Thread Graeme Geldenhuys via lazarus
On 12/08/2019 9:33 am, Anthony Walter via lazarus wrote: > public IEnumerable SearchItems { get; set; } I don't know C# at all, but am curious regarding this. What does that "get" and "set" do? It that a shorthand syntax for implementing getters and setters of a field variable? Regards

Re: [Lazarus] Canvas.Rectangle question

2019-08-16 Thread Graeme Geldenhuys via lazarus
On 16/08/2019 4:20 pm, Bo Berglund via lazarus wrote: > Say the rectangle is (10,4, 30,14) and the Pen.Wdth is set to 2, is > the resulting shape 20 x 10 or 24 x 14 in size? This is why fpGUI uses (x, y, width, height) instead of (x1, y1, x2, y2), because the latter is just too confusing. Anyway,

Re: [Lazarus] Canvas.Rectangle question

2019-08-16 Thread Graeme Geldenhuys via lazarus
On 16/08/2019 8:01 pm, Bo Berglund via lazarus wrote: > Seems like if one does not draw the border at all (pen.width = 0) the > resulting rectangle will be painted within a pixel correctly placed > and sized. If I recall correctly, both Win32 and XLib will render a line with the thinnest possible

Re: [Lazarus] Best examples of cross platform visual file or folder search application?

2019-09-12 Thread Graeme Geldenhuys via lazarus
On 22/08/2019 3:20 am, Anthony Walter via lazarus wrote: > Can anyone tell me if there are any popular minimal programs which allow > users to search for files or folders on their computer using wildcard I can think of a few, though the SearchRec is not hard to use at all, so is very easy to knock

Re: [Lazarus] How to connect to MariaDB/mySql database from fpc/Lazarus?

2019-09-13 Thread Graeme Geldenhuys via lazarus
On 26/08/2019 8:53 pm, Bo Berglund via lazarus wrote: > I am confused about the SQLDB component tab in the IDE since it lists > many connection components for MySql (7 in fact). Which one do I use? If you want to hide all complexity of database components, maybe take a look at tiOPF. It abstracts

Re: [Lazarus] How to connect to MariaDB/mySql database from fpc/Lazarus?

2019-09-13 Thread Graeme Geldenhuys via lazarus
On 26/08/2019 10:39 pm, Michael Van Canneyt via lazarus wrote: > MariaDB/MySQLDB are the probably the worst choices you can make. > Postgres, Firebird, SQLIte: all better choices, depending on your use case. +1000 Regards, Graeme -- ___ lazarus maili

Re: [Lazarus] How to connect to MariaDB/mySql database from fpc/Lazarus?

2019-09-13 Thread Graeme Geldenhuys via lazarus
On 27/08/2019 3:22 pm, AB via lazarus wrote: > There is nothing wrong with using mysql or mariadb for websites, it > is not an accident that they are popular. I beg to differ - it is terrible! https://forum.lazarus.freepascal.org/index.php/topic,20826.0.html Regards, Graeme -- fpGUI Toolkit

Re: [Lazarus] Install Lazarus on Mac OSX Catalina

2019-10-12 Thread Graeme Geldenhuys via lazarus
On 12/10/2019 7:05 pm, Anthony Tekatch via lazarus wrote: > Any advice on getting Lazarus to work on > a Mac now? Probably not helpful now, but don't ever just upgrade your OS to a new major version without doing some research first. Catalina breaks a lot of things! Plus the one major thing is tha

Re: [Lazarus] Install Lazarus on Mac OSX Catalina

2019-10-12 Thread Graeme Geldenhuys via lazarus
On 13/10/2019 12:42 am, Anthony Tekatch via lazarus wrote: > report: error: undefined symbols for architecture i386 As Catalina doesn't have 32-bit support, I would imagine you need to compile 64-bit FPC first, then build Lazarus with the 64-bit fpc compiler. I would also imagine you can't use t

Re: [Lazarus] Multi-platform console application, how to handle file paths?

2019-10-29 Thread Graeme Geldenhuys via lazarus
On 29/10/2019 12:07 pm, Bo Berglund via lazarus wrote: > I have been around too long so I > remember the old days... Same. Windows should get with the times and switch to Unix. ;-) On a side note: After all, Windows still start the drive letters with C: and considering that no PC is the last deca

Re: [Lazarus] Multi-platform console application, how to handle file paths?

2019-10-29 Thread Graeme Geldenhuys via lazarus
On 29/10/2019 9:16 pm, Michael Thompson wrote: > Been doing this for 10 years now, no conflict on any client PC > anywhere :-) I like those holes in A: and B: :-D Very clever indeed! Make full use of those relics. I wonder why Microsoft didn't think of that for USB drives. Regards, Graeme --

Re: [Lazarus] Lazarus program runs fine in a Terminal but not in a PuTTY session, why?

2019-10-31 Thread Graeme Geldenhuys via lazarus
Hi Bo, On 31/10/2019 10:02 pm, Michael Van Canneyt via lazarus wrote: > If the 'interfaces' unit is in the uses clause of your program, try > removing it. In addition to what Michael said, you can also run `ldd /path/and/program` and Linux will tell you your executable is dependent on X11 librar

Re: [Lazarus] Find in files crashes Cinnamon

2019-11-15 Thread Graeme Geldenhuys via lazarus
On 15/11/2019 10:42 am, Michael Van Canneyt via lazarus wrote: > The crash and switch to 'fallback mode' ("restart fallback mode" would be > better named) > happens easily once a day. > > I'd try using linux mint "mate", but I'm not particularly looking forward to > reconfiguring my machine. It

Re: [Lazarus] Find in files crashes Cinnamon

2019-11-15 Thread Graeme Geldenhuys via lazarus
On 15/11/2019 8:58 pm, Florian Klämpfl via lazarus wrote: > Feels like a discussion from 1998 :) :-) True. JWM is still being maintained though, so it's not abandon-ware. Nothing wrong with good old X11 Window Managers. As somebody pointed out to me recently Of everything mankind has created,

Re: [Lazarus] The future of the Lazarus IDE

2019-11-24 Thread Graeme Geldenhuys via lazarus
On 23/11/2019 10:26 pm, Michael Van Canneyt via lazarus wrote: > I must say I am shocked to read you consider Lazarus "buggy and cumbersome". > In my experience it's way better than Delphi as an object pascal IDE. I'm > generally more productive in Lazarus than in Delphi, due to the superior > code

Re: [Lazarus] The future of the Lazarus IDE

2019-11-24 Thread Graeme Geldenhuys via lazarus
On 23/11/2019 10:43 pm, Ralf Quint via lazarus wrote: > I personally loath VSCode just as much as VS itself (or XCode, for that > matter) or Eclipse. I haven't really used VSCode, but as far as I understand, it's a editor, not an IDE. The other point being, that it doesn't run on FreeBSD - a pla

Re: [Lazarus] The future of the Lazarus IDE

2019-11-24 Thread Graeme Geldenhuys via lazarus
On 24/11/2019 11:19 am, Marco van de Voort via lazarus wrote: > No. More importantly it gives independence. Something that external > tools don't give. If they wither or change direction, or do the umpteen > API change you have an immediate problem and risk getting caught in an > infinite catch-

Re: [Lazarus] The future of the Lazarus IDE

2019-11-24 Thread Graeme Geldenhuys via lazarus
On 24/11/2019 11:23 am, Michael Van Canneyt via lazarus wrote: > If the external tool implements it, you get it for free. And if they don't decide to implement it, you don't get it at all. I have filed quite a few Feature Request and Bug Reports for IntelliJ IDEA. Many bugs were prompts fixed, but

Re: [Lazarus] The future of the Lazarus IDE

2019-11-24 Thread Graeme Geldenhuys via lazarus
On 24/11/2019 8:45 pm, Ralf Quint via lazarus wrote: > be for a good part that I am used to the Borland (WS) keyboard mappings > and the general editor behavior, after almost 40 years, those have > become second nature (and are thoroughly missed whenever I have to use > some other environment).

Re: [Lazarus] The future of the Lazarus IDE

2019-11-25 Thread Graeme Geldenhuys via lazarus
On 25/11/2019 8:11 am, Luca Olivetti via lazarus wrote: > I meant an internal network with an > application specific server used by many clients. And that is exactly how the other day we had 500+ IntelliJ IDEA developers in our company that couldn't run IntelliJ. The licensing server died for a c

Re: [Lazarus] The future of the Lazarus IDE

2019-11-25 Thread Graeme Geldenhuys via lazarus
On 25/11/2019 8:27 am, Michael Van Canneyt via lazarus wrote: > In order to see the full potential of web components, the IDE needs to be > web-enabled. So you don't like the idea how React development is done? It runs some server in the background and has some "auto reload" feature. You can use

Re: [Lazarus] The future of the Lazarus IDE

2019-11-25 Thread Graeme Geldenhuys via lazarus
On 25/11/2019 7:40 pm, Michael Van Canneyt via lazarus wrote: > I know this. We have the same for pas2js, there is a demo for it. > > But this is still not RAD. Developing a GUI with RAD is simply faster. I need to watch some FPC videos and try some more demos. I'm clearly lagging behind on what

Re: [Lazarus] The future of the Lazarus IDE

2019-11-27 Thread Graeme Geldenhuys via lazarus
On 26/11/2019 8:38 pm, Bo Berglund via lazarus wrote: > one can get maybe 20/5 Mbit/s but during summer vacations when the > population multiplies many times over it drops to sub-Mbit/s very > often. > Too much on-line video usage, I think. LOL - 7 years ago when I still lived in South Africa...

Re: [Lazarus] Delphi is 25 years old today

2020-02-14 Thread Graeme Geldenhuys via lazarus
On 14/02/2020 10:25 am, Anthony Walter via lazarus wrote: > As the title says, Delphi turns 25 years old today. Yeah, just read that a few minutes ago. Amazing, and such a pity it never got the fame/popularity it deserved. The language is amazing! Though these days it has seriously stagnated (spec

Re: [Lazarus] Online Package Manager question

2020-04-19 Thread Graeme Geldenhuys via lazarus
On 13/04/2020 10:11 pm, Michael Van Canneyt via lazarus wrote: > I have not used the OPM extensively, but I think that once a package has > been registered/accepted, I think the original author must be able to upload > his > own changes. Just curious - does the OPM support multiple versions of a

Re: [Lazarus] Lazreport variables

2020-05-11 Thread Graeme Geldenhuys via lazarus
On 03/05/2020 5:03 pm, Santiago A. via lazarus wrote: > I want to write a report where even lines are written with no background > and odd lines with a light gray background. Have you considered using the newer FPReport (aka fcl-report) included with FPC? There is a report designer for Lazarus to

Re: [Lazarus] Keyboard mapping probelm

2020-05-14 Thread Graeme Geldenhuys via lazarus
On 06/05/2020 1:19 am, Brian via lazarus wrote: > I forgot to add - I totally erased fpcup's entire tree and rebuilt > from scratch. No change. It's not about recompiling Lazarus. Probably more related to your customised settings in your $HOME/.lazarus/ directory. Start your lazarus from the comm

Re: [Lazarus] Tool to make icons ?

2020-05-22 Thread Graeme Geldenhuys via lazarus
On 21/05/2020 3:13 pm, Michael Van Canneyt via lazarus wrote: > What is the tool used to make icons for standard Lazarus components ? Aseprite is brilliant. Included in Linux package repositories too. I use it for pixel art - playing around with game development. There are loads of fantastic tutor

Re: [Lazarus] Keyboard mapping probelm

2020-05-30 Thread Graeme Geldenhuys via lazarus
On 30/05/2020 9:04 pm, Brian via lazarus wrote: > Copyright (c) 1993-2017 by Florian Klaempfl and others > (1002) Target OS: Linux for x86-64 > (3104) Compiling fcllaz.pas > /home/brian/subversion/lazarus/packager/registration/fcllaz.pas(11,3) Fatal: > (10022) Can't find unit db used by fcllaz > F

Re: [Lazarus] Switching Lazarus between fpc 3.2.0 and 3.0.4 - how to?

2020-06-22 Thread Graeme Geldenhuys via lazarus
On 21/06/2020 6:18 am, Bo Berglund via lazarus wrote: > Is it possible to switch Lazarus between using fpc 3.0.4 and 3.2.0 so > as to compare the two easily? Yes. There is no need for duplicate Lazarus installs. Simply have 2 or more FPC versions installed. I believe the build modes would help swi

Re: [Lazarus] Proposal: Allow Umlaute and Accented Characters in Identifiers

2020-07-04 Thread Graeme Geldenhuys via lazarus
On 03/07/2020 3:37 pm, Michael Van Canneyt via lazarus wrote: > I did a quick test in Delphi: If Unicode is indeed supported in the language itself, it would be hilarious to start seeing coding using emojis as identifiers! :-D https://unicode.org/emoji/charts/full-emoji-list.html var 😀: Inte

Re: [Lazarus] Proposal: Allow Umlaute and Accented Characters in Identifiers

2020-07-04 Thread Graeme Geldenhuys via lazarus
On 04/07/2020 7:11 pm, Graeme Geldenhuys via lazarus wrote: > var >😀: Integer; > begin >for 😀 := 0 to 10 do > writeln(😀); > end. And exception variables could be 🤢 (nauseated face). Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit usin

Re: [Lazarus] Proposal: Allow Umlaute and Accented Characters in Identifiers

2020-07-04 Thread Graeme Geldenhuys via lazarus
On 04/07/2020 9:48 pm, Sven Barth via lazarus wrote: > I've just tested: Delphi does not support Emojis. I've just tested with Java. They allow Unicode, but only what is considered "spoken language" characters. So things like Emojis, Math Symbols, Arrows etc are not allowed as part of the text ma

Re: [Lazarus] Cannot compile console application, why?

2020-07-06 Thread Graeme Geldenhuys via lazarus
On 06/07/2020 6:20 am, Michael Van Canneyt via lazarus wrote: > I suggest to remove indylaz from the uses clause. > It pulls in some GUI related code, probably some design-time stuff. Yeah, from memory, the non-gui related package is called "indy.lpk" Regards, Graeme -- fpGUI Toolkit - a

Re: [Lazarus] Switching Lazarus between fpc 3.2.0 and 3.0.4 - how to?

2020-07-06 Thread Graeme Geldenhuys via lazarus
On 05/07/2020 6:47 am, Bo Berglund via lazarus wrote: > Still I seem not to understand this... > I do have two fpc versions installed (3.0.4 and 3.2.0). > > But I cannot find any setting for compiler in > Project/Project_Options/Compiler_Options/Build_Modes It's been a while. I thought there was

Re: [Lazarus] Mailinglist issues

2016-09-24 Thread Graeme Geldenhuys via Lazarus
On 2016-09-24 14:06, Andrew Haines via Lazarus wrote: > Now lets see if I get a copy of my email back. I can confirm that I received your message via the mailing list Andrew. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My pu

Re: [Lazarus] Scrollbars on form ?

2016-09-24 Thread Graeme Geldenhuys via Lazarus
On 2016-09-24 23:06, Michael Van Canneyt via Lazarus wrote: > I tried AutoScoll true and false. I wouldn't be surprised if it only works with a specific LCL widgetset (eg: LCL-Win32). Could a TScrollBox (aligned alClient) be used as a work-around? Regards, Graeme -- fpGUI Toolkit - a cross-p

Re: [Lazarus] Scrollbars on form ?

2016-09-25 Thread Graeme Geldenhuys via Lazarus
On 2016-09-25 09:01, Michael Van Canneyt via Lazarus wrote: > I use GTK. Can you make a demo that shows this ? Michael, I just tried with a brand new project, dropped a large TMemo on the form, resized the form smaller, then set AutoScroll = True, and it worked with LCL-GTK2. So you seem to be in

[Lazarus] TColor and Alpha channel support

2016-09-26 Thread Graeme Geldenhuys via Lazarus
Hi, All LCL colors seem to be defined in the format TColor($BBGGRR) - all without the Alpha channel information. Does TColor support the Alpha channel, and if it does, will it it be applied everywhere or all supported widgetsets? If TColor does support the Alpha channel, in which format should t

Re: [Lazarus] TColor and Alpha channel support

2016-09-26 Thread Graeme Geldenhuys via Lazarus
On 2016-09-26 12:33, Mattias Gaertner via Lazarus wrote: >> Does TColor support the Alpha channel, > > No. Wow, that's surprising. > The idea is to use the FPColor property for alpha, but that is not > implemented yet by the LCL interfaces. Hmm, I wonder how hard it would > be... Does that al

Re: [Lazarus] TColor and Alpha channel support

2016-09-26 Thread Graeme Geldenhuys via Lazarus
On 2016-09-26 13:50, Ondrej Pokorny via Lazarus wrote: > Aah, I see now what you mean. Then ColorAlpha :) An then you start getting the contradicting properties. For example: Label1.Color := clRed; Label1.ColorAlpha := 170; Label1.Transparent := True; or, what to do if Label1.Transparent

Re: [Lazarus] TColor and Alpha channel support

2016-09-26 Thread Graeme Geldenhuys via Lazarus
On 2016-09-26 13:52, Martin Schreiber via Lazarus wrote: > Or: > " > Alpha := ...; // property Alpha: TColor > " > for alpha per colour channel. In that case I would make it a record type with RedAlpha, GreenAlpha and BlueAlpha: Byte. Why?, Because TColor's range is way to large, with most of the

Re: [Lazarus] TColor and Alpha channel support

2016-09-26 Thread Graeme Geldenhuys via Lazarus
On 2016-09-26 16:15, Kostas Michalopoulos via Lazarus wrote: > Is there a need for alpha *everywhere* a color is used? So how would functions that take TColor parameters work? For example, drawing a gradient with increasing Alpha value, say via a TCanvas.GradientFill() call. In the case of Gradien

[Lazarus] TColor($RRGGBB) -> TColor($BBGGRR)

2016-09-27 Thread Graeme Geldenhuys via Lazarus
Hi, I can do the following myself with a simple function, but does LCL already contain a function that swaps the Red and Blue channel values? I have many color values defined in RRGGBB format (eg: PDF colors, HTML colors, fpGUI colors etc), but need to convert it to a compatible LCL TColor where

Re: [Lazarus] TColor($RRGGBB) -> TColor($BBGGRR)

2016-09-27 Thread Graeme Geldenhuys via Lazarus
On 2016-09-27 16:20, Graeme Geldenhuys via Lazarus wrote: > I can do the following myself with a simple function, but does LCL > already contain a function that swaps the Red and Blue channel values? I searched all of Graphics and GraphUtils and couldn't find anything revelant, so

Re: [Lazarus] Online Package Manager

2016-10-04 Thread Graeme Geldenhuys via Lazarus
On 2016-10-04 13:11, Balázs Székely via Lazarus wrote: > I decided to implement the online package manager(opkman) or at least give > it a try. Not to deter from all your efforts, but I think there is already a brilliant solution called "Delphinus". It is an open-source replacement to the ridicul

[Lazarus] Calling DrawFocusRect() outside the Paint() event

2016-10-10 Thread Graeme Geldenhuys via Lazarus
Hi, Working on a visual report designer for the upcoming fpReport. We use Canvas.DrawFocusRect() to draw a selection rectangle around a reporting element (eg: a memo). We can drag that rectangle around in the report designer (which itself is a custom widget). We call the Canvas.DrawFocusRect() fro

Re: [Lazarus] Calling DrawFocusRect() outside the Paint() event

2016-10-10 Thread Graeme Geldenhuys via Lazarus
On 2016-10-10 10:49, Mattias Gaertner via Lazarus wrote: > Some widgetsets like Carbon can only paint during the Paint event. Thanks for confirming my suspicions and useful advice. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net

Re: [Lazarus] Calling DrawFocusRect() outside the Paint() event

2016-10-10 Thread Graeme Geldenhuys via Lazarus
On 2016-10-10 11:50, Michael Van Canneyt via Lazarus wrote: > I thought lazarus did double buffering by default, so this should be so > automatically ? I don't believe LCL uses double buffering by default (for some reason or another). At least that is what I was told in the Lazarus Forums. Regar

Re: [Lazarus] Calling DrawFocusRect() outside the Paint() event

2016-10-10 Thread Graeme Geldenhuys via Lazarus
On 2016-10-10 11:11, Mattias Gaertner via Lazarus wrote: > Draw to a bitmap and in OnPaint draw that. Similar to a TImage. > Then you can also use aggpas. Incidently, that is how fpGUI's latest 'develop' branch overcomes the painting outside the Paint method problems. Seeing as AggPas is used as t

Re: [Lazarus] Teaching Pascal at College

2016-10-13 Thread Graeme Geldenhuys via Lazarus
On 2016-10-13 06:33, LacaK via Lazarus wrote: > I understand, that black/white window does not look modern. You can > introduce 2 courses: > 1. Introduction to Pascal (Object Pascal) > 2. GUI programing +1 That would be the best solution. GUI programming is based on fundamentals than need to be

Re: [Lazarus] Teaching Pascal at College

2016-10-13 Thread Graeme Geldenhuys via Lazarus
On 2016-10-12 19:52, Chris Kelling via Lazarus wrote: > I would love to know what you think about making the transition from > console to GUI. All kids/students love games, so introducing programming with games in mind helps keep their attention. Here is a link to some online and free course mate

Re: [Lazarus] Teaching Pascal at College

2016-10-13 Thread Graeme Geldenhuys via Lazarus
On 2016-10-13 10:04, Michael Schnell via Lazarus wrote: > IMHO it's a shame, but new > projects in Pascal seem to be declining, That's got nothing to do with the Object Pascal being modern or not (I think it is modern enough). The decline is about marketing and popularity contests, and management

Re: [Lazarus] Teaching Pascal at College

2016-10-13 Thread Graeme Geldenhuys via Lazarus
On 2016-10-13 21:13, Martin Collins via Lazarus wrote: > My coding is just a hobby that I enjoy, but I would like to be able to > do it well and also somehow know that I am. Unfortunately I come from a > marine (ships) background not from an IT one. No formal training in > programming. You back

Re: [Lazarus] Teaching Pascal at College

2016-10-13 Thread Graeme Geldenhuys via Lazarus
On 2016-10-13 22:11, Giuliano Colla via Lazarus wrote: > One should be aware of what > is available, of course, but then one should always select the most > "appropriate" technology, and not be influenced by what is "modern". Very wise words! Regards, Graeme -- ___

Re: [Lazarus] Windows 10 force any non-white background color to White

2016-10-14 Thread Graeme Geldenhuys via Lazarus
On 2016-10-14 11:01, Giuliano Colla via Lazarus wrote: > My best suggestion is to encourage your customer to downgrade to Windows 7. Yeah right - that will never happen! All that effort just for one application, because LCL doesn't support the most basic of theming. Regards, Graeme -- _

Re: [Lazarus] Teaching Pascal at College

2016-10-14 Thread Graeme Geldenhuys via Lazarus
On 2016-10-13 23:13, Erwin van den Bosch via Lazarus wrote: > The problem is that you should separate your business logic and > the GUI. With Delphi like RAD it's very difficult to do that. (but it is > possible) Everything is coded in events and connected to database aware > GUI controls. (In t

Re: [Lazarus] Teaching Pascal at College

2016-10-14 Thread Graeme Geldenhuys via Lazarus
On 2016-10-14 09:18, Michael Schnell via Lazarus wrote: > The OP explained that his main purpose is to introduce more fun in the > education. That can be done by plunging into programming directly with > GUI development. So for somebody that doesn't know anything about programming, then suddenl

Re: [Lazarus] Teaching Pascal at College

2016-10-14 Thread Graeme Geldenhuys via Lazarus
On 2016-10-14 12:01, Graeme Geldenhuys via Lazarus wrote: > and maybe incite them every now and again Oops, that meant to read: "...and maybe entice them..." Regards, Graeme -- ___ Lazarus mailing list Lazarus@lists.lazarus

Re: [Lazarus] Teaching Pascal at College

2016-10-14 Thread Graeme Geldenhuys via Lazarus
On 2016-10-14 12:08, Mehmet Erol Sanliturk wrote: > program can not be compiled as a Lazarus program or an fpGUI program as it > is like compiling the same program by Delphi ( with required compiler > directives ) . It is necessary either use Lazarus or fpGUI programming . I am yet to see that in

Re: [Lazarus] Teaching Pascal at College

2016-10-14 Thread Graeme Geldenhuys via Lazarus
On 2016-10-14 15:10, Jürgen Hestermann via Lazarus wrote: > desperately click on this and that and some have luck and suddenly it works > (more or less). > But they do not know why and they also do not know why the performance is so > bad, > but hey, as long as it more or less works Straigh

[Lazarus] Watch List shows absolute rubbish

2016-10-14 Thread Graeme Geldenhuys via Lazarus
Hi, Is it a known issue that the Watch List shows absolute rubbish from time to time??? Or at least that you can't trust the details is does show? Take a look at the screenshot attached. Look at the code, and the Watch window. Note the value of "i" and "FShowDeleted" in the Watch window. It is t

Re: [Lazarus] Watch List shows absolute rubbish

2016-10-14 Thread Graeme Geldenhuys via Lazarus
On 2016-10-14 16:48, Graeme Geldenhuys via Lazarus wrote: > How the hell is one supposed to do debugging like this?? I guess the answer is to simply use MSEide to debug LCL applications (and all other applications too). Attached is a screenshot of the same watch list and also in the fi

Re: [Lazarus] Watch List shows absolute rubbish

2016-10-14 Thread Graeme Geldenhuys via Lazarus
On 2016-10-14 18:45, Martin Frb via Lazarus wrote: > And the same compiler settings? Both have the exact same compiler settings... -l -Mobjfpc -Sh -Sc -Si -gl -O- -gh -dUseCThreads -viewn I excluded the unit paths from the above list of compiler options. Regards, Graeme -- fpGUI Toolkit -

Re: [Lazarus] Watch List shows absolute rubbish

2016-10-14 Thread Graeme Geldenhuys via Lazarus
On 2016-10-14 20:45, Martin Frb via Lazarus wrote: > Ok, thats a first, never seen that before. I finally found the cause of the problem. I don’t use build modes in Lazarus, so only ever looked at the “Project Options -> Compiler Options -> Compilation and Linking” screen. That’s where I set the -

Re: [Lazarus] Teaching Pascal at College

2016-10-17 Thread Graeme Geldenhuys via Lazarus
On 2016-10-17 09:52, Michael Schnell via Lazarus wrote: > - do I need know how/why the GUI builder creates the code that makes a > Button visible on a Form and my Event handler be called when a button > is pressed ? Yes (I.e. do I need to be able to write the code myself > without the help

Re: [Lazarus] Lazmint

2016-10-18 Thread Graeme Geldenhuys via Lazarus
On 2016-10-18 09:19, Michael Schnell via Lazarus wrote: > wget $BASEURL/x84_64-linux/fpc-3.0.0.x64_64-linux.tar ^^^ That should probably read 'x86_64', not 'x64_64'. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http:/

[Lazarus] ANN: Procedure List enhancement

2016-10-18 Thread Graeme Geldenhuys via Lazarus
Hi, I thought I would mention that Markus implemented an enhanced search feature in the Procedure List dialog. This became available at the end of July in Lazarus Trunk. I've used it extensively since then, and it is super handy. So kudos to Markus for than very nice addition. So what is the new

[Lazarus] Trunk - Index Out Of Bounds error

2016-10-18 Thread Graeme Geldenhuys via Lazarus
Hi, I've just upgraded to Lazarus Trunk. If I now add a package dependency to my project I get an index out of bounds error. I don't see the package add - in the Project Inspector window either, but apparently it is there. If I quit and restart Lazarus IDE, then the package dependency magically ap

Re: [Lazarus] LCL Cocoa: Overriding delegate protocols

2016-10-21 Thread Graeme Geldenhuys via Lazarus
On 2016-10-13 17:13, Zoë Peterson via Lazarus wrote: > It seems like the fix > would be to move all of the CreateHandle code into a method in > TCocoaWindow (possibly init) I'm not a core Lazarus developer, but your suggestion does sound like a good solution without down sides. One method doing

Re: [Lazarus] Help System with Chromium Embedded component

2016-10-21 Thread Graeme Geldenhuys via Lazarus
On 2016-10-21 08:04, Lars via Lazarus wrote: > powerful like a full fledged .CHM system or .hlp system. But even chm and > .hlp files are primitive, they are just basic, and 1990's technology. One thing you are overlooking is that most help authors don't use any of the advanced features of the exi

Re: [Lazarus] Chromium embedded on freebsd or firefox embedded

2016-10-21 Thread Graeme Geldenhuys via Lazarus
On 2016-10-21 08:38, Lars via Lazarus wrote: > I so much love the bsd license and want to move my desktop and some of my > development over to BSD, but it just seems like bsd is constantly playing > catch up to what linux and windows already had years ago. I agree with the first part and disagree

Re: [Lazarus] Help System with Chromium Embedded component

2016-10-21 Thread Graeme Geldenhuys via Lazarus
On 2016-10-21 10:13, Mattias Gaertner via Lazarus wrote: > Can the content of the wiki and FPC's guides be shown/searched with it > too? Wiki no, FPC guides yes. I believe somebody was working on a "wiki exporter" tool at some point, so the Wiki content could be made available offline. I assume

Re: [Lazarus] Help System with Chromium Embedded component

2016-10-21 Thread Graeme Geldenhuys via Lazarus
On 2016-10-21 11:05, Mattias Gaertner via Lazarus wrote: >> Wiki no, FPC guides yes. > > I would like to test that. Can you give me a link or hint? Regarding the FPC guides. I consider the FPC Language Reference the most important one, so I manually converted it (and keep it in sync with FPC rele

Re: [Lazarus] Chromium embedded on freebsd or firefox embedded

2016-10-21 Thread Graeme Geldenhuys via Lazarus
On 2016-10-21 12:23, Lars via Lazarus wrote: > but for small apps it increases > the download size significantly. Exactly. > When you dabbed with firefox embedded, was it a lazarus component? It's been a while, but I believe it was a Lazarus component. Regards, Graeme -- fpGUI Toolkit -

Re: [Lazarus] Help System with Chromium Embedded component

2016-10-22 Thread Graeme Geldenhuys via Lazarus
On 2016-10-22 22:36, Mattias Gaertner via Lazarus wrote: > Is this a problem of the CHM producer or the CHM viewer? Both. The LaTeX-to-HTML conversion is definitely not great. Michael would agree on this one. Then taking that already bad HTML and converting in to CHM, makes the end result even wor

Re: [Lazarus] Teaching Pascal at College

2016-10-24 Thread Graeme Geldenhuys via Lazarus
On 2016-10-24 21:29, Mehmet Erol Sanliturk via Lazarus wrote: > http://www.blaisepascal.eu/subscribers/UK/UK_Book_Department.html I believe Blaise Pascal is now the official publisher of that book. From what I can see, they now offer a PDF version of that book, so “out of print” should be of no co

Re: [Lazarus] Memo.Lines.Add seems to be slow with Lazarus 1.6

2016-11-02 Thread Graeme Geldenhuys via Lazarus
On 2016-11-02 12:27, Bernd Mueller via Lazarus wrote: > with Lazarus 1.6 (FPC 3.0.0 i386-linux-gtk 2) filling a Memo with 1 > lines takes about 18 seconds on my system. I can confirm that. Using 64-bit Lazarus (trunk from a week ago) with FPC 3.0.0 and LCL-GTK2. On my Intel i7-3550K CPU @ 3.5

Re: [Lazarus] Memo.Lines.Add seems to be slow with Lazarus 1.6

2016-11-02 Thread Graeme Geldenhuys via Lazarus
On 2016-11-02 13:36, Luca Olivetti via Lazarus wrote: > Try using a TSynEdit instead of a TMemo. That's a bit of overkill in most cases, plus - as Bernd clearly point out - there is a TMemo regression bug in LCL. Regards, Graeme -- ___ Lazarus mail

Re: [Lazarus] Memo.Lines.Add seems to be slow with Lazarus 1.6

2016-11-02 Thread Graeme Geldenhuys via Lazarus
On 2016-11-02 18:43, Luca Olivetti via Lazarus wrote: > Maybe it's overkill, but it's necessary under windows, Welcome to the benefits of custom components where you can easily outperform native components. Just curious, has anybody tried the TMemo of LCL-CustomDrawn widgetset? I know the LCL-Cus

Re: [Lazarus] Memo.Lines.Add seems to be slow with Lazarus 1.6

2016-11-02 Thread Graeme Geldenhuys via Lazarus
On 2016-11-02 22:24, Michael W. Vogel via Lazarus wrote: > I have made a bug entry and added there a first patch (its not the final > one, but its late here now) I didn't look at what exactly the patch does, but on first testing it reduced the running time from 9000+ milliseconds to 250ms. So tha

Re: [Lazarus] fcl-pdf change

2016-11-03 Thread Graeme Geldenhuys via Lazarus
On 2016-11-03 11:26, Tony Whyman via Lazarus wrote: > Does this affect the Power PDF package or is this entirely independent? PowerPDF is an entirely different project. FCL-PDF is a PDF engine included as standard with FPC 3.0.2 onwards. Regards, Graeme -- fpGUI Toolkit - a cross-platform G

Re: [Lazarus] Memo.Lines.Add seems to be slow with Lazarus 1.6

2016-11-04 Thread Graeme Geldenhuys via Lazarus
On 2016-11-04 07:35, Ondrej Pokorny via Lazarus wrote: > The TextHint implementation should be completely rewritten. It shouldn't > use the text property but paint the TextHint onto the control by itself. Very true, and using the Tex property for that is indeed a very bad idea/design. fpGUI's wi

Re: [Lazarus] Help System with Chromium Embedded component

2016-11-06 Thread Graeme Geldenhuys via Lazarus
On 2016-11-06 11:35, vfclists . via Lazarus wrote: > I think using CEF is fine as there don't seem to be any other realistic > options. That is the situation as it is. No it's not! If you have a login for Lazarus Forum's, check out this post with a fully functional application with context sensiti

Re: [Lazarus] Help System with Chromium Embedded component

2016-11-06 Thread Graeme Geldenhuys via Lazarus
On 2016-10-21 09:58, Graeme Geldenhuys via Lazarus wrote: > It was surprisingly hard to find a solution, especially something > cross-platform. In the end I researched help formats with the goal to > implement our own help viewer. We looked at Microsoft's HLP, CHM > f

Re: [Lazarus] Memo.Lines.Add seems to be slow with Lazarus 1.6

2016-11-06 Thread Graeme Geldenhuys via Lazarus
On 2016-11-06 15:45, zeljko via Lazarus wrote: > No, I don't know any widgetset which supports different font color/style > for texthint. fpGUI does - for some years now. ;-) I also implemented a specific colour alias constant (clPlaceholderText) and alias font name, to make it easier to customis

Re: [Lazarus] Memo.Lines.Add seems to be slow with Lazarus 1.6

2016-11-07 Thread Graeme Geldenhuys via Lazarus
On 2016-11-07 06:39, Martin Schreiber via Lazarus wrote: > Marketing is the most important task It was for the interest of education of course. ;-) Regards, Graeme -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.or

Re: [Lazarus] Help System with Chromium Embedded component

2016-11-07 Thread Graeme Geldenhuys via Lazarus
On 2016-11-07 19:25, vfclists . via Lazarus wrote: > computing industry has been try to shoehorn every da*n thing into > Javascript and HTML, and who knows what the industry "leaders" will come up > in their bid to fit square pegs into round holes and channel users into Exactly, and there is no re

Re: [Lazarus] Help System with Chromium Embedded component

2016-11-08 Thread Graeme Geldenhuys via Lazarus
On 2016-11-08 02:27, Lars via Lazarus wrote: > Maybe not a huge issue with todays high speed internet connections, but it > still is another dependency. Not all internet connections are equal in all countries. In the UK, 8Mbps is currently the average speed. In South Africa the average speed would

Re: [Lazarus] Help System with Chromium Embedded component

2016-11-08 Thread Graeme Geldenhuys via Lazarus
On 2016-11-08 02:31, Lars via Lazarus wrote: > One issue is firefox has a track record of not supporting embedded browser > for very long without abandoning it, or changing the api to make it > incompatible with old code... so who says this isn't also going to happen > with chromium (CEF) at some p

Re: [Lazarus] Help System with Chromium Embedded component

2016-11-08 Thread Graeme Geldenhuys via Lazarus
On 2016-11-08 02:51, Lars via Lazarus wrote: > It's sort of like a JVM bytecode, but for the web browser. That makes you wonder, why not simply go back to Java Applets. They came out in 1996 and I thought they were brilliant for web applications. You had the full power of the Java language and gra

Re: [Lazarus] ctrl-c code completion

2016-11-08 Thread Graeme Geldenhuys via Lazarus
On 2016-11-08 12:10, Michael Van Canneyt via Lazarus wrote: >> > >> > Why does that cause a compiler error? > Because both procedures remained in the sources. I can confirm, I've seen this quite a few times recently too. Not sure if this is related: Another way to reproduce this is to change th

Re: [Lazarus] ctrl-c code completion

2016-11-08 Thread Graeme Geldenhuys via Lazarus
On 2016-11-08 13:14, Mattias Gaertner via Lazarus wrote: > In this case codetools don't have enough information. Because it does > not know the former connection. By why does it work if I do them one at a time. eg: Change the first interface declaration and do code completion. Change the second in

Re: [Lazarus] ctrl-c code completion

2016-11-08 Thread Graeme Geldenhuys via Lazarus
On 2016-11-08 14:45, Mattias Gaertner via Lazarus wrote: > Just do changes one by one and you are good to go. Thanks for the explanations... I'll continue has I have been doing, one at a time. Regards, Graeme -- ___ Lazarus mailing list Lazarus@list

Re: [Lazarus] Lazarus Version

2016-11-08 Thread Graeme Geldenhuys via Lazarus
On 2016-11-08 16:10, Mattias Gaertner via Lazarus wrote: >> > I don't want to hijack anybody else's thread, but I habitually use that >> > file to get version info so that I can always find out what compiler >> > etc. has been used to build a binary. > How does lclversion tell you the used compil

Re: [Lazarus] Help System with Chromium Embedded component

2016-11-09 Thread Graeme Geldenhuys via Lazarus
On 2016-11-09 04:43, Lars via Lazarus wrote: > One issue, back in the day, was that you could only use Java programming > language, right? Hence the name "Java Applet" ;-) > Another issue with java applets is you had to make sure they were > installed correctly, No, the web server served it

Re: [Lazarus] Help System with Chromium Embedded component

2016-11-09 Thread Graeme Geldenhuys via Lazarus
On 2016-11-09 05:13, Lars via Lazarus wrote: > I find the documentation, for example, for > Total Commander, to just be a little bit too Windows 3.1 looking. I'll bet you a 6-pack of beer that the documentation was written by the developer himself. That would explain the lack of typography. :) R

<    1   2   3   4   5   6   >