Re: [Lazarus] TMemDataset.Filename property in Lazarus

2017-10-09 Thread Graeme Geldenhuys via Lazarus
On 2017-10-09 09:11, Michael Van Canneyt via Lazarus wrote: Because there is no designated extension. Be Delphi-compatible and use *.cds maybe? ;-) Jokes aside - it would be more useful using any designated extension than simply "all files". The latter is way too vague. Regards, Graeme -

Re: [Lazarus] Developing a WidgetSet

2017-10-09 Thread Graeme Geldenhuys via Lazarus
On 2017-10-09 07:49, Lubos Pintes via Lazarus wrote: For example, even buttons are not accessible, on the IDE welcome page, screen reader reports only "button", instead of "StartIDE button", "Help button", etc. Yes, the button itself is native, but is broken. It seems it is very LCL-widgetset d

[Lazarus] TBufDataset.Filename property in Object Inspector

2017-10-08 Thread Graeme Geldenhuys via Lazarus
Hi, Following on from my previous TMemDataset.Filename issue. With TBufDataset, there is no property editor associated with the FileName property. Is this just an oversight or done for a specific reason? An the same issue as with TMemDataset.Filename. Clearly it expects a specific file forma

Re: [Lazarus] Developing a WidgetSet

2017-10-08 Thread Graeme Geldenhuys via Lazarus
On 2017-10-08 21:09, Lubos Pintes via Lazarus wrote: If I want to add a functionality like accessibility to WidgetSet, which package could I use, lcl.lpk, or lclbase.lpk? I believe "accessibility" is beyond the scope of the LCL. It is expected that the underlying GUI toolkit (Qt, GTK, fpGUI et

[Lazarus] TMemDataset.Filename property in Lazarus

2017-10-08 Thread Graeme Geldenhuys via Lazarus
Hi, Playing around with TMemDataset, I dropped it on a form, then clicked "..." button of the FileName property in the Object Inspector. The file dialog shows that I can select ANY file, so I selected a PNG file and set Active = True. ;-) NO surprise, that didn't work as expected. Incorrect d

Re: [Lazarus] chm doc generation scripts deleted?

2017-10-08 Thread Graeme Geldenhuys via Lazarus
On 2017-10-08 11:39, Marco van de Voort via Lazarus wrote: Is there some new recommended way? Most likely because a "documentation build script" is not needed any more. Since fpdoc supports project files (--project parameter), such build scripts became obsolete - at least that is true for the

Re: [Lazarus] Delphi, Kylix or Lazarus multi-form DB app example

2017-10-05 Thread Graeme Geldenhuys via Lazarus
On 2017-10-05 11:42, Michael Van Canneyt wrote: The series "Large database applications in delphi". The strategy described there is used in a set of applications in which the main one has over 2000 forms. Thank you Michael, that set of articles were immensely useful - as all your articles alwa

Re: [Lazarus] Delphi, Kylix or Lazarus multi-form DB app example

2017-10-05 Thread Graeme Geldenhuys via Lazarus
On 2017-10-05 11:42, Michael Van Canneyt wrote: The same is true in tiOPF, when using mediators: At least I get a compile time error (most of the times), not a runtime error. And with tiOPF there was only one location to fix. With the code I played with last night (where the table columns

Re: [Lazarus] Delphi, Kylix or Lazarus multi-form DB app example

2017-10-05 Thread Graeme Geldenhuys via Lazarus
On 2017-10-05 11:10, leledumbo via Lazarus wrote: Because that defeats the purpose of a demo project: A "real world" example (or close to it) would also be a very valuable source of information. Education for the masses. In the tiOPF project we stuck to small-and-to-the-point demos for many y

Re: [Lazarus] Delphi, Kylix or Lazarus multi-form DB app example

2017-10-05 Thread Graeme Geldenhuys via Lazarus
On 2017-10-05 10:09, Graeme Geldenhuys via Lazarus wrote: I couldn't even find examples of such demos on the internet, and I've spent more time searching than what I intended. What I meant to add to that is that I find it very strange that no such demos are available. After all,

[Lazarus] Delphi, Kylix or Lazarus multi-form DB app example

2017-10-05 Thread Graeme Geldenhuys via Lazarus
Hi, I'm just curious. Kylix and Delphi (at least v7) comes with excellent documentation and quite a few example projects. But not a single DB example shows a multi-form database application. They are all just a single main form demo. I couldn't even find examples of such demos on the internet

Re: [Lazarus] Documentation in Lazarus

2017-10-03 Thread Graeme Geldenhuys via Lazarus
On 2017-10-03 23:06, Wolf via Lazarus wrote: As an editor, I'd prefer LibreOffice, since I am familiar with it. My experience with LaTeX is limited Having extensive experience with both for many years I can say that with some decent preparation work you can generate documents with LibreOffice

Re: [Lazarus] Documentation in Lazarus

2017-10-03 Thread Graeme Geldenhuys via Lazarus
On 2017-10-02 08:04, Michael Van Canneyt via Lazarus wrote: LaTeX ? The original poster was vague about what he wants, but he did mention "compact" - so if we assume a compact documentation system, then LaTeX is not it. Installing LaTeX takes up about 200-400MB depending on the system. ;-)

Re: [Lazarus] fpReport - can not render pagefooter

2017-09-29 Thread Graeme Geldenhuys via Lazarus
On 2017-09-28 12:40, Michael Van Canneyt via Lazarus wrote: because there is also the 8.3 filename support that interferes. Oh yeah, I completely forgot about those platforms. :-/ Regards, Graeme -- ___ Lazarus mailing list Lazarus@lists.lazarus-i

Re: [Lazarus] fpReport - can not render pagefooter

2017-09-29 Thread Graeme Geldenhuys via Lazarus
On 2017-09-28 11:05, Andrea Mauri via Lazarus wrote: What are the minimum requirements to use fpreport? Can I use it with laz 1.6.2 and fpc 3.0.0? I don't track the lazarus version I use, but I'm using fpreport (from FPC Trunk) with FPC 2.6.4. On a side note: I did notice recently that the

Re: [Lazarus] fpReport - can not render pagefooter

2017-09-27 Thread Graeme Geldenhuys via Lazarus
On 2017-09-27 09:38, Andreas Frieß via Lazarus wrote: What is my mistake of understanding ? You made a couple of mistakes and highlighted a bug in the PDF exporter. Mistakes: 1. You never registered the standard page sizes with: PaperManager.RegisterStandardSizes; 2. Your report u

Re: [Lazarus] Converting all code to use UnicodeString

2017-09-27 Thread Graeme Geldenhuys via Lazarus
On 2017-09-27 03:51, Marcos Douglas B. Santos via Lazarus wrote: A constant that can change... Yeah, that concept still blows my mind. [figuratively speaking] They should shoot the developer that came up with that idea - and the team leader that approved it. Regards, Graeme -- _

Re: [Lazarus] [ANN] Xavier for XML — Compatible with FPC and Delphi

2017-09-24 Thread Graeme Geldenhuys via Lazarus
On 2017-09-24 09:02, Graeme Geldenhuys via Lazarus wrote: Of course I would normally agree with that, but if you look at the Java annotations in that article Just curious, I know C# has annotations support too. Does Delphi? Regards, Graeme

Re: [Lazarus] [ANN] Xavier for XML — Compatible with FPC and Delphi

2017-09-24 Thread Graeme Geldenhuys via Lazarus
On 2017-09-23 12:36, Michael Van Canneyt wrote: That's actually a step backwards. Because it breaks the separation of object and storage. Of course I would normally agree with that, but if you look at the Java annotations in that article - they are not code per-se, but more like small code co

Re: [Lazarus] [ANN] Xavier for XML — Compatible with FPC and Delphi

2017-09-24 Thread Graeme Geldenhuys via Lazarus
On 2017-09-24 08:31, Sven Barth via Lazarus wrote: Holy Trinity of programming (with the third being operating systems) I personally am not surprised as writing any of those three is a hard task, much harder than e.g. a documentation generator and we definitely don't have the manpower for that.

Re: [Lazarus] [ANN] Xavier for XML — Compatible with FPC and Delphi

2017-09-23 Thread Graeme Geldenhuys via Lazarus
On 2017-09-23 12:36, Michael Van Canneyt wrote: FPC doesn't even cover the most basic of things - no decent debugger that can handle all the Object Pascal language features. :-/ > Of course not. FPC is not a debugger, it is a compiler. Strange then that FPC includes many other tools like docu

Re: [Lazarus] [ANN] Xavier for XML — Compatible with FPC and Delphi

2017-09-23 Thread Graeme Geldenhuys via Lazarus
On 2017-09-21 04:06, Marcos Douglas B. Santos via Lazarus wrote: Nah... most of them know nothing about true OOP. They believe that an object is a "record" with getters and setters... anyway. If I understand you correctly... referring to Java developers, then that is a totally wrong generalis

Re: [Lazarus] LazReport - Where the width of the designer page come from?

2017-09-17 Thread Graeme Geldenhuys via Lazarus
On 2017-09-17 10:50, Gabor Boros via Lazarus wrote: Width of A4 is 210mm. 210/25.4*96=793.7. Yeah, fpReport is the only one with a sane value. :) Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyu

Re: [Lazarus] FPReport file names

2017-09-14 Thread Graeme Geldenhuys via Lazarus
On 2017-09-13 21:32, Ondrej Pokorny via Lazarus wrote: And I really hate abbreviations since I fail to remember them.:) That is indeed a problem, especially with 600+ tables. eg: What does prefix "I" or "IO" or "IN" mean, when you have 30+ tables starting with the letter "I". Personally I f

Re: [Lazarus] FPReport file names

2017-09-13 Thread Graeme Geldenhuys via Lazarus
On 2017-09-13 10:40, Ondrej Pokorny via Lazarus wrote: Furthermore code tools can handle dotted units (I added the support:) ) and namespaces will be handled as well once FPC supports them. Excellent!!! The development tools are waiting for the underlying compiler to catch up. Only in the ope

Re: [Lazarus] FPReport file names

2017-09-13 Thread Graeme Geldenhuys via Lazarus
On 2017-09-13 19:17, Michael Van Canneyt via Lazarus wrote: Similarly, every field in a database I create is always uniquely named. So if I ask "where is field TX_ID' I get exactly 1 field, in 1 table. Graeme Geldenhuys can testify that I use this practice even in very big databases. I can con

Re: [Lazarus] FPReport file names

2017-09-13 Thread Graeme Geldenhuys via Lazarus
On 2017-09-13 14:33, Mattias Gaertner via Lazarus wrote: Try "org.|" with the Delphi code insight. Don't get me started on that again. The Delphi IDE is horribly horribly broken in comparison to Lazarus IDE. It two weeks of working with Delphi XE the other week I managed to find 13 bugs in th

Re: [Lazarus] FPReport file names

2017-09-13 Thread Graeme Geldenhuys via Lazarus
On 2017-09-13 10:30, Michael Van Canneyt via Lazarus wrote: When using CamelCase properly, you don't need _ or . at all. That would be my preference too. I love CamelCase - though personally I lowercase my unit names (files), but CamelCase the "unit xxx" line inside the unit. Now the next q

Re: [Lazarus] FPReport file names

2017-09-13 Thread Graeme Geldenhuys via Lazarus
On 2017-09-13 09:44, Michael Van Canneyt via Lazarus wrote: As long as there are no command-line switch and directive for setting namespaces, they are completely useless. Like I said, FPC still needs a bit more work before namespaces become more useful (or workable like Delphi intended). >

Re: [Lazarus] FPReport file names

2017-09-13 Thread Graeme Geldenhuys via Lazarus
On 2017-09-12 19:01, Alexey via Lazarus wrote: It is new. Please rename (it's easy for new component) all files: usually its good with one prefix. E.g. fprep_*.*. hahaha... I had the units like that, using underscores. eg: fpreport_export_aggpas.pas, fpreport_export_fpimage.pas etc. Michael

Re: [Lazarus] Why is there no announcement of Lazarus event

2017-09-08 Thread Graeme Geldenhuys via Lazarus
On 2017-09-08 17:16, Marc Weustink via Lazarus wrote: The link you gave is setup 2 days ago, the same time the editor contacted me for some ideas. Imo to early for an announcement Fair enough. I was contacted yesterday - to be one of the presenters, but unfortunately it was too short notice

Re: [Lazarus] Why is there no announcement of Lazarus event

2017-09-08 Thread Graeme Geldenhuys via Lazarus
On 2017-09-08 13:03, Marc Weustink via Lazarus wrote: Which event are you referring to? http://www.blaisepascal.eu/agenda/lazarus_conference.php Dated for 14 October 2017. Regards, Graeme -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.or

[Lazarus] Why is there no announcement of Lazarus event

2017-09-08 Thread Graeme Geldenhuys via Lazarus
Just wondering? Or is it still coming? Regards, Graeme -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] fpReport -> Lazarus reportdsg.lpr

2017-08-21 Thread Graeme Geldenhuys via Lazarus
On 2017-08-21 10:47, Michael Van Canneyt via Lazarus wrote: The problem is of course that you normally do not want this in a reporting engine, where the looks are important. Exactly! Some reports could be very dependent on a specific font and font metrics for the layout (internal to fpReport a

Re: [Lazarus] fpReport -> Lazarus reportdsg.lpr

2017-08-21 Thread Graeme Geldenhuys via Lazarus
On 2017-08-21 10:35, Andreas Frieß via Lazarus wrote: It is possible to use a standard font and give a warning instead of fire an exception. Eg. Font not found, using standardfont instead ? I don't like that. First, how are you going to display the warning? Remember fpReport was des

Re: [Lazarus] fpReport -> Lazarus reportdsg.lpr

2017-08-21 Thread Graeme Geldenhuys via Lazarus
On 2017-08-21 10:18, Michael Van Canneyt wrote: /usr/local/share/fonts /usr/local/lib/X11/fonts fonts ~/.fonts Should indeed be easy to parse and handle... I'll make it so. I guess the best option would be to add it as an option API call, so if someb

Re: [Lazarus] fpReport -> Lazarus reportdsg.lpr

2017-08-21 Thread Graeme Geldenhuys via Lazarus
On 2017-08-21 09:54, Michael Van Canneyt via Lazarus wrote: These problems will only occur if you're using non-standard fonts. What if you wanted "self contained reports" eg like the demos in fpReport where we use fonts that are not available on all systems. eg: Windows doesn't come standard

Re: [Lazarus] fpReport -> Lazarus reportdsg.lpr

2017-08-21 Thread Graeme Geldenhuys via Lazarus
On 2017-08-21 09:18, Michael Van Canneyt via Lazarus wrote: The '../demos/fonts' and other hardcoded values are maybe not really a good idea:) For the life of me, I couldn't think of another solution. eg: you might have a headless reporting CGI app and needs to look for fonts in a specific lo

Re: [Lazarus] fpReport released

2017-08-21 Thread Graeme Geldenhuys via Lazarus
On 2017-08-21 07:35, Michael Van Canneyt via Lazarus wrote: and if you collect all sources that make up the various parts, the core engine and exporters should work even with 2.6.4. Last I tested, that definitely worked too. Regards, Graeme -- ___

Re: [Lazarus] fpReport released

2017-08-21 Thread Graeme Geldenhuys via Lazarus
On 2017-08-21 08:08, Ondrej Pokorny via Lazarus wrote: For LCL bitmap output (preview), I use EasyLazFreeType Michael explained it all in his reply. I would just like to add that the above EasyLazFreeType unit (if I remember correctly) is based on a very old Pascal implementation of FreeType

Re: [Lazarus] The new kid is growing up fast

2017-08-20 Thread Graeme Geldenhuys via Lazarus
On 2017-08-20 22:21, Lars via Lazarus wrote: Does it require WINE or anything obscure, which makes installing apps difficult for the end user? It doesn't use WINE as far as I know. As I understand it, it is similar to LCL in that the toolkit API implementation is very Windows API centric (obv

Re: [Lazarus] The new kid is growing up fast

2017-08-20 Thread Graeme Geldenhuys via Lazarus
On 2017-08-20 22:50, Lars via Lazarus wrote: Didn't you pull delphi out recently for some work you said? I meant I don't use Delphi in my own company or for personal projects. But if I do contracting work for a client that already uses Delphi, then of course I need to use Delphi too (until I

Re: [Lazarus] fpReport released

2017-08-20 Thread Graeme Geldenhuys via Lazarus
On 2017-08-20 21:16, Andreas Frieß via Lazarus wrote: The freetype dll searched by the fpreport was freetype-6.dll, but the actual freetype-2.3.5-1-bin.zip has only a freetype6.dll. (Renaming is not a problem for me) It seems FreeType has some inconsistencies with its releases and naming of th

Re: [Lazarus] fpReport released

2017-08-20 Thread Graeme Geldenhuys via Lazarus
On 2017-08-20 21:05, Andreas Frieß via Lazarus wrote: But is there a fcl-report package for Lazarus, because the web-demo asked me for ? Or should be an extra package for Lazarus planned ? There definitely was a fclfpreport.lpk package and the demo had a dependency on that. This was when ever

Re: [Lazarus] Reporting engine - What it's state?

2017-08-20 Thread Graeme Geldenhuys via Lazarus
On 2017-08-20 13:16, Tudor Hulban via Lazarus wrote: maybe the code could be released with these two bugs? ps: In case you didn't see the announcement, the fpReport code was released today. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.so

Re: [Lazarus] Reporting engine - What it's state?

2017-08-20 Thread Graeme Geldenhuys via Lazarus
On 2017-08-20 13:16, Tudor Hulban via Lazarus wrote: and also given the code maybe somebody can help with the fixes. I've already found the cause of the problem exporting custom elements to PDF. Not many will hit the error anyway, either way I'll correctly implement a fix tomorrow and post a

Re: [Lazarus] String vs WideString

2017-08-18 Thread Graeme Geldenhuys via Lazarus
On 2017-08-18 12:02, Michael Schnell wrote: To explain my mail above in plain Text: Nice. :-) And clever email clients will even "format" the plain text emails - looking much better than your original HTML version. See attached screenshot of how your last email looked like here. Regards,

Re: [Lazarus] String vs WideString

2017-08-18 Thread Graeme Geldenhuys via Lazarus
On 2017-08-18 09:16, Tony Whyman via Lazarus wrote: Damn, should remember never to copy and paste from Wikipedia! Or simply use "plain text" emails to this mailing list. It reduces size considerably, and is still perfectly readable (like it has been for the last 30 years in email communicatio

Re: [Lazarus] String vs WideString

2017-08-17 Thread Graeme Geldenhuys via Lazarus
On 2017-08-17 17:59, Ondrej Pokorny via Lazarus wrote: change my code so I could get rid of the "variable not initialized" whenever you used FillChar(). And what do you use? I implemented a FillMem() function that calls FillChar(). The parameter are differently defined. Then changed my code

Re: [Lazarus] String vs WideString

2017-08-17 Thread Graeme Geldenhuys via Lazarus
On 2017-08-17 13:40, Marcos Douglas B. Santos via Lazarus wrote: Sorry, but every single warning is a... warning... that needs to be resolved. I feel exactly the same. :-) It took me ages to figure out how to change my code so I could get rid of the "variable not initialized" whenever you u

Re: [Lazarus] String vs WideString

2017-08-16 Thread Graeme Geldenhuys via Lazarus
On 2017-08-16 23:46, Luca Olivetti via Lazarus wrote: I started using strings as communication buffers since delphi 2. There weren't even dynamic arrays then... Well, Link-Lists existed from the beginning of time. I used them plenty in my TP days, and adding, inserting, indexing etc was pretty

Re: [Lazarus] String vs WideString

2017-08-16 Thread Graeme Geldenhuys via Lazarus
On 2017-08-16 19:26, Luca Olivetti via Lazarus wrote: I mean, TBytes is just an "array of char". NO! Char can now mean a 1-byte char or a 2-byte char (I don't know how FPC plans to support Unicode surrogate pairs which will require 4-bytes). In the olden days (Delphi 7 and FPC 2.6.4) the Cha

Re: [Lazarus] String vs WideString

2017-08-16 Thread Graeme Geldenhuys via Lazarus
On 2017-08-16 18:35, Sven Barth via Lazarus wrote: You are wrong. The string types in 3.0.x and 3.1 are like this: Thanks for correcting me. I was thinking of the "$modeswitch unicodestring" option. Regards, Graeme -- ___ Lazarus mailing list La

Re: [Lazarus] GlobalMemoryStatus is Windows only, how to get installed RAM on Linux ?

2017-08-16 Thread Graeme Geldenhuys via Lazarus
On 2017-08-16 14:09, Michael Van Canneyt via Lazarus wrote: Your best options is most likely to read /proc/meminfo and parse the result. It contains a wealth of information. Just a side note: /proc/meminfo is specific to Linux, and doesn't apply to other Unix-like operating systems like So

Re: [Lazarus] String vs WideString

2017-08-16 Thread Graeme Geldenhuys via Lazarus
On 2017-08-16 11:05, Juha Manninen via Lazarus wrote: Unfortunately many other programmers had the same wrong idea or they were just lazy. The result anyway is a lot of broken UTF-16 code out there. Yeah, I see that even in commercial products and projects. It's very sad to see. Hence I always

Re: [Lazarus] String vs WideString

2017-08-16 Thread Graeme Geldenhuys via Lazarus
On 2017-08-16 09:43, Michael Schnell via Lazarus wrote: IMHO, any implementation of TStrings that forces a conversion (just because the class uses TStrings and not due to a logical demand), is a contradiction to providing code aware strings at all. But in FPC 3.x (using modern compiler modes -

Re: [Lazarus] String vs WideString

2017-08-15 Thread Graeme Geldenhuys via Lazarus
On 2017-08-15 23:41, Luca Olivetti via Lazarus wrote: A "string" was just a handy container for bytes so I think it was the right choice for storing, er, bytes. The type "String" has always been an alias to another type, and could mean many things. eg: ShortString, AnsiString, and now Unicode

Re: [Lazarus] String vs WideString

2017-08-15 Thread Graeme Geldenhuys via Lazarus
On 2017-08-15 20:22, Luca Olivetti via Lazarus wrote: Wait a minute, why "abuse"? After all, before code aware strings, an ansistring could store any kind of arbitrary data with no problem and no conversion, and made it extremely easy Just listen to what you are saying A string type and yo

Re: [Lazarus] The new kid is growing up fast

2017-08-15 Thread Graeme Geldenhuys via Lazarus
On 2017-08-15 12:35, Michael Schnell via Lazarus wrote: How to compare it against Lazarus ? No idea - I've only been watching the CrossVCL videos as milestones get reached. I've never tried CrossVCL personally, and don't use Delphi personally either (since 2006). Regards, Graeme -- fpGUI

Re: [Lazarus] String vs WideString

2017-08-15 Thread Graeme Geldenhuys via Lazarus
On 2017-08-15 18:29, Luca Olivetti via Lazarus wrote: but for 3rd party libraries/components (e.g. synapse comes to mind Then better start filing bug reports to all those 3rd party libraries and components - they have been abusing the system and will silently fail. Not to mention that FPC is

Re: [Lazarus] String vs WideString

2017-08-15 Thread Graeme Geldenhuys via Lazarus
On 2017-08-15 10:52, Michael Van Canneyt via Lazarus wrote: The only 'problem' is that TStrings uses a single-byte string. Why can't that be changed to a UnicodeString or UTF8String - after all, the Unicode standard is meant to support all languages. I would have thought that would be an obvi

[Lazarus] The new kid is growing up fast

2017-08-15 Thread Graeme Geldenhuys via Lazarus
Hi guys, Just wanted to show you guys something. The new kid on the block is growing up very fast CrossVCL. https://www.youtube.com/watch?v=_lr_BQlXvkk I believe the programmer is the ex-FMX (FireMonkey) developer that was let go by Embarcadero, and he is hitting back with a vengeance

Re: [Lazarus] String vs WideString

2017-08-14 Thread Graeme Geldenhuys via Lazarus
On 2017-08-14 15:11, Tony Whyman via Lazarus wrote: ambiguous a term - especially as the Delphi/FPC UnicodeString type exists and probably (but I'm not certain) means UTF-16. Yes, that is f**ken annoying. FPC should have named it what it really is - UTF16String! But instead they followed Delp

Re: [Lazarus] String vs WideString

2017-08-14 Thread Graeme Geldenhuys via Lazarus
On 2017-08-13 11:51, Juha Manninen via Lazarus wrote: Now is year 2017, Unicode has been used for decades. Everybody should use it by now. Indeed, I can't agree more. Plus, I normally use UTF-8 for any text files I create. Regards, Graeme -- ___

Re: [Lazarus] Status of namespace

2017-08-14 Thread Graeme Geldenhuys via Lazarus
On 2017-08-13 11:44, Sven Barth via Lazarus wrote: Specifying default namespaces (yes, plural) is not yet supported by FPC. Okay, thanks for confirming that Sven. Regards, Graeme -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://

Re: [Lazarus] Status of namespace

2017-08-13 Thread Graeme Geldenhuys via Lazarus
On 2017-08-02 20:39, Juha Manninen via Lazarus wrote: he dotted names support may be quite perfect now. So does FPC or Lazarus already support the ability to specify the default namespace that must be applied for a project? If so how and where do you specify the namespace to be applied? eg:

Re: [Lazarus] ComparePoints func

2017-07-26 Thread Graeme Geldenhuys via Lazarus
Hi Sven, Thanks for clarifying the TPoint type. I thought it was a record structure, but just wanted to make sure - as I mentioned, different frameworks or libraries might use different types. On 2017-07-26 21:14, Sven Barth via Lazarus wrote: For object types you'll need to declare global

Re: [Lazarus] ComparePoints func

2017-07-26 Thread Graeme Geldenhuys via Lazarus
On 2017-07-26 17:27, Alexey via Lazarus wrote: Hm, in my app Int makes sense: i need to compare Points in binary search, and see: >, <, =. Ever heard of Manhatten Length? That would be a more logical approach. It is a commonly used length calculation for points. http://en.wikipedia.org/wik

Re: [Lazarus] ComparePoints func

2017-07-26 Thread Graeme Geldenhuys via Lazarus
On 2017-07-26 16:22, Michael Van Canneyt via Lazarus wrote: First start by defining what ComparePoints is supposed to measure or compare. If "compare" doesn't mean "equals", then a better name should be used, otherwise that too is up for incorrect interpretation. If "equals" is needed, wh

Re: [Lazarus] ComparePoints func

2017-07-26 Thread Graeme Geldenhuys via Lazarus
On 2017-07-26 14:54, Alexey via Lazarus wrote: I think LCL has many Compare funcs, but misses func for TPoint. Here it's comparing x/y screen coordinates Why not extend TPoint with an IsEquals() method, so you can do something like var p1: TPoint; p2: TPoint; begin // ... populate

Re: [Lazarus] Congrats to the FPC/Lazarus projects - job well done!

2017-07-26 Thread Graeme Geldenhuys via Lazarus
On 2017-07-25 13:01, Lars via Lazarus wrote: Is it because of QT 5 ? It says on the internets that Lumina uses QT 5 I don't actually know what GUI toolkit Lumina uses, but it might well be qt5. If that's the cause of the huge memory usage or not - I can't say. What I do know is that many dev

Re: [Lazarus] Congrats to the FPC/Lazarus projects - job well done!

2017-07-24 Thread Graeme Geldenhuys via Lazarus
On 2017-07-24 03:39, Lars via Lazarus wrote: Wirth's law applies, if you know it... As computers get faster, software gets more bloated and computers cannot keep up with the software bloat. Indeed, and it doesn't only seem to apply to Windows software. Linux and FreeBSD software are affected t

Re: [Lazarus] Congrats to the FPC/Lazarus projects - job well done!

2017-07-20 Thread Graeme Geldenhuys via Lazarus
On 2017-07-20 15:20, Petr Hložek via Lazarus wrote: Even Ctrl+Click navigation doesn't work, it jumps always to nonsense place. Yeah, I get that all the time. I'm now using GExpert's add-on for its "procedure list" and "grep search" features to get more accurate code navigation in Delphi.

Re: [Lazarus] Congrats to the FPC/Lazarus projects - job well done!

2017-07-20 Thread Graeme Geldenhuys via Lazarus
On 2017-07-20 14:47, Sven Barth via Lazarus wrote: The syntax in Delphi is "{$message [hint¦error¦warn¦fatal] 'text'}" which is also supported by FPC. Thanks Sven - literally 2 minutes ago I got notified via Google+ about that directive. Regards, Graeme --

Re: [Lazarus] Congrats to the FPC/Lazarus projects - job well done!

2017-07-20 Thread Graeme Geldenhuys via Lazarus
On 2017-07-20 14:41, Sven Barth via Lazarus wrote: Delphi had always been a fancy text editor when debugging and probably always will be :P I'm just shocked at how behind Delphi has become. FPC and Lazarus are so far ahead in language features, target platforms, IDE features - they have simpl

Re: [Lazarus] Congrats to the FPC/Lazarus projects - job well done!

2017-07-20 Thread Graeme Geldenhuys via Lazarus
On 2017-07-20 12:33, Graeme Geldenhuys via Lazarus wrote: And more ;-) [ I promise this will be the last] * With Delphi, "deprecated" is not allowed on Properties. * Delphi doesn't support user defined compiler hints and warnings like {$warning This is a user-

Re: [Lazarus] Congrats to the FPC/Lazarus projects - job well done!

2017-07-20 Thread Graeme Geldenhuys via Lazarus
On 2017-07-20 12:39, Ondrej Pokorny via Lazarus wrote: IMO we should give the Lazarus foundation more importance/advertisement. Definitely! Regards, Graeme -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/l

Re: [Lazarus] Congrats to the FPC/Lazarus projects - job well done!

2017-07-20 Thread Graeme Geldenhuys via Lazarus
On 2017-07-20 12:04, Marco van de Voort via Lazarus wrote: - Error Insight (red squiggles for Unknown Identifiers) is horribly broken. My code editor looks as if my 1 year old drew with a red ...snip... My experience is the other way. Delphi (XE10) here, updates it live, while lazarus ne

Re: [Lazarus] Running Unit tests for all projects

2017-07-18 Thread Graeme Geldenhuys via Lazarus
On 2017-07-18 14:42, Marcos Douglas B. Santos via Lazarus wrote: I would like to know if there is a tool or a simple way to compile, run and catch the results for all projects. MSEide+MSEgui has such a tool in its MSEUniverse repository. It's a bit cryptic to use (and no help as always), but o

Re: [Lazarus] Congrats to the FPC/Lazarus projects - job well done!

2017-07-13 Thread Graeme Geldenhuys via Lazarus
On 2017-07-13 07:22, Ondrej Pokorny via Lazarus wrote: OXml can do that for Lazarus (it's my commercial project): http://www.kluug.net/oxml.php Well done. One small note... On that page it mentions "OXml supports Lazarus 1.0 and newer on all platforms (tested Win32, Win64, Linux, MacOSX)

Re: [Lazarus] Congrats to the FPC/Lazarus projects - job well done!

2017-07-13 Thread Graeme Geldenhuys via Lazarus
On 2017-07-13 06:54, Michael Van Canneyt via Lazarus wrote: I have put this little snippet of text aside, so I can use it for future reference ;) Yeah, knowing this list [nobody here ever forgets], that is something that going to bite me in the a** at some point. :) Regards, Graeme -- ___

[Lazarus] Congrats to the FPC/Lazarus projects - job well done!

2017-07-12 Thread Graeme Geldenhuys via Lazarus
Hi Guys, This is just to give everybody that works on FPC or Lazarus a pat on the back. Seriously, you guys are doing an *excellent* job. Even though I am sometimes a bit hard on you guys. Having moved back to Delphi (I'm using XE at the moment) for a contracting job, I got to the realizatio

Re: [Lazarus] suggestion for Mac for Lazarus application deployment

2017-06-16 Thread Graeme Geldenhuys via Lazarus
On 2017-06-15 13:17, Andrea Mauri via Lazarus wrote: I am going to buy a Mac but since I never used a Mac I would like to ask you if you have any suggestion, which Mac should I choose? Do you need portable computing, or always working from the same desk? Portable computing: Macbook Pro Ren

Re: [Lazarus] The "Publish Package" functionality is horribly broken.

2017-05-26 Thread Graeme Geldenhuys via Lazarus
On 2017-05-26 14:11, Mattias Gaertner via Lazarus wrote: Not actually being able to publish what is inside the package. What do you mean with "inside"? It lists some units, but not all. Some directories are shared by other packages. I see no straightforward rule to publish only the package fpgui

Re: [Lazarus] The "Publish Package" functionality is horribly broken.

2017-05-26 Thread Graeme Geldenhuys via Lazarus
Thanks for looking at this. On 2017-05-26 12:42, Mattias Gaertner via Lazarus wrote: It copies the package directory with some options. The fpgui_toolkit directory only contains the 9 files. The other files are in parent or sibling directories. But those are still part of the package. At you

Re: [Lazarus] CodeTools knowledge about a project - find a class

2017-05-26 Thread Graeme Geldenhuys via Lazarus
On 2017-05-26 12:06, Ondrej Pokorny via Lazarus wrote: Please share this feature with us when you implemented it! I miss it as well (I do a simple Search in Files now). It seems it already exists (as Mattias pointed out) - we just didn’t know about it. :) All that remains is to assign a short

Re: [Lazarus] CodeTools knowledge about a project - find a class

2017-05-26 Thread Graeme Geldenhuys via Lazarus
On 2017-05-26 12:01, Mattias Gaertner via Lazarus wrote: Sounds like cody's dictionary: http://wiki.lazarus.freepascal.org/Cody#Unit_.2F_Identifier_Dictionary Fantastic! From the wiki description, this sounds exactly like what I was going to try and implement. Open Source developers are amazin

[Lazarus] CodeTools knowledge about a project - find a class

2017-05-26 Thread Graeme Geldenhuys via Lazarus
Hi, Does CodeTools only know about the unit or units that are currently open? Or does in know about all files in a project - and maybe even associated packages? The problem === I want to implement a Lazarus IDE feature "open type" - that's if it doesn't already exist (please let me k

[Lazarus] The "Publish Package" functionality is horribly broken.

2017-05-26 Thread Graeme Geldenhuys via Lazarus
Hi, I noticed this menu option in the fpgui_toolkit.lpk package. So I selected it and made sure the “include” filter selects all files, and nothing is “excluded”. This clicked okay. After that I had a look in the destination directory, and there was only 9 file. Yet the fpgui_toolkit.lpk pack

Re: [Lazarus] Use rare Win32 API in LCLIntf.SetForegroundWindow

2017-05-23 Thread Graeme Geldenhuys via Lazarus
On 2017-05-23 18:43, Ondrej Pokorny via Lazarus wrote: What are the equivalents for Qt, Qt5, Gtk2, Carbon, Cocoa? For anything running under X11 I have never had a problem with XRaiseWindow(xapplication.display, FWinHandle); So Qt and GTK could you that, if they aren't already. Regards,

Re: [Lazarus] Order of events: TEdit / TListBox

2017-05-23 Thread Graeme Geldenhuys via Lazarus
On 2017-05-23 14:27, kapibara via Lazarus wrote: So the behaviour is inconsistent between platforms, and also inconsistent within the same control (TListBox) depending on what item is selected. I believe I have reported that back in 2006 already. If not the same component, then one of the list

Re: [Lazarus] intercepting keyboard events

2017-05-22 Thread Graeme Geldenhuys via Lazarus
On 2017-05-22 15:01, Ondrej Pokorny via Lazarus wrote: For an example look how it is done in TCustomDBGrid.MouseDown. + The control can always get focused by the Tab key, if TabStop=True. I'll double check that as well, just to be sure. Thanks to both for the very prompt replies. Much appreci

Re: [Lazarus] intercepting keyboard events

2017-05-22 Thread Graeme Geldenhuys via Lazarus
On 2017-05-08 17:46, zeljko via Lazarus wrote: Just to be sure that control actually can take focus put this ControlStyle := ControlStyle - [csNoFocus]; into constructor of your control. And what if that doesn't work? I've set that in the constructor, but still it doesn't receive keyboard focu

Re: [Lazarus] intercepting keyboard events

2017-05-22 Thread Graeme Geldenhuys via Lazarus
On 2017-05-22 14:57, Graeme Geldenhuys via Lazarus wrote: And what if that doesn't work? Ignore that. I forced a Rebuild of all units, and now suddenly it is working as expected. Regards, Graeme -- ___ Lazarus mailing list Lazarus@lists.la

Re: [Lazarus] Form resize to standard size in IDE.

2017-05-16 Thread Graeme Geldenhuys via Lazarus
On 2017-05-16 19:52, Ondrej Pokorny via Lazarus wrote: Anything else I can do ? (except dumping linux mint, obviously...) Maybe this is an option for you until it gets properly fixed: I agree with Michael... Dumping your OS of choice is not a solution. I would rather nag until the bug is fixe

Re: [Lazarus] German lazarus forum down

2017-05-16 Thread Graeme Geldenhuys via Lazarus
On 2017-05-16 10:13, Michael W. Vogel via Lazarus wrote: Na hoffentlich müssen wir keine 300$ in Bitcoins spenden... :-P Regards, Graeme -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Oproep aan alle Nederlandstalige Lazarusgebruikers (Attn: all Dutch Lazarus users)

2017-05-15 Thread Graeme Geldenhuys via Lazarus
Op 2017-05-14 22:27, het Bart geskryf: Ik vermoed dat de meesten onder ons,evenals ik, gewoen de engelse taal in de IDE gebruiken. Dit was ook my ervaring, toe ek Afrikaans met Lazarus IDE probeer gebruik het. Die terminologie was net te vreemd. So nou verkies ek om liewers Engels te gebruik.

Re: [Lazarus] Insufficient keyboard modifiers support in IDE

2017-05-11 Thread Graeme Geldenhuys via Lazarus
On 2017-05-11 16:21, Graeme Geldenhuys via Lazarus wrote: I'll file a Mantis bug report. Reported as: https://mantis.freepascal.org/view.php?id=31797 Many thanks for your help and time Alexey. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal

Re: [Lazarus] Insufficient keyboard modifiers support in IDE

2017-05-11 Thread Graeme Geldenhuys via Lazarus
On 2017-05-11 16:00, Alexey via Lazarus wrote: It must not see em. Laz dont know what is Hyper key, and Super. So it is a LCL bug then? As I mentioned, I'm using LCL-GTK2, and I know FreeBSD supports those keys (tested with xev), and I know GTK2 supports those keys (test with The GIMP). So d

Re: [Lazarus] Insufficient keyboard modifiers support in IDE

2017-05-11 Thread Graeme Geldenhuys via Lazarus
On 2017-05-11 15:28, Alexey via Lazarus wrote: Check "Meta" shows on Mac only; you need it for Lin/Win? It is simple fix, one liner. 1) That wasn't too clever from whomever implemented that artificial restriction. Meta, Super, Hyper and AltGr are often used on other platforms (Linux,FreeBSD,W

<    1   2   3   4   5   6   >