Re: [Lazarus] debugging interface method calls

2017-02-01 Thread Graeme Geldenhuys via Lazarus
On 2017-02-01 21:09, Ondrej Pokorny via Lazarus wrote: > > Having a real pascal debugger would be the killer feature. Indeed! > Do you know the state of fpDebug? Who does develop it? Do you? > https://github.com/graemeg/fpdebug doesn't show much recent progress :( The one on my github page

Re: [Lazarus] debugging interface method calls

2017-02-01 Thread Graeme Geldenhuys via Lazarus
On 2017-02-01 03:36, David Emerson via Lazarus wrote: > It seems that when I am stepping through my code, when there is an > interface function call, the debugger will not step into the function call. > > Is there a way to make it step in? No, and that is very annoying indeed. I believe I

Re: [Lazarus] debugging interface method calls

2017-02-01 Thread Graeme Geldenhuys via Lazarus
On 2017-02-01 20:27, David Emerson via Lazarus wrote: > I guess I should try fpdebug! That was my hope too, but fpdebug is not supported on FreeBSD (what I use). It seems only Linux and Windows is currently supported. :-/ Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using

Re: [Lazarus] debugging interface method calls

2017-02-01 Thread Graeme Geldenhuys via Lazarus
On 2017-02-01 20:27, David Emerson via Lazarus wrote: > > http://mantis.freepascal.org/view.php?id=30541 Thanks - no idea how you found that. :) You (or somebody else), please teach me how searching in Mantis works. The same goes for the Lazarus Forum. I can never find anything I search for -

Re: [Lazarus] SVG Editor or Viewer

2017-01-30 Thread Graeme Geldenhuys via Lazarus
On 2017-01-30 04:39, Lars via Lazarus wrote: > Does anyone know of any Lazarus projects or code that views SVG files... As Adrian mentioned, AggPas (native Pascal port of Anti-Grain Geometry) supports SVG and an example is included. fpGUI's repository includes the most up to date (features and

Re: [Lazarus] Feature Request: more intelligent code completion

2017-01-30 Thread Graeme Geldenhuys via Lazarus
On 2017-01-30 11:37, Michael Van Canneyt wrote: > I'm not sure that I want the IDE to modify another class than the one I am > working in at the moment, when I press "code completion" ? Well, then maybe introduce another action - an intermediate step that the developer must confirm. Again,

[Lazarus] Feature Request: more intelligent code completion

2017-01-30 Thread Graeme Geldenhuys via Lazarus
Hi, I've using the Eclipse IDE for a while now, and the developer is really spoilt with intelligent code/class completion. I'm wondering if Lazarus IDE could benefit of some of those features too. For example - improved (more intelligent) code completion. I have this code:

Re: [Lazarus] Feature Request: more intelligent code completion

2017-01-30 Thread Graeme Geldenhuys via Lazarus
On 2017-01-30 11:47, Mattias Gaertner via Lazarus wrote: > > It did correctly deduce the datatype Boolean, did it not? Yes it did. > The only missing thing is to place it at the right place, Indeed. The code I wrote was "BuildProject.Verbose := ...", so it should query the data type of the

Re: [Lazarus] Running an app on boot

2017-01-25 Thread Graeme Geldenhuys via Lazarus
On 2017-01-25 13:26, Paul Breneman via Lazarus wrote: > Or switch to a Raspberry Pi and use https://Ultibo.org ? And then you can also use fpGUI Toolkit to keep things small and “lite” (no large 3rd party libraries required or there dependencies. eg: GTK, Qt etc). Regards, Graeme --

[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

Re: [Lazarus] Format code on Save

2017-01-25 Thread Graeme Geldenhuys via Lazarus
On 2017-01-25 14:15, Mattias Gaertner via Lazarus wrote: > on the current source editor and uses ReplaceLines, so it keeps all > marks and adds one undo step. Nice. That is much better indeed. So a 'before save' would then be the useful one. > An 'after save' could be added, but that would mean

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

Re: [Lazarus] Running an app on boot

2017-01-25 Thread Graeme Geldenhuys via Lazarus
On 2017-01-25 15:28, Santiago A. via Lazarus wrote: > fpgui needs a "graphic environment", Windows or X (or Mac?) . Doesn't it? There is a port to Ultibo that doesn't require X11 or GDI. Take a look at the section “Ultibo with fpGUI support” on http://fpgui.sourceforge.net/community.shtml

[Lazarus] Laz v1.3 Ctrl+Click "jump to implementation" behaviour

2017-02-22 Thread Graeme Geldenhuys via Lazarus
Hi, I know v1.3 is an old version, but for specific reasons I can't upgrade (yet). Anyway, in this version of Lazarus (running under Windows), if I Ctrl+LeftClick, it jumps to the declaration of a method/procedure/function, and not actual implementation. Now in my Lazarus v1.3 I did see under

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

2017-02-22 Thread Graeme Geldenhuys via Lazarus
On 2017-02-22 11:49, Jürgen Hestermann via Lazarus wrote: > > The shortcut is Alt+G. > > Yes, you are right. It's Alt+G (not Ctrl+G). Technically it's user configurable, so can be anything. ;-) Mine is set as Ctrl+G. :) Regards, Graeme -- ___

Re: [Lazarus] Laz v1.3 Ctrl+Click "jump to implementation" behaviour

2017-02-22 Thread Graeme Geldenhuys via Lazarus
On 2017-02-22 10:35, Ondrej Pokorny via Lazarus wrote: > It wasn't a bug but a missing feature. You surely can find the issue on > mantis Fantastic, I'll take a look in Mantis. Thanks. Regards, Graeme -- ___ Lazarus mailing list

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

2017-02-22 Thread Graeme Geldenhuys via Lazarus
On 2017-02-14 17:03, Jürgen Hestermann via Lazarus wrote: > Is there a restriction to show only functions of level depth 1? > If yes, why? > I did not found any options influencing this. I tested with Lazarus v1.3 and Lazarus v1.7. I can confirm that older Lazarus versions seem to limit itself to

Re: [Lazarus] Cannot commit to ccr

2017-02-20 Thread Graeme Geldenhuys via Lazarus
On 2017-02-20 09:25, Werner Pamler via Lazarus wrote: > Now I had the (straightforward...) idea to look for "sourceforge > service", and there's a lot of tickets on this issue > (https://sourceforge.net/p/forge/site-support/). So, hopefully they will > fix it soon... If only everybody used

Re: [Lazarus] Format code on Save

2017-02-23 Thread Graeme Geldenhuys via Lazarus
On 2017-02-23 09:08, Mattias Gaertner via Lazarus wrote: >> Also, what does the AddHandlerOnSaveEditorFile()'s "AtLast" parameter >> mean and do? > > Prepend or append to the list of handlers. Ah, thank. That would come in handy if the IDE Options ever have a GUI to manage such actions. eg:

Re: [Lazarus] How to get access to TKeyCommandRelationList via the IDE Interfaces?

2017-02-22 Thread Graeme Geldenhuys via Lazarus
On 2017-02-22 23:45, Mattias Gaertner via Lazarus wrote: > uses IDECommands; > > Cmd:=IDECommandList.FindCommandByName('name'); > ExecuteIDECommand(Sender,Cmd.Command); Umm, that's exactly what I tried, but in never finds the command. The code is as follows: ===

Re: [Lazarus] How to get access to TKeyCommandRelationList via the IDE Interfaces?

2017-02-22 Thread Graeme Geldenhuys via Lazarus
On 2017-02-22 23:53, Graeme Geldenhuys via Lazarus wrote: > Umm, that's exactly what I tried, but in never finds the command. As a work-around I went through the MenuIntf, found the JCF menu. Iterated that until I found the 'jcfAbout' menu. I then call it's MenuItem.Click() method. Pretty u

Re: [Lazarus] How to get access to TKeyCommandRelationList via the IDE Interfaces?

2017-02-22 Thread Graeme Geldenhuys via Lazarus
On 2017-02-23 00:08, Mattias Gaertner via Lazarus wrote: > You can list all registered names with Ah, that was very useful thanks. I managed to fin the 'jcfCurrentEditorWindow' command, but there doesn't seem to be a 'jcfAbout' command. So the latter will explain why my "proof of concept" didn't

Re: [Lazarus] Format code on Save

2017-02-22 Thread Graeme Geldenhuys via Lazarus
On 2017-01-27 14:37, Mattias Gaertner via Lazarus wrote: > I added the event. > > uses LazIDEIntf > > LazarusIDE.AddHandlerOnSaveEditorFile(@YourEvent); A bit late, but thank you for adding that functionality. I've now managed to create my IDE add-on and it works. But I noticed that with

Re: [Lazarus] Format code on Save

2017-02-23 Thread Graeme Geldenhuys via Lazarus
On 2017-02-23 07:52, Mattias Gaertner via Lazarus wrote: >> But I noticed that with every save (Ctrl+S), the YourEvent gets called >> twice? Any idea why that is, and if it was by design or a bug? > > Check parameter SaveStep. I tried both sefsBeforeWrite and sefsAfterWrite - it made no

[Lazarus] Feature Request: IDE user defined recorded macros

2017-02-23 Thread Graeme Geldenhuys via Lazarus
Hi, Are there any plans to add user recorded macros support to Lazarus IDE? Many text editors have this built-in, and allows for a huge amount of “extending the editor’s features” without modify the underlying program's source code. We can simply record a sequence of actions, give it a name,

Re: [Lazarus] Feature Request: IDE user defined recorded macros

2017-02-23 Thread Graeme Geldenhuys via Lazarus
Scratch that! I should have done better searching before I posted. I apparently asked a similar question back in 2015 and found my answer here... http://wiki.freepascal.org/IDE_Window:_Editor_Macros Sorry for the noise. :-/ Regards, Graeme --

Re: [Lazarus] Run parameters

2017-02-11 Thread Graeme Geldenhuys via Lazarus
On 2017-02-11 10:22, Michael Van Canneyt via Lazarus wrote: > Logically, I would I think these parameters belong in the .lps file ? I fully agree, they should be stored in the .lps - I don't care about lists or build modes and all that jazz. The accidental committing of user credentials into a

Re: [Lazarus] $IF for Linux and FreeBSD platforms?

2017-02-16 Thread Graeme Geldenhuys via Lazarus
On 2017-02-16 10:54, Graeme Geldenhuys via Lazarus wrote: > The IDE shows that CodeTools knows about the FreeBSD variable, but the > code doesn't seem to work, Doing the following though does work, but it means I have to duplicate all $DEFINE lines in two places, which I don't really want

[Lazarus] $IF for Linux and FreeBSD platforms?

2017-02-16 Thread Graeme Geldenhuys via Lazarus
Hi, Is the following allowed in LCL specific code? {$IFDEF LCLGTK2} {$IF declared(Linux) or declared(FreeBSD)} {$define something} {$endif} {$endif} The IDE shows that CodeTools knows about the FreeBSD variable, but the code doesn't seem to work, because later in the code the

Re: [Lazarus] $IF for Linux and FreeBSD platforms?

2017-02-16 Thread Graeme Geldenhuys via Lazarus
On 2017-02-16 11:18, Ondrej Pokorny via Lazarus wrote: > Well, you mixed up DEFINED and DECLARED macros. Dope!!! Thanks for spotting that. I need more coffee. ;-) Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP

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

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

2017-02-27 Thread Graeme Geldenhuys via Lazarus
On 2017-02-27 12:55, José Mejuto via Lazarus wrote: > It has been tested with Lazarus 1.6 and fpc 3.0.0 in Windows, but Linux > should work also. I tried to compile the "Animated Controls Sample" project and got the following errors under 64bit FreeBSD using FPC 3.0.1

Re: [Lazarus] Animation library

2017-02-27 Thread Graeme Geldenhuys via Lazarus
On 2017-02-27 13:53, José Mejuto via Lazarus wrote: > > Correct, swapped compilers :-( a few days ago :-(. Just change > declaration of NRect from TRect to TAnimationRect and a bit below the: Before I read your reply I simply adjusted the code as follows (which worked): NRect.Right :=

[Lazarus] Jedi Code Formatter (JCF) issues

2017-02-28 Thread Graeme Geldenhuys via Lazarus
Hi, Is there an actual JCF (included with Lazarus) maintainer? I've recently been using it quite a bit and noticed a couple of problems. I'll obviously try and fix them myself (free time is very limited, but I'll try my best). The two most important ones for me: * Some code formatting is not

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

2017-02-27 Thread Graeme Geldenhuys via Lazarus
On 2017-02-27 07:25, Kostas Michalopoulos via Lazarus wrote: > IMO the > best approach for vector icons is what Haiku OS is doing by using a custom > icon format that is designed for small sizes and -more importantly- > different elements in an icon can have a LOD range Indeed, Haiku came up

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

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

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

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 I c

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

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

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

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

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. :)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[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

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

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

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

[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

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

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

[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

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

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

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

[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

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

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

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

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

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

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

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

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

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

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

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

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

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

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 @

  1   2   3   4   >