Re: [Lazarus] operator overloading

2013-02-24 Thread leledumbo
FPC operator overloading doesn't work inside classes, it must be declared globally, so method2 should work. What error do you get? What FPC version do you use? -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-operator-overloading-tp4029399p4029400.html Se

Re: [Lazarus] "global" operator overloading

2013-02-25 Thread leledumbo
> Is there anyway to avoid this dilemma? Because I don't want treap.pas to "reversely" rely on a specialized class. No, it's not a dilemma, but rather a requirement. Before generics specialization, all required operations for given type must be known. This is because the symbol table when the gen

Re: [Lazarus] TDD

2013-02-27 Thread leledumbo
No such a framework yet, but we have unit testing frameworks on which you can do TDD on top of. FPCUnit is distributed along, while FPTest is 3rd party. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-TDD-tp4029488p4029507.html Sent from the Free Pascal

Re: [Lazarus] CRM and MVC

2013-02-27 Thread leledumbo
tiOPF and Greyhound (+ my ghORM) are two frameworks I've ever used. There are others, but I never touch them. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-CRM-and-MVC-tp4029487p4029508.html Sent from the Free Pascal - Lazarus mailing list archive at N

Re: [Lazarus] Ok I give up!

2013-03-02 Thread leledumbo
> I don't think my built in help is working, F1 does nothing. How do I enable built in help? http://wiki.freepascal.org/Installing_Help_in_the_IDE -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Ok-I-give-up-tp4029554p4029579.html Sent from the Free

Re: [Lazarus] ForceDirectoriesUTF8

2013-03-02 Thread leledumbo
> as all my programs use string type, change them all to AnsiString is scaring and I don't know the consequence at all Do you access the string's internal structure? Do you write the string to file directly instead of taking its content? If not, then nothing you have to worry about. Standard strin

Re: [Lazarus] "buffer" and string

2013-03-02 Thread leledumbo
> My question is, why the above code with string works sometime, but not alwasy fail? TStream.Write expects a buffer, typically the first element of an item (NOT a pointer to it) and the length (number of elements after first one). > fs.Write(s, Length(s)); Here you try to give the WHOLE string,

Re: [Lazarus] LongString does not work?

2013-03-03 Thread leledumbo
> I was using an INI file, but record make things a lot easier. If you use TIniFile, you don't have to worry about saving and restoring values. It's much easier than writing your own saving/restoring procedure. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/La

Re: [Lazarus] "buffer" and string

2013-03-04 Thread leledumbo
> If a buffer expect the first "element", and count is the number of elements to write, then what is the unit size of that element? is it always "byte"? From http://www.freepascal.org/docs-html/rtl/classes/thandlestream.write.html: "Write overrides the Write method of TStream. It uses the Handle p

Re: [Lazarus] Android LCL example with 2.7.1

2013-03-06 Thread leledumbo
Nice news Sven, so now I can drop the hacked 2.5.1? -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Android-LCL-example-with-2-7-1-tp4029697p4029702.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. --

Re: [Lazarus] What's "External: SIGFPE"?

2013-03-07 Thread leledumbo
> Could anyone explain what's SIGFPE? SIGFPE stands for SIGnal Floating Point Exception, that is caused by a probably invalid operation involving floating points. > Why there is a SetExceptionMask? Probably to override the same thing already done by (implicitly used) libraries, e.g. gtk2 > Why

Re: [Lazarus] Error while compiling

2013-03-07 Thread leledumbo
Installing libx11-dev should automatically install libxcb-dev (which is the one you miss) -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Error-while-compiling-tp4029732p4029741.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.

Re: [Lazarus] Android LCL example with 2.7.1

2013-03-08 Thread leledumbo
Lazarus 1.1 r40503 FPC 2.7.1 r23704, both my app and androidlcl example crashes with this: I/lclapp ( 738): [FORMS.PP] ExceptionOccurred I/lclapp ( 738): Sender=EIntOverflow I/lclapp ( 738): Exception=Arithmetic overflow I/lclapp ( 738): Stack trace: I/lclapp ( 738): $46AC306C I

Re: [Lazarus] Installing Lazarus

2013-03-10 Thread leledumbo
Where did you search? It's 0.6.5 in Lazarus-CCR (I have 0.6.6 from svn): http://sourceforge.net/projects/lazarus-ccr/files/lNet/ -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Installing-Lazarus-tp4029785p4029790.html Sent from the Free Pascal - Lazarus

Re: [Lazarus] Lazarus update

2013-03-19 Thread leledumbo
> Is there any way to record all currently installed components (Lazarus inbuilt and self-installed) and automatically re-install them when updating Lazarus? Lazarus doesn't distinguish components you add manually and the ones that come with it. So you have to keep track yourself. I put component

Re: [Lazarus] Lazarus update

2013-03-19 Thread leledumbo
> Is there a wiki on Updating For Idiots? AFAIK no, feel free to create one. Anyway, when you're able to program, you shouldn't be included in idiots group anymore... -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Lazarus-update-tp4029944p4029960.html

Re: [Lazarus] Lazarus and file associations under Windows

2013-04-04 Thread leledumbo
I'd say go for startlazarus.exe as it's the helper program used for successful automatic restart after installing a package (I don't know whether lazarus.exe will check and start startlazarus.exe by itself, but to be safe, it's better to start from startlazarus.exe). -- View this message in cont

Re: [Lazarus] [FR] LCLWidgetType not easy

2013-04-08 Thread leledumbo
> Regarding you usually need do do this not very often during your workflow. I suppose what you mean is to create build mode for each -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-FR-LCLWidgetType-not-easy-tp4030411p4030455.html Sent from the Free Pas

Re: [Lazarus] Hints for Android

2013-04-11 Thread leledumbo
> For using the LCL in Android see http://wiki.freepascal.org/Android_Interface instead of the link that you have. The link above also applies to LCL, since quite recent 2.7.1 has pure Android support (and I've been able to build my Android apps with it) -- View this message in context: http

Re: [Lazarus] Linux GUI Application define CONSOLE

2013-04-13 Thread leledumbo
> I´m confusing... I always find out that the "CONSOLE" directive exists only for applications that does not require a GUI or in other words, applications that does not require a X server Linux applications are console, Linux doesn't have integrated GUI as a part of the system like Windows (wh

Re: [Lazarus] Linux GUI Application define CONSOLE

2013-04-14 Thread leledumbo
If your design is modular enough, you can use frontend-backend architecture. Only the frontend should differ. This could be achieved by having 2 .lpi referencing the same backend unit, with each own frontend (user interface). Another way would be to use build mode, differing in -Fu paths. One will

Re: [Lazarus] Slow pointer assignments

2013-04-18 Thread leledumbo
Assign all the RGBA value in one go, that would reduce the inner loop by 4 times. i.e.: var PixelPtr: PLongWord; PixelRowPtr: PByte; begin PixelRowPtr := Fbmp.RawImage.Data; for Y := 0 to Self.Height - 1 do begin PixelPtr := PLongWord(PixelRowPtr); for X := 0 to (Self.Wid

Re: [Lazarus] RAD Studio XE4 Released?

2013-04-24 Thread leledumbo
> How can they sell this ... as a cross-platform solution ? For most people, having at least two different targets already counts cross-platform, even if the host is only one (yaoming). The prerequisites suck, REALLY REALLY SUCK (why do the hell they need .NET framework there?) Reference: http://

Re: [Lazarus] How to detect if a project is a simple program or a application?

2013-05-04 Thread leledumbo
Console is always defined on Linux, because all Linux applications have console. I think it's better to use a custom define. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-How-to-detect-if-a-project-is-a-simple-program-or-a-application-tp4031127p4031128

Re: [Lazarus] Arm-linux PPU invalid versioin 126

2013-05-06 Thread leledumbo
> I have put a bounty to get a lazarus installer with android free pascal cross compile included. I've seen it and I guess I can do it since I already have in my current setup on Linux. But I'm too lazy to open my Windows again... :P A problem that might appear is that since the support is availa

Re: [Lazarus] Get Lazarus version at runtime

2013-05-13 Thread leledumbo
http://lazarus-ccr.sourceforge.net/docs/lcl/lclversion/index.html -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Get-Lazarus-version-at-runtime-tp4031280p4031286.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- __

Re: [Lazarus] TextHeight in Console App

2013-05-14 Thread leledumbo
> 'Project TextHeight raised exception "External SIGSEGV" in file '.\include\lclintf.inc' at line 184.' What's there? It's part of lcl, so look for the file in lcl folder. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-TextHeight-in-Console-App-tp4031

Re: [Lazarus] TextHeight in Console App

2013-05-14 Thread leledumbo
OK, that means it tries to get something from current widgetset, which is nil for a console application. I guess LCLBase is the least thing you can use from LCL for a console app. You could follow Graeme's advice. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/

Re: [Lazarus] ARMV7

2013-05-14 Thread leledumbo
Isn't the error message clear enough? > PPU Loading C:\Develop\fpc\2.7.x\units\arm-android\rtl\system.ppu > Trying to use a unit which was compiled with a different FPU mode The compiler tries to load the system unit, but it's compiled with different FPU mode that the one you're targetting with.

Re: [Lazarus] ARMV7

2013-05-15 Thread leledumbo
> also physically deleting C:\Develop\fpc\2.7.x\units\arm-android directory and recompiling fpc with CROSSOPT="-CfVFPV3 -OoFASTMATH -CpARMV6" I get the same error. This is what I actually mean by "cleaning up your arm-android installation". If you've done that, then retry: > if I use only CROSSOP

Re: [Lazarus] [ANN] fpCEF3

2013-05-25 Thread leledumbo
> Currently it needs to be compiled without -WG (so you have this ugly cmd window) - this will change as soon as I don't need debug info output any more. Use DebugLn instead, it will work with/without standard output available. -- View this message in context: http://free-pascal-lazarus.9890

Re: [Lazarus] "crti.o" "crtbegin.o" "crtend.o" "crtn.o"

2013-06-04 Thread leledumbo
Just ignore the warnings, they seem to be safe for FPC programs (FPC doesn't use GCC initializer/finalizer, it has its own). This may be caused by newer binutils, whose behavior is documented here: http://gcc.gnu.org/onlinedocs/gccint/Initialization.html -- View this message in context: http://

Re: [Lazarus] TComboBox with AutoComplete property

2013-06-14 Thread leledumbo
OnCreate of what? For TForm, the Sender parameter would be... the form itself. Why don't you directly set the property? i.e. ComboBox1.AutoComplete := true; -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-TComboBox-with-AutoComplete-property-tp4031889p40

Re: [Lazarus] TComboBox with AutoComplete property

2013-06-15 Thread leledumbo
> I has many TComboBox components on the forms without the AutoComplete property set to True, so I was looking for the easy way to make it True during the run time. Then loop over the components instead of checking the Sender only -- View this message in context: http://free-pascal-lazarus.989

Re: [Lazarus] Lazarus Compile Error

2013-06-20 Thread leledumbo
I fix this a little while ago in trunk. 1.0.10 should be free from this bug. What's your fpc version? -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Lazarus-Compile-Error-tp4031986p4031988.html Sent from the Free Pascal - Lazarus mailing list archive at

Re: [Lazarus] TIFF images

2011-04-15 Thread leledumbo
AFAIK TTIFFImage (or something similar) is already supported in trunk. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-TIFF-images-tp2825743p2826501.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- __

Re: [Lazarus] ExecuteProcess - do not wait for process on Linux

2011-04-19 Thread leledumbo
For this, you should use TProcess without poWaitOnExit option. ExecuteProcess would block, always. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-ExecuteProcess-do-not-wait-for-process-on-Linux-tp2838202p2839464.html Sent from the Free Pascal - Lazarus ma

Re: [Lazarus] Menu Click Event in Runtime

2011-04-29 Thread leledumbo
> Use: > menuItem.OnClick := @MenuClick; Or compile in Delphi compatibility mode-- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Menu-Click-Event-in-Runtime-tp2880080p2880463.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. --

Re: [Lazarus] HTML Browser

2011-05-09 Thread leledumbo
I've only tested THTMLPort and GeckoPort. For me, GeckoPort seems to do the job better. Though I haven't tried, QT WebKit should do it as good as Gecko, remembering that it's Google Chrome's engine (Gecko is used by Firefox). -- View this message in context: http://free-pascal-lazarus.989080.n3.n

Re: [Lazarus] fpWeb and static content

2011-05-24 Thread leledumbo
Maybe this would sound overcomplicated, but I create a special webmodule for this (because I refer it dynamically as well in my templates). -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-fpWeb-and-static-content-tp2977708p2980540.html Sent from the Free P

Re: [Lazarus] Simple embweb project hangs

2011-05-29 Thread leledumbo
Well I got a slightly different condition after updating fpc, lazarus and embweb to their latest version, they finally work fine together. If you haven't please consider upgrading your lazarus and/or fpc first. Anyway, what's your action code? -- View this message in context: http://free-pascal-

Re: [Lazarus] Embweb lpk?

2011-06-01 Thread leledumbo
Have you configured your fppkg? Check the wiki entry for fppkg -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Embweb-lpk-tp3006296p3011798.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- ___

Re: [Lazarus] Alternative linker

2011-06-03 Thread leledumbo
You can try fooling the compiler by making ld symlink to gold (of course you better back up your real ld) -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Alternative-linker-tp3021504p3022064.html Sent from the Free Pascal - Lazarus mailing list archive at

Re: [Lazarus] Little interface improvement (i think so...)

2011-06-08 Thread leledumbo
I guess you haven't seen: 1) http://wiki.lazarus.freepascal.org/Anchor_Docking#Docking_in_the_IDE 2) http://wiki.lazarus.freepascal.org/New_IDE_features_since#Docked_IDE 3) http://wiki.lazarus.freepascal.org/Manual_Docker *older hack, don't know if it still works -- View this message in context:

[Lazarus] EmbWeb: Moving between webapp type caveats

2011-06-11 Thread leledumbo
I realize that when I change from embedded server to, for instance, CGI, some things must be adjusted. For example, I use TRequest.ScriptName to get the base path of my web. This seems OK for CGI but not for embedded server, because it's not set there. I even got almost totally different environmen

Re: [Lazarus] EmbWeb: Moving between webapp type caveats

2011-06-12 Thread leledumbo
Thanks for answering, however the problem is not yet solved. > The whole point of fpweb is to abstract away the source of the information > of the request. I know, but as I said something that works across the webapp type (like the base url) should exist. > The Application.ApplicationURL is set

Re: [Lazarus] EmbWeb: Moving between webapp type caveats

2011-06-13 Thread leledumbo
> It's not always possible to get the Application-URL. That's a problem > with other server-side weblanguages too. Maybe... the PHP framework I use require me to specify the base URL (relative from the host:port) like /myproj/ for http://localhost:8080/myproj/ assuming the webserver is listening

Re: [Lazarus] EmbWeb: Moving between webapp type caveats

2011-06-14 Thread leledumbo
Using some kind of configuration file sounds like a good solution. @Joost: I'll try to look at inside of TWebPage, maybe I can steal something from there... >:) -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/EmbWeb-Moving-between-webapp-type-caveats-tp3053108p30

Re: [Lazarus] Portable Version of Lazarus.

2011-06-17 Thread leledumbo
I have a http://free-pascal-lazarus.989080.n3.nabble.com/file/n3076763/LazarusPortable.zip portable launcher source code extracted and modified from original version by Juan A Melendez (WARNING: kinda i386-win32 centric, please modify as necessary). Put this launcher in a directory, inside the di

Re: [Lazarus] Can this be leveraged for Lazarus/FPC to target Java platforms? "... compile programs to MIPS binaries, and these are then translated into Java bytecode."

2011-06-20 Thread leledumbo
You mean http://nestedvm.ibex.org/ this ? I gotta take a look at it, it should be possible if the converter plays at binary level instead of source level. I wonder how it converts call to routines residing in dll? JNI? -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.

Re: [Lazarus] array[0..n] of class of TSomething

2011-07-12 Thread leledumbo
Seems like codetools parser bug. Try writing it type by type: type Tp2pMessageClass = class of Tp2pMessage; Tp2pMessageClassArray = array [0 .. 1] of Tp2pMessageClass; const MsgTypes: Tp2pMessageClassArray = ( ... ); -- View this message in context: http://free-pascal-lazarus.989080

Re: [Lazarus] Building Lazarus for Windows

2011-07-17 Thread leledumbo
Lazarus' makefile is different from FPC, it expects LAZARUS_INSTALL_DIR instead of INSTALL_PREFIX for installation location -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Building-Lazarus-for-Windows-tp3174724p3176979.html Sent from the Free Pascal - Laza

Re: [Lazarus] The right way of installing FPC to use with Lazarus?

2011-08-03 Thread leledumbo
> Lazarus requires rtl and package sources to lay inside \sources while FPC provides them inside fpcsrc folder. Huh? Isn't it configurable in environment options? I kept FPC binaries, FPC source code, and Lazarus (can't be separated between binaries and source code) in their own directories. That

Re: [Lazarus] 'with' is evil, isn't it?

2011-08-03 Thread leledumbo
> I think a warning if the name inside of 'with' overrides a name from outer scope would be an acceptable compromise. I agree with this solution, it doesn't change the syntax, yet it gives better chance to spot wrong scope of identifier which could happen during porting or upgrade. -- View this m

Re: [Lazarus] Is it safe to combine Gtk/Qt and Win32 in the same source tree?

2011-08-11 Thread leledumbo
> Is it safe to have both the Linux and Windows projects in the same tree, without any harmful side effects? Yes, of course. Did you do it so they could share common units? > I would love to use Qt or Gtk instead of Win32 for the Windows side, but I > am not ready to locate subtle bugs and incomp

Re: [Lazarus] MessageDLG and localization Win/Linux

2011-08-12 Thread leledumbo
> The same app compiled on my Debain Sid, i get > buttons Captions 'Ja' and 'Nein' even if i comment out the code above. AFAIK your system locale is the default, either you have to provide language choice options or hardcode the language you want to translator functions. -- View this message in

Re: [Lazarus] Files with .rst, .compiled files and .lrs extensions

2011-08-16 Thread leledumbo
> Using .res files requires fpc 2.4.4+ and 0.9.29+. Wasn't it 2.4.0+? -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Files-with-rst-compiled-files-and-lrs-extensions-tp3258318p3258724.html Sent from the Free Pascal - Lazarus mailing list archive at Nabbl

Re: [Lazarus] 67 Open source replacement apps, and we are not on the list :(

2011-08-17 Thread leledumbo
The Development Tools lists only MSVS and Adobe ColdFusion, surely the author is just a mainstream person. He knows only what marketing told him. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-67-Open-source-replacement-apps-and-we-are-not-on-the-list-tp3

Re: [Lazarus] [fpc-devel] C++ gets language-internal concurrency support

2011-08-22 Thread leledumbo
> I seem to remember that there is an article about same in the FPC Wiki. Yep, here: http://wiki.lazarus.freepascal.org/OpenMP_support but it looks like no one is working on it... More can be found here: http://wiki.lazarus.freepascal.org/Category:Parallel_programming -- View this message in co

[Lazarus] Package output directory not inherited by project

2011-08-29 Thread leledumbo
* cross posted from forum * I'm converting a fpWeb project to use EmbWeb, however I got compilation errors saying fpEmbWeb unit not found. When I open project options->inherited, I don't see any EmbWeb path (and indeed its path is not added to -Fu options) there yet I have it as the project depend

Re: [Lazarus] Package output directory not inherited by project

2011-08-31 Thread leledumbo
> Your embweb is designtime only. > See Package options / IDE integration / package type. Right, thanks. It's the default value of the package. Should this be reported to Joost? I took it from fppkg. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Package-output-

Re: [Lazarus] Database Library Issues

2011-09-14 Thread leledumbo
> Aparently, Lazarus is looking for libpq.so.4, while my implementations have libpq.so.5 It shouldn't be hardcoded AFAIK: libpq.so only, which may be a symlink to the correct version. Try checking the source code whether the .4 is hardcoded or not. -- View this message in context: http://free-pa

Re: [Lazarus] object streams

2011-09-20 Thread leledumbo
AFAIK no, only TComponent derived classes have streamer implementation now (take a look componentstreaming and pascalstream example). -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-object-streams-tp3351667p3352663.html Sent from the Free Pascal - Lazarus

Re: [Lazarus] Support for dotted unit name

2011-11-04 Thread leledumbo
> I cannot confirm that, seeing no such option in the IDE. Well, do you have it installed? Or at least have you read http://wiki.lazarus.freepascal.org/KOL-CE this ? -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Support-for-dotted-unit-name-tp3476470

Re: [Lazarus] Support for dotted unit name

2011-11-04 Thread leledumbo
> From the CodeRage 6 videos all I could see is that they now differentiate between VCL (eg: vcl.forms.pas) and FireMonkey (eg: fm.forms.pas) units. Too bad... now they will face problems when refactoring the framework, possibly causing users to create ifdefs in uses clause. I don't really know

Re: [Lazarus] read single char from STDIN

2011-11-18 Thread leledumbo
Try the example here: http://www.freepascal.org/docs-html/rtl/keyboard/getkeyevent.html -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-read-single-char-from-STDIN-tp3518536p3520501.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.co

Re: [Lazarus] Custom OS/CPU targets for FPC - build help

2011-12-30 Thread leledumbo
> What commands do I have to use to rebuild FPC another target OS/CPU like Win32/i386 will be supported ? http://wiki.lazarus.freepascal.org/Cross_compiling -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Custom-OS-CPU-targets-for-FPC-build-help-tp3621041

Re: [Lazarus] Problem compiling lazarus trunk

2012-02-28 Thread leledumbo
Same error I got about two days ago svn. I just crazily typecast the problematic expression to the expected type and it compiles smoothly (and no bug so far, because I haven't used the dbgrid :p) -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Problem-comp

Re: [Lazarus] Contribute to a book instead of wiki?

2012-03-01 Thread leledumbo
The book seems to be written with OpenOffice.org / LibreOffice, that would be difficult to track changes. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Contribute-to-a-book-instead-of-wiki-tp3789922p3792385.html Sent from the Free Pascal - Lazarus mailin

Re: [Lazarus] Contribute to a book instead of wiki?

2012-03-02 Thread leledumbo
> Oh yes, and it shows them grafically, not as raw text. Now that's something I don't know :) -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Contribute-to-a-book-instead-of-wiki-tp3789922p3793507.html Sent from the Free Pascal - Lazarus mailing list arc

[Lazarus] Cannot run lazarus other than from terminal

2012-03-04 Thread leledumbo
Lazarus svn r35704 FPC svn r20468 Kubuntu 11.10 x86 Whenever I try to execute from desktop shortcut (.desktop) or double-clicking associated file, I got "Disk full" message box. I've n-tuple checked whether there are other Lazarus/FPC installed but `which` seems to point to the correct instance an

Re: [Lazarus] Cannot run lazarus other than from terminal

2012-03-04 Thread leledumbo
A reboot fixes the issue :) Though I'm still curious why... -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Cannot-run-lazarus-other-than-from-terminal-tp3798099p3798160.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- _

Re: [Lazarus] FPDocManager news

2012-03-08 Thread leledumbo
Where is this FPDocManager? I've seen a thread about it, but I can't find (or miss due to skimming) where it is. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-FPDocManager-news-tp3810758p3811886.html Sent from the Free Pascal - Lazarus mailing list archi

Re: [Lazarus] TProcess and Windows XP

2013-07-02 Thread leledumbo
Error 193 is "%1 is not a valid Win32 application", what is your .Executable or .CommandLine property? -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-TProcess-and-Windows-XP-tp4032239p4032244.html Sent from the Free Pascal - Lazarus mailing list archive

Re: [Lazarus] SynEdit Code Completion

2013-07-08 Thread leledumbo
http://svn.freepascal.org/svn/lazarus/trunk/ide/sourceeditor.pp ? -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-SynEdit-Code-Completion-tp4032288p4032289.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- _

Re: [Lazarus] Should TObject or TComponent have a Comment property?

2013-07-11 Thread leledumbo
> Annotations like in Java would be nice... No IMHO, that would complicate reading the code (more cluttered) as you can see in the newer Delphi versions (called attributes instead of annotations though). -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-S

Re: [Lazarus] Lazarus, Jedi etc.

2013-07-13 Thread leledumbo
The whole JEDI sucks, dependencies hell everywhere and IS TIED TO WINDOWS! Some of the components have been converted though. Virtual Treeview is available for Lazarus. Quickreport is not needed because we have LazReport, more over, FastReport is also Lazarus compatible. Lazarus can connect to many

Re: [Lazarus] Lazarus, Jedi etc.

2013-07-15 Thread leledumbo
> Indeed! More people should be introduced [and educated] to the much > better open source database servers out there, like Firebird and > PostgreSQL. Or if they insist on using MySQL (compatible alternative): MariaDB -- View this message in context: http://free-pascal-lazarus.989080.n3.nabb

Re: [Lazarus] Should TObject or TComponent have a Comment property?

2013-07-15 Thread leledumbo
> Well, then they need to be added for Delphi compatiblity :o I can't say anything anymore when the reason is this :) > They have been added. It's just not yet in trunk. Hoo... a hidden branch? -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Should-T

Re: [Lazarus] version of fpuname function for windows

2013-07-16 Thread leledumbo
> Please I would like to know if its possible to fpuname function for windows? No, the containing unit is BaseUnix, Windows doesn't implement unix functions. You have to use the one from Windows unit since I don't think cross platform function exists yet. -- View this message in context: http:

Re: [Lazarus] Pascal Script and Lazarus/Free Pascal

2013-08-04 Thread leledumbo
Both code should be fairly in sync, but use the graeme version instead, it may contain Lazarus specific fixes. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Pascal-Script-and-Lazarus-Free-Pascal-tp4032756p4032759.html Sent from the Free Pascal - Lazaru

Re: [Lazarus] Build Lazarus on Linux? Make is deprecated?

2013-08-08 Thread leledumbo
> 'make' is not in the search path. Correct 'make' to 'fpc' -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Build-Lazarus-on-Linux-Make-is-deprecated-tp4032830p4032843.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. --

Re: [Lazarus] global items in TApplication

2013-09-14 Thread leledumbo
In short, you can't put it in the .dpr if you want it to be accessible from all units. Actually, there's not really any magic behind TApplication, you can still create your own TApplication descendant (preferably in its own unit) and assign that to Application variable. Provide a global property to

Re: [Lazarus] FPC arm building issue

2013-09-25 Thread leledumbo
Seems like you're just getting a broken revision. This: zipper.pp(2721) Error: Error while assembling exitcode 1 zipper.pp(2721) Fatal: There were 2 errors compiling module, stopping Fatal: Compilation aborted paszlib\units\arm-linux\zipper.s: Assembler messages: paszlib\units\arm-linux\zipper.s:3

Re: [Lazarus] How do you remove form caption area?

2013-10-04 Thread leledumbo
BorderStyle := bsNone -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-How-do-you-remove-form-caption-area-tp4033716p4033717.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- ___ L

Re: [Lazarus] How do you remove form caption area?

2013-10-05 Thread leledumbo
No idea then, seems to be Windows API specific -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-How-do-you-remove-form-caption-area-tp4033716p4033726.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. --

Re: [Lazarus] Loading photos on a form

2013-10-06 Thread leledumbo
> confused on what control to use (timage, tbitmap, something else)and what are the steps to get the image to that control? TImage is meant for static image, TBitmap could be one of the possible image container of TImage, or used freely to draw or manipulate other bitmaps. Just drop a TImage and s

Re: [Lazarus] Graeme would love this, or not, I think

2013-10-11 Thread leledumbo
3-4 comments to help promoting Lazarus/Free Pascal to them. Mind to help as well, guys? -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Graeme-would-love-this-or-not-I-think-tp4033781p4033788.html Sent from the Free Pascal - Lazarus mailing list archive

Re: [Lazarus] Can't compile Lazarus on Linux Mint 15

2013-10-16 Thread leledumbo
Looks like it can't find cairo development library to link -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Can-t-compile-Lazarus-on-Linux-Mint-15-tp4033838p4033853.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- _

Re: [Lazarus] Can't compile Lazarus on Linux Mint 15

2013-10-17 Thread leledumbo
> I have the same problem on Ubuntu 13.04 and the cairo libs are installed. Including the -dev package? -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Can-t-compile-Lazarus-on-Linux-Mint-15-tp4033838p4033860.html Sent from the Free Pascal - Lazarus ma

Re: [Lazarus] Can't compile Lazarus on Linux Mint 15

2013-10-17 Thread leledumbo
Could it be the functions were splitted in two libraries sometime ago? -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Can-t-compile-Lazarus-on-Linux-Mint-15-tp4033838p4033871.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.

Re: [Lazarus] WriteLn back to the GUI

2013-10-23 Thread leledumbo
> I am trying to find where WriteLn is declared; but, apparently, WriteLn is among the select few that Lazarus will ignore 'Find Declaration' requests --at least that's how it behaves (latest Lazarus stable) on my side. WriteLn is NOT a regular procedure. It's rather a special command for the

Re: [Lazarus] WriteLn back to the GUI

2013-10-23 Thread leledumbo
If I understood correctly, you want to override the meaning of WriteLn (for programs and units using globals.pas), right? In that case, just create Write(Ln) procedure in globals unit. That will override the system unit one. However, you can't have the one with variable number of arguments, at leas

Re: [Lazarus] need info some warning

2013-10-29 Thread leledumbo
> In project1.lpr file line 21 is "end." In case of link time warning/error, no information related to source code that can be used for this. The location information available is the last tokens that the parser sees: end. > /usr/bin/ld: warning: /opt/lazarus/link.res contains output sections; d

Re: [Lazarus] Compilation error when targeting Android

2013-11-07 Thread leledumbo
You need to set -Fl to point to the NDK libraries, read up fpc.cfg thing here: http://wiki.freepascal.org/Android#Building_cross_compiler -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Compilation-error-when-targeting-Android-tp4034178p4034179.html Sent

Re: [Lazarus] DateDif function needed

2013-11-08 Thread leledumbo
uses SysUtils; var Date1,Date2: TDate; Y,M,D: Word; begin Date1 := EncodeDate(2012,12,21); Date2 := EncodeDate(2013,01,01); DecodeDate(Date2 - Date1,Y,M,D); // you have them in Y, M and D, respectively end. -- View this message in context: http://free-pascal-lazarus.989080.n3.na

Re: [Lazarus] DateDif function needed

2013-11-09 Thread leledumbo
Indeed that was wrong, I shouldn't exploit the internal details. Below is the correct one (still no need for that complicated code of yours): uses SysUtils,DateUtils; var Date1,Date2: TDate; Y,M,D: Word; begin Date1 := EncodeDate(2012,12,21); Date2 := EncodeDate(2013,01,01); Y :

Re: [Lazarus] Local CHM help files or web based?

2013-11-12 Thread leledumbo
CHM for me, it has nice features that web based one can't do fast. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Local-CHM-help-files-or-web-based-tp4034271p4034272.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- __

Re: [Lazarus] What are the perfomance and memory usage effects of having heaptrc running?

2013-11-23 Thread leledumbo
> Does heaptrc intercept and monitor memory allocation throughout the program execution, or does it do a scan of memory usage for output only at program shutdown? Look at the source code, it's open :) Basically HeapTrc will replace the current memory manager with its own, tracing everything that's

Re: [Lazarus] Resources

2013-11-23 Thread leledumbo
{$R} (FPC style) resources are not the same as Lazarus resources. See: http://wiki.freepascal.org/Lazarus_Resources -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Resources-tp4034456p4034457.html Sent from the Free Pascal - Lazarus mailing list archive

<    1   2   3   4   >