Re: [Lazarus] Quick Video: A Web Application

2017-04-19 Thread Graeme Geldenhuys via Lazarus
On 2017-04-19 14:54, Anthony Walter via Lazarus wrote: > This isn't a free pascal or lazarus project, but something I wrote using > typescript quite a while ago. That's very impressive. I'm still amazed at what is actually possible via a web browser - other than just viewing web pages. Thanks for

Re: [Lazarus] Modifying the "File -> New Unit" template

2017-04-11 Thread Graeme Geldenhuys via Lazarus
On 2017-04-11 11:46, Mattias Gaertner via Lazarus wrote: > Right click in the IDE coolbar on the "New unit" button to select > another template. I meant I want to modify the code that Lazarus IDE gives once I click “File -> New Unit”. I don't want a completely different template. eg: this is the

[Lazarus] Modifying the "File -> New Unit" template

2017-04-11 Thread Graeme Geldenhuys via Lazarus
Hi, Is there a way to modify the standard “file -> new unit” code template that is used? Or is what we see hard-coded into the Lazarus IDE executable? I'm using Lazarus 1.7 r52715 FPC 2.6.4 x86_64-linux-gtk 2 Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal

Re: [Lazarus] Startup environment: to Gui, or not to GUI?

2017-04-11 Thread Graeme Geldenhuys via Lazarus
On 2017-04-11 10:15, Mark Morgan Lloyd via Lazarus wrote: > Is there an orthodox way that a Lazarus program can very early on look > at how it's been started and decide whether it can usefully fall back to > a text mode, e.g. to display help info on stdout rather than a messagebox? In the past

[Lazarus] Lazarus IDE uses old keyboard layout after OS changed it.

2017-03-29 Thread Graeme Geldenhuys via Lazarus
Hi, Is this a known issues? If I run Lazarus IDE (LCL-GTK2) on either Linux or FreeBSD, and say my keyboard layout is set to US. Now if I change the keyboard layout to say Dvorak while Lazarus IDE is open, then Lazarus IDE still uses the US layout (I think), while the rest of the OS and any

Re: [Lazarus] Where can I get the component lazpdf?

2017-03-24 Thread Graeme Geldenhuys via Lazarus
On 2017-03-24 18:34, frans via Lazarus wrote: > There is a new component available to create pdf fies, lazpdf. I don't know about the code from the magazine, but I can say that there is now a PDF engine included as standard with FPC 3.0.2 and later, in the fcl-pdf directory. Regards, Graeme

Re: [Lazarus] https website for Lazarus

2017-03-16 Thread Graeme Geldenhuys via Lazarus
On 2017-03-13 21:50, Marc Weustink via Lazarus wrote: > It is one of my plans to enable it for the lazarus sites. And now with Firefox 52, it gives you a "in your face" warning that you are logging into a unsecure website. Only only the crossed out padlock in the URL, but also a popup warning

Re: [Lazarus] https website for Lazarus

2017-03-16 Thread Graeme Geldenhuys via Lazarus
On 2017-03-14 12:07, Anthony Walter via Lazarus wrote: > If you have a subject you want people to explore, you need to > represent it well. Apple does a lot of things wrong (these days), but they also do a lot of things right when it comes to design. Using good Typography (via CSS only) can look

Re: [Lazarus] https website for Lazarus

2017-03-14 Thread Graeme Geldenhuys via Lazarus
On 2017-03-14 10:38, Anthony Walter via Lazarus wrote: > I just thought I'd share my experience with http://www.getlazarus.org > I added https to it a few months ago using let's encrypt. The experience > was pretty easy. Indeed, Let's Encrypt is really easy to use and implement. > The only

Re: [Lazarus] JCF not formatting uses clause

2017-03-13 Thread Graeme Geldenhuys via Lazarus
On 2017-03-13 13:06, Graeme Geldenhuys via Lazarus wrote: > This seems like a bug in JCF (include with Lazarus), because I can run > the original jcfGui.exe binary from the original JCF project on > SourceForge, and it correctly formats the below code, and aligns the > uses clause li

[Lazarus] JCF not formatting uses clause

2017-03-13 Thread Graeme Geldenhuys via Lazarus
Hi I have the following unit. No matter what I try, I can't get JCF to correct the indentation of the uses clause shown below. Anybody know what setting I need to change - or is this not supported in Lazarus's JCF? This seems like a bug in JCF (include with Lazarus), because I can run the

Re: [Lazarus] Mac users: High-DPI

2017-03-10 Thread Graeme Geldenhuys via Lazarus
On 2017-03-09 21:25, Alexey via Lazarus wrote: > No problem so? Something different. See attached screenshot. You got to laugh at Canonical (ie: Ubuntu) for thinking this is a good design! The menu and window title all being garbled. Can't they just leave menus the way they were - or if they

Re: [Lazarus] Animation library

2017-03-08 Thread Graeme Geldenhuys via Lazarus
On 2017-03-08 18:35, Lars via Lazarus wrote: > When I finally get around to installing freebsd, if I can remember. JWM runs on any X11 system... Linux, FreeBSD, Solaris etc. But yes, FreeBSD is a brilliant choice. I much prefer it over Linux too. > What do you do when you need to run a Windows

Re: [Lazarus] Animation library

2017-03-08 Thread Graeme Geldenhuys via Lazarus
I replied in a private email. Regards, Graeme -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Animation library

2017-03-01 Thread Graeme Geldenhuys via Lazarus
On 2017-03-01 19:47, José Mejuto via Lazarus wrote: > I wish to know if somebody think this is useful, to expand it, or just > don't take more time developing it and keep it to my projects. By all means please do continue if you have the time and energy. :) We were simply testing your work -

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

2017-02-28 Thread Graeme Geldenhuys via Lazarus
On 2017-02-28 19:37, Lars via Lazarus wrote: > can someone explain why you would use "$IF defined" instead of $IFDEF... In that case a piece of code applied to both Linux and FreeBSD platforms. I didn't see the need to duplicate the code with IFDEF statements - thus making code management more

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

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

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

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

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

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

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

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

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

[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

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.

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

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

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

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

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

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,

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

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

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

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 |

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

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

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

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

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 @

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

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

<    1   2   3   4   5   >