Re: [Lazarus] Format code on Save

2017-01-25 Thread Graeme Geldenhuys via Lazarus
On 2017-01-25 13:15, Mattias Gaertner via Lazarus wrote: > I can add an event called before saving a source editor file. > Would that help you? I think a "after save" event is needed instead? Does JCF format code directly from memory (SynEdit's buffer), or does it read and format a file from disk.

[Lazarus] Format code on Save

2017-01-25 Thread Graeme Geldenhuys via Lazarus
Hi, As the subject lines says. If you set up the Jedi Code Formatting options, is there a way to tell Lazarus to automatically format the unit when you Ctrl+S (Save)? Eclipse IDE does that (and much more fine grained if needed) with Java code, at it is actually super useful, and always results in

Re: [Lazarus] Teaching Pascal at College

2017-01-18 Thread Graeme Geldenhuys via Lazarus
On 2017-01-17 20:01, wkitty42--- via Lazarus wrote: > sometimes too much is too much ;) +1 :) Regards, Graeme -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Teaching Pascal at College

2017-01-18 Thread Graeme Geldenhuys via Lazarus
On 2017-01-17 18:11, Lars via Lazarus wrote: > fpGUI is, in every way possible, a wrapper. In that case even the Writeln() call is a wrapper function (for a low level system call). So as you can see, your quest not to use wrappers is getting a bit ridiculous. Object Pascal is a high level language

Re: [Lazarus] Teaching Pascal at College

2017-01-17 Thread Graeme Geldenhuys via Lazarus
On 2017-01-16 20:18, Lars via Lazarus wrote: > GUI's require wrappers. No they don't. > Delphi 5 as an example, is a wrapper around the win32api Yes, Delphi's VCL is a wrapper around the common Win32 widgets. LCL is a wrapper around Win32, Qt, Cocoa, Carbon and even fpGUI. But not all GUI toolki

Re: [Lazarus] cleaning out the "packagefiles.xml" file

2017-01-12 Thread Graeme Geldenhuys via Lazarus
On 2017-01-12 16:24, Michael Van Canneyt via Lazarus wrote: > That is, assuming you have not touched the 'count' ? I didn't look at the lazbuild code, but that should be easy to work around (if not already done so). eg: Read the package registry xml file. Read the Count attribute value and compare

Re: [Lazarus] cleaning out the "packagefiles.xml" file

2017-01-12 Thread Graeme Geldenhuys via Lazarus
On 2017-01-12 16:06, Mattias Gaertner via Lazarus wrote: > No problem. Thanks for confirming that Mattias. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp --

Re: [Lazarus] cleaning out the "packagefiles.xml" file

2017-01-12 Thread Graeme Geldenhuys via Lazarus
On 2017-01-12 15:33, Michael Van Canneyt wrote: > I think that would be an issue; I have always kept them sequential. I've always done the same (keep them sequential), but there was an aweful lot of packages in that registry, so I took a chance... I didn't even update the Count attribute It s

[Lazarus] cleaning out the "packagefiles.xml" file

2017-01-12 Thread Graeme Geldenhuys via Lazarus
Hi, If I clean out the "packagefile.xml" file (aka the package registry) and manually remove all obsolete package entries. if the remaining tags are not sequential, would that be an issue for Lazarus or lazbuild? Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free

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

2017-01-10 Thread Graeme Geldenhuys via Lazarus
On 2017-01-10 12:10, Jürgen Hestermann via Lazarus wrote: > 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 attributes. Spe

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

2017-01-10 Thread Graeme Geldenhuys via Lazarus
On 2017-01-10 10:51, Jürgen Hestermann via Lazarus wrote: > Of course, you will not see all the millions of entries at the same time but > putting it into a VirtualTree will allow you to scroll through them without > delay. fpGUI's StringGrid doesn't have any delay on scrolling or jumping to the

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

2017-01-10 Thread Graeme Geldenhuys via Lazarus
On 2017-01-09 15:28, Werner Pamler via Lazarus wrote: >> > 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 10.3 sec for 5000x5000. I know you guys

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

2017-01-05 Thread Graeme Geldenhuys via Lazarus
On 2016-12-29 15:59, Bart via Lazarus wrote: > I am in need of a component/clas that can hold a 2 dimensional "table" > of strings. Go back to the basics Simply use an array. ;-) Regards, Graeme -- ___ Lazarus mailing list Lazarus@lists.lazarus-

Re: [Lazarus] FCL-PDF change

2016-12-13 Thread Graeme Geldenhuys via Lazarus
On 2016-12-09 17:29, Ondrej Pokorny via Lazarus wrote: > It looks like international characters make problems as well: > http://mantis.freepascal.org/view.php?id=31092 Range Check errors, endless loop and broken international character issues have been resolved. I've updated the bug report, and c

Re: [Lazarus] FCL-PDF change

2016-12-09 Thread Graeme Geldenhuys via Lazarus
On 2016-12-09 15:36, Ondrej Pokorny via Lazarus wrote: > I have a runtime exception, though (the relevant line is in #5): > > #0 fpc_raiseexception(0xc9, 0x5ca84a, 0x79cf5c8) at ..\inc\except.inc:158 > #1 RUNERRORTOEXCEPT(201, 0x5ca84a, 0x79cf5c8) at > ..\objpas\sysutils\sysutils.inc:441 > #2 HAN

Re: [Lazarus] FCL-PDF change

2016-12-09 Thread Graeme Geldenhuys via Lazarus
On 2016-12-09 16:16, Graeme Geldenhuys via Lazarus wrote: > No errors or warnings were given. Same result with FPC 3.0.0 under 64-bit Linux (CentOS 6). Regards, Graeme -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.laza

Re: [Lazarus] FCL-PDF change

2016-12-09 Thread Graeme Geldenhuys via Lazarus
On 2016-12-09 16:02, Ondrej Pokorny via Lazarus wrote: > But for the start to > me it looks like you didn't test the package with range checks on and > overflow checks on. Interestingly, I just enabled Range Checking and Overflows on, clearer all *.ppu files and rebuilt the code. The output is b

Re: [Lazarus] FCL-PDF change

2016-12-09 Thread Graeme Geldenhuys via Lazarus
On 2016-12-09 15:41, Michael Van Canneyt via Lazarus wrote: > > Hmh. Graeme Geldenhuys will have to pull his hair again. We'll have > to pass around the hat to pay for a wig... :-D Yeah, I already look like Kojak [*] (damn, that's giving away my age too). > Can you tell us which font you are u

Re: [Lazarus] FCL-PDF and RTF Support

2016-12-09 Thread Graeme Geldenhuys via Lazarus
On 2016-12-09 15:23, Leonardo M. Ramé via Lazarus wrote: > Hi Graeme, I use LibreOffice in headless mode to generate PDFs > on-the-fly. OpenOffice/LibreOffice headless mode is pretty cool. We used it often too. :) > So, I don't really need a fully featured reporting engine, but just a > way to

Re: [Lazarus] FCL-PDF and RTF Support

2016-12-09 Thread Graeme Geldenhuys via Lazarus
On 2016-12-09 12:00, Leonardo M. Ramé via Lazarus wrote: > I'm looking for a way to add an RTF file to a PDF. In that case you need a RTF parser, and then interpret that into fcl-pdf API calls. The tiOPF project (on SourceForge) has a RTF based reporting engine. It processes a template RTF file

Re: [Lazarus] New high DPI features in 1.7

2016-12-09 Thread Graeme Geldenhuys via Lazarus
On 2016-12-09 12:15, Erwin van den Bosch via Lazarus wrote: > That might be the solution! (but you loose some contrast) Only on exact vertical and horizontal lines - if the mid point of the pixel fall of the center point of a screen pixel. On curved or diagonal lines there is no contrast loss, bec

Re: [Lazarus] New high DPI features in 1.7

2016-12-09 Thread Graeme Geldenhuys via Lazarus
On 2016-12-09 11:38, Erwin van den Bosch via Lazarus wrote: > So 7 px * 1.25 = 8.75 = 9 > 21 px * 1.25 = 26.25 = 26 > 22 px * 1.25 = 27.5 = 28 > How to get pixel 27? Use a 2D graphics framework like fpGUI does with AggPas, which allows for sub-pixel rendering. ie: renders pixels smaller

Re: [Lazarus] FCL-PDF and RTF Support

2016-12-09 Thread Graeme Geldenhuys via Lazarus
On 2016-12-09 11:02, Leonardo M. Ramé via Lazarus wrote: > Hi, does anyone know if there's RTF support for FCL-PDF?. Anyone working > on this?. Please explain what you mean by that - RTF support? fcl-pdf is a PDF generator library, nothing more. It does what it says on the tin, with the API avai

Re: [Lazarus] New high DPI features in 1.7

2016-12-09 Thread Graeme Geldenhuys via Lazarus
On 2016-12-09 08:51, Michael Van Canneyt via Lazarus wrote: > Will this be so for all forms in the project, or just the form(s) that I > opened ? A very good question! Also, what dpi value does the IDE default to, for older projects? Does it always assume the original forms were designed at 96 d

Re: [Lazarus] New high DPI features in 1.7

2016-12-09 Thread Graeme Geldenhuys via Lazarus
On 2016-12-09 08:47, Ondrej Pokorny via Lazarus wrote: > The forms will be rescaled correctly. I.e. the IDE designer itself is > DPI aware. Does it now finally store the "designed dpi value" in the *.lfm files (like Kylix did)? Otherwise if I run at 130 dpi and design a form, and somebody else ru

Re: [Lazarus] DoomRL based of FPC now open sourced

2016-12-07 Thread Graeme Geldenhuys via Lazarus
On 2016-12-07 17:44, Anthony Walter via Lazarus wrote: > DoomRL was written using Free Pascal. That's just awesome! Thanks for sharing. Regards, Graeme -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/

Re: [Lazarus] Form Width bigger than 4096 pixels?

2016-11-30 Thread Graeme Geldenhuys via Lazarus
On 2016-11-30 18:12, Fabio Luis Girardi via Lazarus wrote: > Why this limit? > Is it some specification? Windowing environments tend to have a 32k or 64k window pixel limit (eg: X11 and GDI). So the 4k limit seems to be something introduced by LCL. Unfortunately I can't answer why they introduced

Re: [Lazarus] High Res Screen, problems with IDE

2016-11-29 Thread Graeme Geldenhuys via Lazarus
On 2016-11-28 22:30, Donald Ziesig via Lazarus wrote: > with high screen resolution (1920 x 1080) These days that's not such a high resolution, so in itself that should not cause a problem. I run at double that resolution without problems. What is your desktop DPI setting at? [~]$ xdpyinfo | gre

Re: [Lazarus] Non-visual component tray

2016-11-28 Thread Graeme Geldenhuys via Lazarus
On 2016-11-28 10:42, Ondrej Pokorny via Lazarus wrote: > Good that it's a Lazarus solution! Sorry, I should have mentioned the link is a Delphi add-on. The point of my post was to show the good idea, and to inspire somebody to implement it for Lazarus. I don't use VCL or LCL for years now, so the

[Lazarus] Non-visual component tray

2016-11-28 Thread Graeme Geldenhuys via Lazarus
Finally somebody has implemented a non-visual component tray add-on (sitting next to your visual designed form). Something I've been saying for years - and that should come standard with Delphi and Lazarus. https://github.com/lynatan/ComponentTray Non-visual components don't belong on the desig

Re: [Lazarus] Is the whole of Lazarus-CCR moving to Github?

2016-11-23 Thread Graeme Geldenhuys via Lazarus
On 2016-11-23 13:13, Juha Manninen via Lazarus wrote: > Now it is for projects for anybody who wants to maintain stuff there. Thanks for explaining. You guys do realise that SourceForge does support Git repositories, and in fact DCPCrypt is already in a Git repository in Lazarus-CCR on SourceForg

[Lazarus] Is the whole of Lazarus-CCR moving to Github?

2016-11-23 Thread Graeme Geldenhuys via Lazarus
Hi, Two days ago I got an invite to join the Lazarus CCR organization on Github - probably because I'm the maintainer of DCPCrypt on Lazarus CCR on SourceForge. The invitation came from 'lainz'. Umm, I wanted to post the GitHub link, now I see they hid (or removed) all the repositories. https

Re: [Lazarus] Lazarus and MySQL 5.7

2016-11-22 Thread Graeme Geldenhuys via Lazarus
On 2016-11-22 13:53, Lars via Lazarus wrote: > I first realized this when I needed a button that had new behavior in > Delphi.. so I created my own. Then I realized that any time I install the > IDE on a system, I now have the headache of having to install a non > standard component in order to use

Re: [Lazarus] Lazarus and MySQL 5.7

2016-11-21 Thread Graeme Geldenhuys via Lazarus
On 2016-11-21 00:30, Giuliano Colla via Lazarus wrote: > Lazarus 1.6 includes the package SQLDBLaz which provides support for MySQL > from > versions 4.0 to 5.6. Yes, and that "Lazarus Packages" is simply a IDE wrapper around the components included by FPC's fcl-db code. You don't need Lazarus t

Re: [Lazarus] stale pipe workarounds

2016-11-20 Thread Graeme Geldenhuys via Lazarus
On 2016-11-20 03:50, Lars via Lazarus wrote: > It just makes me scared that there is this hack/fix needed. No need to worry, the Lazarus code is outdated. That fix is already in FPC 2.6.4 too, and any FPC release after that. I've been using SimplyIPC for many things and it has worked very well.

Re: [Lazarus] LHelp or help systems that also work on..

2016-11-20 Thread Graeme Geldenhuys via Lazarus
On 2016-11-20 06:16, Lars via Lazarus wrote: > Docview is an fpGui based project? Yes, and it comes standard with fpGUI. I've also created some pre-built binaries, available on SourceForge for download. Regards, Graeme -- ___ Lazarus mailing list La

Re: [Lazarus] Lazarus and MySQL 5.7

2016-11-19 Thread Graeme Geldenhuys via Lazarus
On 2016-11-19 03:25, Terry A. Haimann via Lazarus wrote: > What version of Lazarus can connect to MySQL 5.7 using TSqlConnector? Technically it's got nothing to do with the Lazarus version, but rather the FPC version. FPC is the one where the database components are defined, in the FCL. Regards,

Re: [Lazarus] LHelp or help systems that also work on..

2016-11-18 Thread Graeme Geldenhuys via Lazarus
On 2016-11-18 13:16, Graeme Geldenhuys via Lazarus wrote: > ps: > There is a known bug in Delphi 7 where Application.OnHelp is never > called. Later Delphi versions have fixed this bug. If the application > is compiled with Delphi 7, then you need to simply catch the WM_HELP &g

Re: [Lazarus] LHelp or help systems that also work on..

2016-11-18 Thread Graeme Geldenhuys via Lazarus
On 2016-11-18 11:36, Lars via Lazarus wrote: > Since I use both Lazarus and Delphi and never just use one or the other, > is there any help system that works in both delphi and Lazarus? Yes, Docview and INF help can be used in both cases. I already posted a full example project for Lazarus LCL app

Re: [Lazarus] Help System with Chromium Embedded component

2016-11-11 Thread Graeme Geldenhuys via Lazarus
On 2016-11-11 23:39, Lars via Lazarus wrote: > Would be interesting if there was a firefox/chrome plugin that converted a > website to be all black and white to help people, or maybe grayscale. But > good point. Opera 12.x (and earlier) had that built in. Newer versions of Opera (based on Chrome)

Re: [Lazarus] Help System with Chromium Embedded component

2016-11-11 Thread Graeme Geldenhuys via Lazarus
On 2016-11-11 23:09, Lars via Lazarus wrote: >> You can always use any other port >1024 for that. > > No issues with default firewalls? Last thing I want, is a customer having > to futz around with router firewall, windows firewall, etc. It was 4 years ago, but as far as I remember, we didn't ha

Re: [Lazarus] Help System with Chromium Embedded component

2016-11-11 Thread Graeme Geldenhuys via Lazarus
On 2016-11-11 22:46, Lars via Lazarus wrote: > Would the current help systems be even capable of looking like that? Must > be just a few div boxes. Really simple, interesting color shades. No > fancy garbage, just simple boxes of text. I don't know how much CSS the HTML component in LHelp suppor

Re: [Lazarus] Help System with Chromium Embedded component

2016-11-11 Thread Graeme Geldenhuys via Lazarus
On 2016-11-11 01:11, Lars via Lazarus wrote: > port alternative to port 80 which may be blocked by firewall. That I would > want to avoid, as it's just another hassle. You can always use any other port >1024 for that. I've implemented a commercial application that works mostly online, but we wante

Re: [Lazarus] Help System with Chromium Embedded component

2016-11-11 Thread Graeme Geldenhuys via Lazarus
On 2016-11-11 00:47, Lars via Lazarus wrote: > But, could one compile fpc code to javaapplet jvm bytecode? FPC 3.x can compile to Java Bytecode, but I've never actually tried it myself. Regards, Graeme -- ___ Lazarus mailing list Lazarus@lists.lazar

Re: [Lazarus] Help System with Chromium Embedded component

2016-11-11 Thread Graeme Geldenhuys via Lazarus
On 2016-11-11 00:53, Lars via Lazarus wrote: > I do appreciate simple documentation without eye > candy crap. :) Just take a look at Apple's OSX built-in help (not the online content). It is minimalist and mostly text - with a hint of good typography. It works! Microsoft Windows 7 does very simil

Re: [Lazarus] Help System with Chromium Embedded component

2016-11-09 Thread Graeme Geldenhuys via Lazarus
On 2016-11-09 14:57, Marco van de Voort via Lazarus wrote: > But I think lhelp still has enough leeway, and I think Graeme greatly > overexaggerates the problems. And my comparison screenshots (from earlier) show the problem as clear as day. Your comment about "LHelp works fine with fpdoc generate

Re: [Lazarus] persistent bookmarks in the IDE?

2016-11-09 Thread Graeme Geldenhuys via Lazarus
On 2016-11-09 13:49, Mattias Gaertner via Lazarus wrote: > Bookmarks are stored in the session (usually the lps file). Thanks, I'll dig in there and see what is going wrong. Regards, Graeme -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org h

Re: [Lazarus] persistent bookmarks in the IDE?

2016-11-09 Thread Graeme Geldenhuys via Lazarus
On 2016-11-09 13:36, Ondrej Pokorny via Lazarus wrote: > My bookmarks are saved when saving the project. I am not aware of an > option to disable/enable it. Good to know the functionality exists. Now to find out why it doesn't work here - both Linux and FreeBSD systems. Do you know where the boo

[Lazarus] persistent bookmarks in the IDE?

2016-11-09 Thread Graeme Geldenhuys via Lazarus
Hi, Is it possible for Lazarus (trunk) to remember bookmark locations between restarts? Or save bookmarks per project? At the moment I loose all my bookmarks while doing a restart, or quickly switching to another project to lookup something and then switch back to what I was working on. Regard

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

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

[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

[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

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

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

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

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

[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

<    1   2   3   4   5   6   >