Re: [Lazarus] Generalized DragDrop

2011-01-24 Thread Graeme Geldenhuys
Op 2011-01-23 22:09, Hans-Peter Diettrich het geskryf: Either different applications have to agree about exchangable data formats, What's wrong with that? That is exactly what *all* DND implementation do! The Source of the DND action supplies a list of data types they support, the target goes

Re: [Lazarus] Accessing MS SQLServer database from Lazarus/FPC?

2011-01-24 Thread Graeme Geldenhuys
Op 2011-01-24 09:57, Andreas Schneider het geskryf: That probably won't work and will only cause trouble. He is probably using the LCL counterpart to sqldb (lazsqldb or however it's called) Ah, good point. I always use the database components directly from FCL, so this does work in my cause

Re: [Lazarus] Generalized DragDrop

2011-01-24 Thread michael . vancanneyt
On Sun, 23 Jan 2011, Hans-Peter Diettrich wrote: Michael Van Canneyt schrieb: i.e. I have used the application-specific DnD, but I wouldn't know how to handle the intra-app DnD. Simply start the demo app twice, then drag... I was thinking about something non-trivial, of course. Please

Re: [Lazarus] Accessing MS SQLServer database from Lazarus/FPC?

2011-01-24 Thread Bo Berglund
On Mon, 24 Jan 2011 10:26:14 +0200, Graeme Geldenhuys graemeg.li...@gmail.com wrote: Op 2011-01-24 09:57, Andreas Schneider het geskryf: That probably won't work and will only cause trouble. He is probably using the LCL counterpart to sqldb (lazsqldb or however it's called) Ah, good point.

Re: [Lazarus] Accessing MS SQLServer database from Lazarus/FPC?

2011-01-24 Thread Graeme Geldenhuys
Op 2011-01-24 10:35, Bo Berglund het geskryf: Pray: God can't help you here, I think he subscribed to another mailing list. :) exactly how do you do this? What ia FCL? As Michael said. FCL = Free Component Library. It is included with FPC and contains lost of non-GUI components. That would be

Re: [Lazarus] Accessing MS SQLServer database from Lazarus/FPC?

2011-01-24 Thread Vincent Snijders
2011/1/24 Graeme Geldenhuys graemeg.li...@gmail.com: Op 2011-01-24 10:35, Bo Berglund het geskryf: The rest of the instruction I have listed before, or what Michael listed should solve your problem. I always install FPC in a non-standard location, so for me it is a requirement to specify the

Re: [Lazarus] Generalized DragDrop

2011-01-24 Thread Graeme Geldenhuys
Op 2011-01-24 10:32, michael.vancann...@wisa.be het geskryf: Drop a piece of text from wordpad on a TMemo. The text should be inserted at the drop point. From the discussion, I assume you are still referring to fpGUI functionality (or the lack thereof). This is all on my todo list. As I

Re: [Lazarus] Accessing MS SQLServer database from Lazarus/FPC?

2011-01-24 Thread Graeme Geldenhuys
Op 2011-01-24 11:33, Vincent Snijders het geskryf: I would not bet on the make files knowing in what directory the installer put the compiled unit and explicitly mention the install prefix, especially on windows. Oh, I thought that was only a Linux issue. I guess I should never assume

Re: [Lazarus] Generalized DragDrop

2011-01-24 Thread michael . vancanneyt
On Mon, 24 Jan 2011, Graeme Geldenhuys wrote: Op 2011-01-24 10:32, michael.vancann...@wisa.be het geskryf: Drop a piece of text from wordpad on a TMemo. The text should be inserted at the drop point. From the discussion, I assume you are still referring to fpGUI functionality (or the

[Lazarus] problem with gtk2 Event Queue

2011-01-24 Thread Michael Schnell
On 01/21/2011 05:57 PM, Michael Schnell wrote: Very funny: I did a slightly less complex test program and here TThread.synchronize does work as expected in gtk2. I found that the difference is this: If the memo that displays the messages resulting from the threads activity (via

Re: [Lazarus] problem with gtk2 Event Queue

2011-01-24 Thread Henry Vermaak
On 24/01/11 09:56, Michael Schnell wrote: On 01/21/2011 05:57 PM, Michael Schnell wrote: Very funny: I did a slightly less complex test program and here TThread.synchronize does work as expected in gtk2. I found that the difference is this: If the memo that displays the messages resulting

Re: [Lazarus] problem with gtk2 Event Queue

2011-01-24 Thread Michael Schnell
See Bugtracker ID 0013120 -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Command make idepkg or similar

2011-01-24 Thread Alexsander Rosa
To update lazarus you can use []$ svn update lazarus then for either update pathway: []$ make clean all (gmake on BSD) This will rebuild lazarus and create an IDE without lazarus packages. To link your installed packages do *after* the above: []$ ./lazbuild --build-ide= Thanks

Re: [Lazarus] problem with gtk2 Event Queue

2011-01-24 Thread Michael Schnell
The QueueAsyncCall bug is known, as I've said before. Please create a bug report for Synchronize with an example project. They can be marked as related if it turns out that way. OK, as you really want me to, I'll create another report not with the headline synchronize instead of

Re: [Lazarus] Generalized DragDrop

2011-01-24 Thread Hans-Peter Diettrich
Graeme Geldenhuys schrieb: whether the fpGUI approach may be added to the LCL as well, or what should work differently there. I'm afraid you will probably get the response that it's not Delphi compatible. ;) Of course your approach is not yet Delphi compatible, but it *can* be merged

Re: [Lazarus] Generalized DragDrop

2011-01-24 Thread Hans-Peter Diettrich
Graeme Geldenhuys schrieb: Op 2011-01-23 22:09, Hans-Peter Diettrich het geskryf: Either different applications have to agree about exchangable data formats, What's wrong with that? That is exactly what *all* DND implementation do! The Source of the DND action supplies a list of data types

Re: [Lazarus] Generalized DragDrop

2011-01-24 Thread Hans-Peter Diettrich
michael.vancann...@wisa.be schrieb: I was thinking about something non-trivial, of course. Please specify what non-trivial use you have in mind, and what results you expect to see in this very early implementation stage (proof of concetpt). Drop a piece of text from wordpad on a TMemo.

Re: [Lazarus] Generalized DragDrop

2011-01-24 Thread Hans-Peter Diettrich
waldo kitty schrieb: i'm late to the party (again) but reading this, i had these questions... 1. what GUI environments are there that do not have clipboards? Dunno. Most will have such a feature, but the implementation can vary. 2. are there any that do /not/ use the clipboard for DnD

[Lazarus] Getting the IDE source editor font

2011-01-24 Thread michael . vancanneyt
Hi, Since the recent font handling changes, some dialogs in the IDE that are using TSynEdit have become unreadable (font size down to 6 pixels or less). The query editors of SQLDB for instance. I want to remedy this by setting the font for these synedit controls to the same font as used by

Re: [Lazarus] problem with gtk2 Event Queue

2011-01-24 Thread Michael Schnell
On 01/24/2011 11:43 AM, Henry Vermaak wrote: The QueueAsyncCall bug is known, as I've said before. Please create a bug report for Synchronize with an example project. OK, Done. -Michael -- ___ Lazarus mailing list

Re: [Lazarus] Accessing MS SQLServer database from Lazarus/FPC?

2011-01-24 Thread Marcos Douglas
On Sun, Jan 23, 2011 at 7:25 PM, Bo Berglund bo.bergl...@gmail.com wrote: On Sun, 23 Jan 2011 19:25:35 -0200, Marcos Douglas m...@delfire.net See this tutorial to build FPC and Lazarus on Windows:

Re: [Lazarus] Getting the IDE source editor font

2011-01-24 Thread Mattias Gaertner
    michael.vancann...@wisa.be hat am 24. Januar 2011 um 11:57 geschrieben: Hi, Since the recent font handling changes, some dialogs in the IDE that are using TSynEdit have become unreadable (font size down to 6 pixels or less). The query editors of SQLDB for instance. I want to remedy

Re: [Lazarus] Getting the IDE source editor font

2011-01-24 Thread Mattias Gaertner
    Mattias Gaertner nc-gaert...@netcologne.de hat am 24. Januar 2011 um 13:12 geschrieben:     michael.vancann...@wisa.be hat am 24. Januar 2011 um 11:57 geschrieben: Hi, Since the recent font handling changes, some dialogs in the IDE that are using TSynEdit have become

Re: [Lazarus] Getting the IDE source editor font

2011-01-24 Thread Vincent Snijders
2011/1/24 Mattias Gaertner nc-gaert...@netcologne.de: I added it to the wiki: http://wiki.lazarus.freepascal.org/Extending_the_IDE#SynEdit With link to real life example for the sqldb sql property editor. Vincent -- ___ Lazarus mailing list

Re: [Lazarus] Getting the IDE source editor font

2011-01-24 Thread michael . vancanneyt
On Mon, 24 Jan 2011, Mattias Gaertner wrote:     Mattias Gaertner nc-gaert...@netcologne.de hat am 24. Januar 2011 um 13:12 geschrieben:     michael.vancann...@wisa.be hat am 24. Januar 2011 um 11:57 geschrieben: Hi, Since the recent font handling changes, some dialogs in the IDE

Re: [Lazarus] Getting the IDE source editor font

2011-01-24 Thread michael . vancanneyt
On Mon, 24 Jan 2011, zeljko wrote: They are clearly different. I would think that the same font is used ? looks like height vs. size mismatch That may be so, but then the IDE routines are at fault, since they are the only routines used to set the font ? Michael. --

[Lazarus] Lazarus main lpi generates svn conflicts

2011-01-24 Thread Alexsander Rosa
Is there a way to allow a team open the same project in Lazarus (each coder editing a different form) without the constant conflicts on SVN in the main .lpi file? Maybe a project option or something? -- Atenciosamente, Alexsander da Rosa Linux User #113925 Extremismo na defesa da liberdade não

Re: [Lazarus] Lazarus main lpi generates svn conflicts

2011-01-24 Thread Henry Vermaak
On 24/01/11 13:48, Alexsander Rosa wrote: Is there a way to allow a team open the same project in Lazarus (each coder editing a different form) without the constant conflicts on SVN in the main .lpi file? Maybe a project option or something? You can choose to save the session info into a

Re: [Lazarus] Lazarus main lpi generates svn conflicts

2011-01-24 Thread Mattias Gaertner
    Alexsander Rosa alexsander.r...@gmail.com hat am 24. Januar 2011 um 14:48 geschrieben: Is there a way to allow a team open the same project in Lazarus (each coder editing a different form) without the constant conflicts on SVN in the main .lpi file? Maybe a project option or something?  

Re: [Lazarus] Lazarus main lpi generates svn conflicts

2011-01-24 Thread Alexsander Rosa
Thanks Henry and Mattias! 2011/1/24 Mattias Gaertner nc-gaert...@netcologne.de Alexsander Rosa alexsander.r...@gmail.com hat am 24. Januar 2011 um 14:48 geschrieben: Is there a way to allow a team open the same project in Lazarus (each coder editing a different form) without the

Re: [Lazarus] TAChart: Please help reproduce axis drawing bug

2011-01-24 Thread abonnent
Alexander Klenin schrieb: The user reports an axis drawing bug in TAChart: http://www.lazarus.freepascal.org/index.php/topic,11893.0.html However, I can not reproduce in neither on Win32 nor on Gtk2/Win. So can somebody with Gtk/Linux try to reproduce? I compiled your attached project

[Lazarus] focus vs. parent changing

2011-01-24 Thread u-boot
Same question here as in irc nobody answered it a few hours ago. I tried the following lines. It does not work with setfocus before parent changing. My question is, if it should work in this order or if this is correct behaviour. procedure TForm1.Button1Click(Sender: TObject); begin

[Lazarus] ICS on Lazarus?

2011-01-24 Thread Joshua Lim
Hi, i've a major project that uses ICS, and I intend to port it to Lazarus. Has anyone used ICS on Lazarus successfully? Thanks. Rgds, Joshua -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] ICS on Lazarus?

2011-01-24 Thread Alexsander Rosa
Internet Conection Sharing? 2011/1/24 Joshua Lim joshua__...@hotmail.com Hi, i've a major project that uses ICS, and I intend to port it to Lazarus. Has anyone used ICS on Lazarus successfully? Thanks. Rgds, Joshua -- Atenciosamente, Alexsander da Rosa Linux User #113925 Extremismo

Re: [Lazarus] ICS on Lazarus?

2011-01-24 Thread Joshua Lim
Hi Alexsander, thanks, i meant the ICS TCP component. But I found my answer, it can't work in Linux, so no go. :-( Alexsander Rosa wrote: Internet Conection Sharing? 2011/1/24 Joshua Lim joshua__...@hotmail.com mailto:joshua__...@hotmail.com Hi, i've a major project that uses ICS,

Re: [Lazarus] ICS on Lazarus?

2011-01-24 Thread Howard Page-Clark
On 24/1/11 5:16, Joshua Lim wrote: Hi, i've a major project that uses ICS, and I intend to port it to Lazarus. Has anyone used ICS on Lazarus successfully? Note - you seem to have hijacked a thread with a different subject, I presume by mistake. The webservices toolkit (WST) available at:

Re: [Lazarus] Accessing MS SQLServer database from Lazarus/FPC?

2011-01-24 Thread Bo Berglund
On Sun, 23 Jan 2011 12:06:12 +0100 (CET), Michael Van Canneyt mich...@freepascal.org wrote: On Sat, 22 Jan 2011, Bo Berglund wrote: On Fri, 21 Jan 2011 17:30:57 +0100 (CET), michael.vancann...@wisa.be wrote: Without the error message, we cannot begin to start looking for a solution.

Re: [Lazarus] Displaying property values while debugging

2011-01-24 Thread Bo Berglund
On Sun, 23 Jan 2011 23:46:55 +, Martin laza...@mfriebe.de wrote: On 23/01/2011 20:29, Bo Berglund wrote: While debugging my test database application I tried to do as I ussually do in Delphi to see property values, namely to hover the mouse over a keyword when the execution has stopped in

Re: [Lazarus] Accessing MS SQLServer database from Lazarus/FPC?

2011-01-24 Thread Bo Berglund
On Mon, 24 Jan 2011 09:28:05 +0200, Graeme Geldenhuys graemeg.li...@gmail.com wrote: Alternatively, add the SqlDB source path to your project, then when you compile your project, it will compile the SqlDB code too - as if it was part of your project source code. Thanks, this was the simple way

Re: [Lazarus] Accessing MS SQLServer database from Lazarus/FPC?

2011-01-24 Thread Dipl. Phys. Jörg Schläger
-- Dipl. Phys. Jörg SchlägerZitat von Bo Berglund bo.bergl...@gmail.com: On Mon, 24 Jan 2011 09:28:05 +0200, Graeme Geldenhuys graemeg.li...@gmail.com wrote: Alternatively, add the SqlDB source path to your project, then when you compile your project, it will compile the SqlDB code too -

Re: [Lazarus] Displaying property values while debugging

2011-01-24 Thread Martin
On 24/01/2011 17:54, Bo Berglund wrote: On Sun, 23 Jan 2011 23:46:55 +, Martinlaza...@mfriebe.de wrote: On 23/01/2011 20:29, Bo Berglund wrote: While debugging my test database application I tried to do as I ussually do in Delphi to see property values, namely to hover the mouse over a

Re: [Lazarus] Accessing MS SQLServer database from Lazarus/FPC?

2011-01-24 Thread Bo Berglund
On Mon, 24 Jan 2011 19:15:13 +0100, Dipl. Phys. Jörg Schläger j...@jsdevelop.de wrote: Thanks, this was the simple way I have been looking for! Now that I did that the patch activated and I could see that it no longer barfs at the EXEC verb. Still only returns one record out of 4, though.

Re: [Lazarus] Accessing MS SQLServer database from Lazarus/FPC?

2011-01-24 Thread Michael Van Canneyt
On Mon, 24 Jan 2011, Bo Berglund wrote: On Mon, 24 Jan 2011 19:15:13 +0100, Dipl. Phys. Jörg Schläger j...@jsdevelop.de wrote: Thanks, this was the simple way I have been looking for! Now that I did that the patch activated and I could see that it no longer barfs at the EXEC verb. Still

Re: [Lazarus] Lazarus main lpi generates svn conflicts

2011-01-24 Thread Burkhard Carstens
  Save the session information to a separate file: Project / Project Options / Session / Save in .lps file IMO this should be default. It's very anoying to set this each time I create a new project. or Save in IDE config directory. ? regards Burkhard --

Re: [Lazarus] Accessing MS SQLServer database from Lazarus/FPC?

2011-01-24 Thread Bo Berglund
On Mon, 24 Jan 2011 22:20:38 +0100 (CET), Michael Van Canneyt mich...@freepascal.org wrote: As an experiment I added a line as follows after the query.Open statement: i := query.RecordCount; But this only affirms the fact that the recordset handled by the query only contains a single

Re: [Lazarus] Accessing MS SQLServer database from Lazarus/FPC?

2011-01-24 Thread Bo Berglund
On Mon, 24 Jan 2011 22:20:38 +0100 (CET), Michael Van Canneyt mich...@freepascal.org wrote: In general RecordCount cannot be trusted; It can be updated as the TDataset fetches records. In each case: SQLDB relies on ODBC to connect to MS-SQL. From testing with MS-Access and MySQL I know that

Re: [Lazarus] Accessing MS SQLServer database from Lazarus/FPC?

2011-01-24 Thread Dipl. Phys. Jörg Schläger
-- Dipl. Phys. Jörg SchlägerZitat von Bo Berglund bo.bergl...@gmail.com: 1. Can you test a regular SELECT statement on the same SQL database ? If that doesn't work either, we know the problem is in the ODBC connection component. 2. Can you test the same EXEC statement in a Delphi app

Re: [Lazarus] Lazarus main lpi generates svn conflicts

2011-01-24 Thread Mattias Gaertner
On Mon, 24 Jan 2011 22:52:54 +0100 Burkhard Carstens f...@bcsoft.de wrote:   Save the session information to a separate file: Project / Project Options / Session / Save in .lps file IMO this should be default. It's very anoying to set this each time I create a new project. For

[Lazarus] IDE package interface question

2011-01-24 Thread Darius Blaszyk
Hi, How can I get the source filename, method name and position on clicking the source editor through the ideintf? I would like to have this so I can make my IDE package (fpprofiler) context sensitive. Regards, Darius -- ___ Lazarus mailing list

Re: [Lazarus] Accessing MS SQLServer database from Lazarus/FPC?

2011-01-24 Thread Bo Berglund
On Tue, 25 Jan 2011 00:04:27 +0100, Dipl. Phys. Jörg Schläger j...@jsdevelop.de wrote: I used the following code in progs compiled with delphi 5, delphi7 and delphi 2007 with winxp sp1 to win 7 with MSsql2000 and MSsql2005 without problem Listbox1.Clear; Query1.sql.Clear;

Re: [Lazarus] IDE package interface question

2011-01-24 Thread Mattias Gaertner
On Tue, 25 Jan 2011 00:23:44 +0100 Darius Blaszyk dhkblas...@zeelandnet.nl wrote: Hi, How can I get the source filename, method name and position on clicking the source editor through the ideintf? I would like to have this so I can make my IDE package (fpprofiler) context sensitive.

Re: [Lazarus] IDE package interface question

2011-01-24 Thread Darius Blaszyk
What I would like to do is to update a listview (in my package) after I click on the source editor. So I need to hook into the source editor's OnClick method and get the procedure/function name, line number and the file name. The last two items will probably be more easy, but what about the

Re: [Lazarus] IDE package interface question

2011-01-24 Thread Mattias Gaertner
On Tue, 25 Jan 2011 00:51:07 +0100 Darius Blaszyk dhkblas...@zeelandnet.nl wrote: What I would like to do is to update a listview (in my package) after I click on the source editor. So I need to hook into the source editor's OnClick method and get the procedure/function name, line number and

Re: [Lazarus] IDE package interface question

2011-01-24 Thread Darius Blaszyk
On Jan 25, 2011, at 1:03 AM, Mattias Gaertner wrote: On Tue, 25 Jan 2011 00:51:07 +0100 Darius Blaszyk dhkblas...@zeelandnet.nl wrote: What I would like to do is to update a listview (in my package) after I click on the source editor. So I need to hook into the source editor's OnClick

Re: [Lazarus] IDE package interface question

2011-01-24 Thread Martin
On 24/01/2011 23:51, Darius Blaszyk wrote: What I would like to do is to update a listview (in my package) after I click on the source editor. So I need to hook into the source editor's OnClick method and get the procedure/function name, line number and the file name. The last two items will

Re: [Lazarus] IDE package interface question

2011-01-24 Thread Martin
On 25/01/2011 00:18, Martin wrote: At this point I noticed your next post. RegisterStatusChangedHandler in synedit = see what fpdoc edit does ide\fpdoceditwindow.pas line 297 -- ___ Lazarus mailing list

Re: [Lazarus] focus vs. parent changing

2011-01-24 Thread u-boot
I know that the other order works for my simple procedure. I asked because i inspected a bug, that is described in the german forum (http://www.lazarusforum.de/viewtopic.php?f=18t=4599 http://www.lazarusforum.de/viewtopic.php?f=18t=4599): following code was tried in

[Lazarus] What is the future of NoGUI widget set?

2011-01-24 Thread Frank Church
I am finding the NoGUI option useful in converting projects using TDataModules to Linux, but there is some talk about phasing it out. Can anyone clarify the original purpose behind its existence and whether it is problem free so long as no forms or controls are activated within the App? --

[Lazarus] Warning: APPTYPE is not supported by the target OS

2011-01-24 Thread Frank Church
When I compile a Windows app in Linux, I get this message systemDM.lpr(2,2) Warning: APPTYPE is not supported by the target OS What does it mean? -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing