Re: [Lazarus] LCL and DLLs, initializing the widget set safely?

2009-12-09 Thread Gerard N/A
On Tue, Dec 8, 2009 at 11:39 PM, Marco Alvarado wrote: > I'm really happy to inform that I solved the bug, and now I have a > working version of LCL 0.9.28.2 in DLL. It seems the fix might not be > difficult for someone who understands the LCL's internals. I'll > explain what I did hoping someone

Re: [Lazarus] LCL and DLLs, initializing the widget set safely?

2009-12-09 Thread Marco van de Voort
On Wed, Dec 09, 2009 at 09:33:32AM +0100, Gerard N/A wrote: > > working version of LCL 0.9.28.2 in DLL. It seems the fix might not be > > difficult for someone who understands the LCL's internals. I'll > > explain what I did hoping someone could work on it. > > Am I wrong or this cannot be really

Re: [Lazarus] VoIP / SIP communication initiated from LCL apps | OFFTOPIC

2009-12-09 Thread ik
On Wed, Dec 9, 2009 at 12:52 AM, Graeme Geldenhuys wrote: > 2009/12/8 Helmut Hartl : > >> > > This seems you want to do 3rd party call control of a SIP device. > > Yes, I simply want to initiate a call from inside our application. The > rest is then handled by the actual SIP device or VoIP applica

Re: [Lazarus] LCL and DLLs, initializing the widget set safely?

2009-12-09 Thread Mattias Gaertner
On Wed, 9 Dec 2009 09:33:32 +0100 "Gerard N/A" wrote: > On Tue, Dec 8, 2009 at 11:39 PM, Marco Alvarado wrote: > > I'm really happy to inform that I solved the bug, and now I have a > > working version of LCL 0.9.28.2 in DLL. It seems the fix might not be > > difficult for someone who understand

Re: [Lazarus] VoIP / SIP communication initiated from LCL apps | OFFTOPIC

2009-12-09 Thread Graeme Geldenhuys
2009/12/9 ik : > > I wrote some API for it for lnet (didn't released it though, but willing to > release it as lgpl), and told Ales about it. Please let me know if you do decide te release any such code. I would be interested at taking a look. I'm looking at the asterisk.org website now. -- Re

[Lazarus] How do you delete a wiki (spam) page?

2009-12-09 Thread Graeme Geldenhuys
This page was added today, and doesn't seem related to Lazarus at all. http://wiki.freepascal.org/Guides_To_Get_Runescape_Money_Easy -- Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ -

Re: [Lazarus] How do you delete a wiki (spam) page?

2009-12-09 Thread Graeme Geldenhuys
Maybe that user, Mdjww, should be banned as well? Graeme. 2009/12/9 Graeme Geldenhuys : > This page was added today, and doesn't seem related to Lazarus at all. > >   http://wiki.freepascal.org/Guides_To_Get_Runescape_Money_Easy > > -- > Regards, >  - Graeme - > > > _

Re: [Lazarus] VoIP / SIP communication initiated from LCL apps | OFFTOPIC

2009-12-09 Thread ik
http://ik.homelinux.org/ On Wed, Dec 9, 2009 at 11:03 AM, Graeme Geldenhuys wrote: > 2009/12/9 ik : > > > > I wrote some API for it for lnet (didn't released it though, but willing > to > > release it as lgpl), and told Ales about it. > > Please let me know if you do decide te release any such c

Re: [Lazarus] VoIP / SIP communication initiated from LCL apps | OFFTOPIC

2009-12-09 Thread Graeme Geldenhuys
2009/12/9 ik : > > I'll (I need time for it though, I have few old code of mine that I want to > release as foss). No rush, the new "value-add features" in our product will only be added in the next minor release. That's 6–12 months away. > Try also voip-info.org it's a wiki for Asterisk with a

[Lazarus] Fatal: Compilation aborted

2009-12-09 Thread Tomasz Wieckowski
I don't know whether this is a bug or the issue of compiler settings. I can't compile my project (randomly) because a get error "Fatal: Compilation aborted", messages from compilation are only "hints, notes and warnings" no errors, noticed that this error occurs in the various units (not always at

[Lazarus] If Assigned ()

2009-12-09 Thread ajv
Hello, How can I test if a "Procedure Of Object" is assigned? example: (mode delphi under Linux) Var PO : Procedure Of Object; PO := Nil; // OK If Assigned (PO) Then Writeln ('This should not be printed'); // It is printed !! In Delphi : Function Assigned (Const P) : Boolean In Lazarus

Re: [Lazarus] Cross Compile for arm-linux

2009-12-09 Thread Dariusz Mazur
Kjow pisze: Now I have this problem: /home/kjow/fpcarm/lib/fpc/2.5.1/ppcrossarm -XParm-linux- /home/kjow/Programmazione/TestARM/prova1.pas try /home/kjow/fpcarm/lib/fpc/2.5.1/ppcrossarm -XParm-linux- prova1.pas which is curr dir? have You write access to TestARM ? Free Pascal Compiler

Re: [Lazarus] Cross Compile for arm-linux

2009-12-09 Thread Kjow
2009/12/9 Dariusz Mazur : > try > > /home/kjow/fpcarm/lib/fpc/2.5.1/ppcrossarm  -XParm-linux-   prova1.pas > which is curr dir? > have You write access to TestARM ? > the same dir where You compile Ok, probably this is the mistake. Thank you! I was trying to compile from fpcscr (current dir) whe

Re: [Lazarus] If Assigned ()

2009-12-09 Thread Mattias Gärtner
Zitat von ajv : Hello, How can I test if a "Procedure Of Object" is assigned? example: (mode delphi under Linux) Var PO : Procedure Of Object; PO := Nil; // OK If Assigned (PO) Then Writeln ('This should not be printed'); // It is printed !! It is not printed here. Please provide a

Re: [Lazarus] Fatal: Compilation aborted

2009-12-09 Thread Michael Joyner ᏩᏯ
Tomasz Wieckowski wrote: I don't know whether this is a bug or the issue of compiler settings. I can't compile my project (randomly) because a get error "Fatal: Compilation aborted", messages from compilation are only "hints, notes and warnings" no errors, noticed that this error occurs in the va

Re: [Lazarus] If Assigned ()

2009-12-09 Thread ajv
Dear Mattias Gärtner, Thanks your your answer. I made the test project myself (which I should have done first), and indeed everything seems OK. Conclusion, it must be in the code of my application. I go into it. Best regards, Anthony Vogelaar ==

Re: [Lazarus] LCL and DLLs, initializing the widget set safely?

2009-12-09 Thread Marco Alvarado
I converted a demo of a Netscape plug-in from Delphi to Lazarus. I just found two bugs, one was solved by placing Application.Initialize() right before dynamically creating the form (I'm not using lfm), and another related to CreateParented(). With those bugs solved, now I have a perfectly running

[Lazarus] [FPC] Install from sources

2009-12-09 Thread Kjow
/source/fpc.zip ), Lazarus Sources ( http://snapshots.lazarus.shikami.org/files/lazarus-0.9.29-23043-20091209-src.zip ) and precompiled FPC ( http://snapshots.lazarus.shikami.org/files/fpc-2.2.4-20091209.i386.rpm ). I put on "/home/kjow/lazarus/" lazarus sources and on "/home/kjow/laza

Re: [Lazarus] LCL and DLLs, initializing the widget set safely?

2009-12-09 Thread zeljko
On Wednesday 09 December 2009 14:11, Marco Alvarado wrote: > I converted a demo of a Netscape plug-in from Delphi to Lazarus. I > just found two bugs, one was solved by placing > Application.Initialize() right before dynamically creating the form > (I'm not using lfm), and another related to Create

Re: [Lazarus] LCL and DLLs, initializing the widget set safely?

2009-12-09 Thread Marco Alvarado
Ok, I made one last test to load designed forms and works too. Here is the whole experiment for you guys to check (660KB): http://gamelix.com/demos/lazarus/nplugin/nplugin.7z The original Delphi 7 component by Andrei N. Kashin is there, my fixes are in directories prueba/ and prueba_lfm/ To test

Re: [Lazarus] LCL and DLLs, initializing the widget set safely?

2009-12-09 Thread Mattias Gärtner
Zitat von Marco Alvarado : I converted a demo of a Netscape plug-in from Delphi to Lazarus. I just found two bugs, one was solved by placing Application.Initialize() right before dynamically creating the form (I'm not using lfm), and another related to CreateParented(). With those bugs solved, n

Re: [Lazarus] [FPC] Install from sources

2009-12-09 Thread Mattias Gärtner
Zitat von Kjow : [...] /usr/local/bin/ld: cannot find -lncurses This means the linker can not find the library ncurses on your system. Download and install it from whatever BSD package repositories you prefer. Mattias -- ___ Lazarus mailing list

Re: [Lazarus] [FPC] Install from sources

2009-12-09 Thread Graeme Geldenhuys
Mattias Gärtner wrote: >> [...] >> /usr/local/bin/ld: cannot find -lncurses > > This means the linker can not find the library ncurses on your system. > Download and install it from whatever BSD package repositories you prefer. And under Linux that would normally be the *-dev (development) packa

Re: [Lazarus] LCL and DLLs, initializing the widget set safely?

2009-12-09 Thread Marco van de Voort
On Wed, Dec 09, 2009 at 08:11:17AM -0500, Marco Alvarado wrote: > I converted a demo of a Netscape plug-in from Delphi to Lazarus. I > just found two bugs, one was solved by placing > Application.Initialize() right before dynamically creating the form > (I'm not using lfm), and another related to C

Re: [Lazarus] LCL and DLLs, initializing the widget set safely?

2009-12-09 Thread Christian Budde
Hi Marco, Netscape is not created in lazarus, and doesn't communicate over plugin interface using pascal types. Which is exactly the problem packages try to solve. Please do not confuse the situation more than necessary. I don't think he is confusing the situation more than necessary, it was

Re: [Lazarus] LCL and DLLs, initializing the widget set safely?

2009-12-09 Thread Marco van de Voort
On Wed, Dec 09, 2009 at 10:01:22AM +0100, Mattias Gaertner wrote: > > On Tue, Dec 8, 2009 at 11:39 PM, Marco Alvarado > > wrote: > > > I'm really happy to inform that I solved the bug, and now I have a > > > working version of LCL 0.9.28.2 in DLL. It seems the fix might not be > > > difficult for

Re: [Lazarus] LCL and DLLs, initializing the widget set safely?

2009-12-09 Thread Marco van de Voort
On Wed, Dec 09, 2009 at 03:59:46PM +0100, Christian Budde wrote: > > Netscape is not created in lazarus, and doesn't communicate over plugin > > interface using pascal types. > > > > Which is exactly the problem packages try to solve. Please do not confuse > > the situation more than necessary. >

Re: [Lazarus] LCL and DLLs, initializing the widget set safely?

2009-12-09 Thread Florian Klaempfl
Marco van de Voort schrieb: > On Wed, Dec 09, 2009 at 03:59:46PM +0100, Christian Budde wrote: >>> Netscape is not created in lazarus, and doesn't communicate over plugin >>> interface using pascal types. >>> >>> Which is exactly the problem packages try to solve. Please do not confuse >>> the situ

Re: [Lazarus] [FPC] Install from sources

2009-12-09 Thread Kjow
2009/12/9 Graeme Geldenhuys : > And under Linux that would normally be the *-dev (development) packages. > On my Ubuntu 9.04 system that would be libncurses5-dev package. Thank you both! sudo apt-get install libncurses5-dev and it seems to compile right: ~/lazarus/fpc/2.5.1$ ppc386 -i Free Pasc

[Lazarus] [RESOLVIDO/SOLVED] TSqlite3Dataset : não salva os dados / don't save data

2009-12-09 Thread Guionardo Furlan
Buenas Usando o TSqlite3Dataset em um form com DBGrid, devidamente conectados, verifiquei que os dados não eram salvos no arquivo, mesmo executando ApplyUpdates. Além disso, ApplyUpdates retorna FALSE. Depois de alguma pesquisa, descobri que é necessário: Para o banco definido por: CREATE TABLE

Re: [Lazarus] [FPC] Install from sources

2009-12-09 Thread Kjow
2009/12/9 Kjow : > 1) sudo alien -i -c /home/kjow/fpc_tools/fpc-2.2.4-20091209.i386.rpm > 2) ppc386 -i (2.2.4 installed ok) > 3) cd /home/kjow/lazarus/fpc/2.5.1 > 4) make all OPT='-gl -O3p3' PP=/usr/bin/ppc386 5) sudo make install PP=/usr/bin/ppc386 PREFIX=/usr 6) sudo rm /

Re: [Lazarus] [FPC] Install from sources

2009-12-09 Thread Kjow
2009/12/9 Kjow : > /usr/local/bin/ld: cannot find -lX11 Sorry for flooding... I tried (and it worked) with installation of two dependencies: libXp-dev libgtk2.0-dev Now Lazarus starts :) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.or

[Lazarus] TCustomComboBox.ArrowKeysTraverseList mistery

2009-12-09 Thread zeljko
Hi all, Anyone on this planet knows why we have this property in LCL (and what this property is supposed to do) ? I've checked in K3 (CLX) and Delphi 7 (CLX & VCL) and couldn't find such property. Also, lazarus help says "ArrowKeysTraverseList - enables the operator to use the keyboard Arrow keys

Re: [Lazarus] TCustomComboBox.ArrowKeysTraverseList mistery

2009-12-09 Thread dmitry boyarintsev
On Wed, Dec 9, 2009 at 8:32 PM, zeljko wrote: > Anyone on this planet knows why we have this property in LCL (and what this > property is supposed to do) ? Imho, there's no need in such property. It's up to widgetset('s combo box) to allow keyboard traverse or not. thanks, dmitry --

Re: [Lazarus] TCustomComboBox.ArrowKeysTraverseList mistery

2009-12-09 Thread zeljko
On Wednesday 09 December 2009 18:37, dmitry boyarintsev wrote: > On Wed, Dec 9, 2009 at 8:32 PM, zeljko wrote: > > Anyone on this planet knows why we have this property in LCL (and what > > this property is supposed to do) ? > > Imho, there's no need in such property. It's up to widgetset('s combo

Re: [Lazarus] floating point mask

2009-12-09 Thread David Emerson
> David Emerson wrote: > > at first I overlooked "e+" which is valid for val (string, real) Alexander Klenin wrote: > No, it is not: > Val('e+', x, d); What I meant is that I first overlooked 'e' and '+' as valid characters that can appear together within a string to be converted to a float.

Re: [Lazarus] floating point mask

2009-12-09 Thread ik
You are over engineering this. Here is what I did (not completed yet): TfrmCalculator = class (TForm) edtAmount : TEdit ; edtPerc : TEdit ; edtResult : TEdit ; procedure edtAmountKeyDown (Sender : TObject ; var Key : Word ; Shift : TShiftState ); procedure edtAmountKeyP

Re: [Lazarus] Cross Compile for arm-linux

2009-12-09 Thread Kjow
Hi again, I re-compiled all (fpc+lazarus+binutils) on a fresh Ubuntu 9.10 x86 VM (virtualbox) and it seems to be ok. Lazarus compile x86 code. Now I'm trying again to make fpc/lazarus compatible with arm, but there are other problems. I compiled the ppcrossarm: ~$ ~/lazarus/fpc/2.5.1/lib/fpc/2.

Re: [Lazarus] [FPC] Install from sources

2009-12-09 Thread Vincent Snijders
Kjow schreef: 2009/12/9 Kjow : 1) sudo alien -i -c /home/kjow/fpc_tools/fpc-2.2.4-20091209.i386.rpm Why did you use alien on a rpm instead of installing the debs? Vincent -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http

Re: [Lazarus] [FPC] Install from sources

2009-12-09 Thread Kjow
2009/12/9 Vincent Snijders : > Why did you use alien on a rpm instead of installing the debs? Because it is a smaller download (for this purpuse) and it has simpler management (no unpack and one file instead 19 files). :) -- ___ Lazarus mailing list Laz

Re: [Lazarus] [FPC] Install from sources

2009-12-09 Thread Vincent Snijders
Kjow schreef: 2009/12/9 Vincent Snijders : Why did you use alien on a rpm instead of installing the debs? Because it is a smaller download (for this purpuse) and it has simpler management (no unpack and one file instead 19 files). :) I see. I think if you used the debs and a package manager,

[Lazarus] ctrl+j rename possible bug

2009-12-09 Thread ik
Hello, I'm using Lazarus 0.9.29 r23051M FPC 2.5.1 x86_64-linux-gtk 2 (beta) . I selected a whole procedure and used CTRL+J to rename a local variable and it's whole usage in the code like so: procedure a_test; var SelStart : integer; begin SelStart := Edit1.SelStart; ... end; When I renamed

Re: [Lazarus] [FPC] Install from sources

2009-12-09 Thread Kjow
2009/12/9 Vincent Snijders : > I see. I think if you used the debs and a package manager, the package > manager would have installed the ncurses lib. Thank you! Good to know! Kjow -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://

Re: [Lazarus] ctrl+j rename possible bug

2009-12-09 Thread Vincent Snijders
ik schreef: Hello, I'm using Lazarus 0.9.29 r23051M FPC 2.5.1 x86_64-linux-gtk 2 (beta) . I selected a whole procedure and used CTRL+J to rename a local variable and it's whole usage in the code like so: procedure a_test; var SelStart : integer; begin SelStart := Edit1.SelStart; ... end;

Re: [Lazarus] ctrl+j rename possible bug

2009-12-09 Thread Vincent Snijders
Vincent Snijders schreef: The expected result is not to touch the property itself. Can it be configured somehow, or should I report it as a bug ? IIRC, such a bg already has been reported. Found it: http://bugs.freepascal.org/view.php?id=10978 Vincent -- _

Re: [Lazarus] Cross Compile for arm-linux

2009-12-09 Thread Kjow
It works!!! My Nokia N900 says its first console word: "Hello!" :D With ~/lazarus/fpc/2.5.1/lib/fpc/2.5.1/ppcrossarm -va I saw that fpc didn't load "arm fpc.cfg" so I saved it to ~/.fpc.cfg and than I had to adjust a couple of path on it. After that I launched: ~/lazarus/fpc/2.5.1/lib/fpc/2.5.

Re: [Lazarus] ctrl+j rename possible bug

2009-12-09 Thread Martin
ik wrote: Hello, I'm using Lazarus 0.9.29 r23051M FPC 2.5.1 x86_64-linux-gtk 2 (beta) . I selected a whole procedure and used CTRL+J to rename a local variable and it's whole usage in the code like so: procedure a_test; var SelStart : integer; begin SelStart := Edit1.SelStart; ... end;

Re: [Lazarus] ctrl+j rename possible bug

2009-12-09 Thread Mattias Gaertner
On Wed, 9 Dec 2009 22:25:55 +0200 ik wrote: > Hello, > > I'm using Lazarus 0.9.29 r23051M FPC 2.5.1 x86_64-linux-gtk 2 (beta) . > > I selected a whole procedure and used CTRL+J to rename a local variable and > it's whole usage in the code like so: > > procedure a_test; > var > SelStart : int

Re: [Lazarus] ctrl+j rename possible bug

2009-12-09 Thread Mattias Gaertner
On Wed, 09 Dec 2009 21:58:27 +0100 Vincent Snijders wrote: > Vincent Snijders schreef: > >> The expected result is not to touch the property itself. > >> > >> Can it be configured somehow, or should I report it as a bug ? > >> > > > > IIRC, such a bg already has been reported. > > > > Found it

[Lazarus] form designer component dragging bug?

2009-12-09 Thread Seth Grover
I'm not sure exactly when I started experiencing this, but it's driving me crazy. I'm running Lazarus 0.9.28.3 beta (from fixes_0_9_28 branch in svn) with FPC 2.4.0 (from release_2_4_0 tag in svn) under Ubuntu 9.10 with the gtk2 widget set. I run lazarus, and the default project comes up with a b

[Lazarus] Lazarus minimization and code editor maximization issues

2009-12-09 Thread Paul Nicholls
Hi all, I'm running Lazarus 0.9.28.2 (Win32), and have noticed two issues... 1.When I click on the minimization button on the main Lazarus program window, more often than not, only the top part of Lazarus minimizes...it leaves the editor window, messages window, etc. still there. This m

Re: [Lazarus] form designer component dragging bug?

2009-12-09 Thread patspiper
Seth Grover wrote: I'm not sure exactly when I started experiencing this, but it's driving me crazy. I'm running Lazarus 0.9.28.3 beta (from fixes_0_9_28 branch in svn) with FPC 2.4.0 (from release_2_4_0 tag in svn) under Ubuntu 9.10 with the gtk2 widget set. I run lazarus, and the default proj

[Lazarus] TField.AsInteger on text field

2009-12-09 Thread Paul van Helden
Hi All, A client has changed a field type in a SQLite db from INTEGER to TEXT. My app now crashes on a AField.AsInteger:=1; (Invalid type conversion to integer in field...) Should the correct behaviour not be to simply convert to text in the AsInteger setter and attempt StrToInt in the gette

Re: [Lazarus] [FPC] Install from sources

2009-12-09 Thread Graeme Geldenhuys
Kjow wrote: > 2009/12/9 Kjow : >> /usr/local/bin/ld: cannot find -lX11 > > Sorry for flooding... > > I tried (and it worked) with installation of two dependencies: > libXp-dev libgtk2.0-dev Yeah, the dependency rule is tricky in the beginning, until know what the error means. Under Linux with li

Re: [Lazarus] [FPC] Install from sources

2009-12-09 Thread Graeme Geldenhuys
Kjow wrote: > > Because it is a smaller download (for this purpuse) and it has simpler > management (no unpack and one file instead 19 files). :) I also don't know why they decided to split FPC into so many .deb packages. As a developer, you would want all those anyway, so why not save everybody

Re: [Lazarus] Lazarus minimization and code editor maximization issues

2009-12-09 Thread Graeme Geldenhuys
Paul Nicholls wrote: > 2.When I click on the maximization button on the code editor window, > it maximizes over the top of all other windows in Lazarus, and doesn't > stop underneath the top part of Lazarus like it does in Delphi ( I do > realize this is NOT Delphi...LOL ) And what would happe