Re: [Lazarus] anchors on centos

2011-01-21 Thread Andrea Mauri
Il 18/01/2011 18:57, zeljko ha scritto: Centos 5.5 updated with last pkgs (I run under ubuntu using virtualbox) Gtk2-2.10.4-21 This is potential problem. Minimum gtk2 version I have is 2.12. On the lazarus wiki http://wiki.lazarus.freepascal.org/GTK2_Interface#Introduction is reported

Re: [Lazarus] Even more radical suggestion regarding Event Queues

2011-01-21 Thread Michael Schnell
On 01/20/2011 01:11 PM, michael.vancann...@wisa.be wrote: I would never use a widget set with the structure you describe. Threading problems are extremely difficult to debug, doubly so in an event based system. That's the radical part :). What's more, X11 is not thread-safe at all. That is

Re: [Lazarus] Even more radical suggestion regarding Event Queues

2011-01-21 Thread Michael Schnell
On 01/20/2011 01:20 PM, Henry Vermaak wrote: No, it's very easy to do. At least gtk and qt has dedicated functions to do just this (g_main_context_wakeup() and QEventLoop::wakeUp()). Lazarus just has to do this after QueueAsyncCall (I do this manually myself for the moment). I suppose this is

Re: [Lazarus] Even more radical suggestion regarding Event Queues

2011-01-21 Thread Michael Schnell
On 01/21/2011 10:29 AM, Michael Schnell wrote: my example shows ... using gtk2, I'll try to retest with qt right now... -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Even more radical suggestion regarding Event Queues

2011-01-21 Thread Michael Schnell
On 01/21/2011 10:32 AM, Michael Schnell wrote: I'll try to retest with qt right now... I'm lacking IQt4 for this. How to get it ? -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Even more radical suggestion regarding Event Queues

2011-01-21 Thread Henry Vermaak
On 21/01/11 09:29, Michael Schnell wrote: On 01/20/2011 01:20 PM, Henry Vermaak wrote: No, it's very easy to do. At least gtk and qt has dedicated functions to do just this (g_main_context_wakeup() and QEventLoop::wakeUp()). Lazarus just has to do this after QueueAsyncCall (I do this manually

Re: [Lazarus] Even more radical suggestion regarding Event Queues

2011-01-21 Thread Michael Schnell
On 01/21/2011 11:55 AM, Henry Vermaak wrote: Report a bug with a simple example program, please. AFAIK, there already is a bug report on that in the bug tracker (I once read it but some days ago I failed to find it, though). Moreover it would be good to do a test with qt as well, before

Re: [Lazarus] anchors on centos

2011-01-21 Thread Juha Manninen
Andrea Mauri kirjoitti perjantai 21 tammikuu 2011 11:05:21: Il 18/01/2011 18:57, zeljko ha scritto: Centos 5.5 updated with last pkgs (I run under ubuntu using virtualbox) Gtk2-2.10.4-21 This is potential problem. Minimum gtk2 version I have is 2.12. On the lazarus wiki

Re: [Lazarus] Even more radical suggestion regarding Event Queues

2011-01-21 Thread Henry Vermaak
On 21/01/11 11:35, Michael Schnell wrote: In the thread Event handling example project: results for gtk2 and fpGUI I already stated that it suffers from the same problem as TThread.Synchronize. That doesn't mean it isn't done, that means it has a bug. So in fact it might be a good idea to

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

2011-01-21 Thread Inoussa OUEDRAOGO
2011/1/20 Graeme Geldenhuys graemeg.li...@gmail.com On 20 January 2011 20:28, Bo Berglund bo.bergl...@gmail.com wrote: Use query.ExecSQL instead of query.Open even in Delphi! Not if the stored procedure returns a recordset And with this whole mess I would end by saying: And that is

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

2011-01-21 Thread Vincent Snijders
2011/1/21 Inoussa OUEDRAOGO inouss...@gmail.com: 2011/1/20 Graeme Geldenhuys graemeg.li...@gmail.com And with this whole mess I would end by saying:  And that is why you will not see me ever use a Stored Procedure! 99.99% of the time they contain business logic, which doesn't belong in the

Re: [Lazarus] Even more radical suggestion regarding Event Queues

2011-01-21 Thread Michael Schnell
On 01/21/2011 01:05 PM, Henry Vermaak wrote: As I've said in the bug report, I call g_main_context_wakeup(g_main_context_default) myself to wake up the loop. This works perfectly, but is obviously suboptimal, since it need to be inside an ifdef. Am I wrong assuming that WakeUpMainThread

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

2011-01-21 Thread Frank Church
On 20 January 2011 20:05, Graeme Geldenhuys graemeg.li...@gmail.com wrote: On 20 January 2011 20:28, Bo Berglund bo.bergl...@gmail.com wrote: Use query.ExecSQL instead of query.Open even in Delphi! Not if the stored procedure returns a recordset And with this whole mess I would end

Re: [Lazarus] Even more radical suggestion regarding Event Queues

2011-01-21 Thread Henry Vermaak
On 21/01/11 12:36, Michael Schnell wrote: On 01/21/2011 01:05 PM, Henry Vermaak wrote: As I've said in the bug report, I call g_main_context_wakeup(g_main_context_default) myself to wake up the loop. This works perfectly, but is obviously suboptimal, since it need to be inside an ifdef. Am I

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

2011-01-21 Thread Vincent Snijders
2011/1/21 Frank Church vfcli...@gmail.com: Apologies to Vincent, I just couldn't resist, I need to say that Stored Well, I thought the people subscribed to the list where grown ups, that don't need enforced moderation ... I enabled moderation on this thread. Vincent --

Re: [Lazarus] anchors on centos

2011-01-21 Thread Andrea Mauri
Il 21/01/2011 12:55, zeljko ha scritto: 3.@Andrea , I didn't say that minimum version is 2.12, I just said that nearest version I have is 2.12. yes I understood. I only point that because I saw 2.6 on the wiki. anyway thanks for your efforts. andrea --

Re: [Lazarus] Even more radical suggestion regarding Event Queues

2011-01-21 Thread Michael Schnell
On 01/21/2011 01:49 PM, Henry Vermaak wrote: Yes. Look at TGtk2WidgetSet.InitSynchronizeSupport in gtk2widgetset.inc. It creates a pipe, which gets watched by the main loop. PrepareSynchronize then just writes something to the pipe, which wakes up the main func via the watched pipe. Or

[Lazarus] headaches trying to create x86_64 to i386 cross-compile deb package

2011-01-21 Thread Seth Grover
(Cross-posted from the fpc-pascal list at Jonas' suggestion) I've been trying to follow the directions here http://wiki.lazarus.freepascal.org/How_to_setup_a_FPC_and_Lazarus_Ubuntu_repository to build FPC .deb packages. I was able to build fpc_2.4.2-110120_amd64.deb and

Re: [Lazarus] anchors on centos

2011-01-21 Thread zeljko
On Friday 21 of January 2011 14:03:43 Andrea Mauri wrote: Il 21/01/2011 12:55, zeljko ha scritto: 3.@Andrea , I didn't say that minimum version is 2.12, I just said that nearest version I have is 2.12. yes I understood. I only point that because I saw 2.6 on the wiki. anyway thanks for

Re: [Lazarus] anchors on centos

2011-01-21 Thread Andrea Mauri
Il 21/01/2011 16:09, zeljko ha scritto: Both issues are fixed ,you can test. tested. both are working now. great! -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] headaches trying to create x86_64 to i386 cross-compile deb package

2011-01-21 Thread Hans-Peter Diettrich
Seth Grover schrieb: However, I'm now trying to build a package for the x86_64 to i386 cross compiler. AFAIK there is a problem, because x86_64 mode does not support Extended. Dunno whether this is related to your problems. DoDi -- ___ Lazarus

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

2011-01-21 Thread Bo Berglund
On Fri, 21 Jan 2011 13:14:15 +0100, Vincent Snijders vincent.snijd...@gmail.com wrote: This is off topic, please use lazarus-other list. My question was why a database component that ships with *lazarus* would not work with a perfectly legitimate SQL command (which we have used for years in

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

2011-01-21 Thread Vincent Snijders
2011/1/21 Bo Berglund bo.bergl...@gmail.com: On Fri, 21 Jan 2011 13:14:15 +0100, Vincent Snijders vincent.snijd...@gmail.com wrote: You forgot to quote this part: 2011/1/20 Graeme Geldenhuys graemeg.li...@gmail.com And with this whole mess I would end by saying: And that is why you will not

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

2011-01-21 Thread Frank Church
On 21 January 2011 15:40, Bo Berglund bo.bergl...@gmail.com wrote: On Fri, 21 Jan 2011 13:14:15 +0100, Vincent Snijders vincent.snijd...@gmail.com wrote: This is off topic, please use lazarus-other list. My question was why a database component that ships with *lazarus* would not work

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

2011-01-21 Thread michael . vancanneyt
On Fri, 21 Jan 2011, Frank Church wrote: On 21 January 2011 15:40, Bo Berglund bo.bergl...@gmail.com wrote: On Fri, 21 Jan 2011 13:14:15 +0100, Vincent Snijders vincent.snijd...@gmail.com wrote: This is off topic, please use lazarus-other list. My question was why a database component

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

2011-01-21 Thread Marcos Douglas
2011/1/21 Frank Church vfcli...@gmail.com: Quite a number of Lazarus components are not designed as a toolkit to serve a wide range of programmer needs. It is clear that a number of them are developed for the programmers own needs. Even if they are capable enough to serve your needs, those

Re: [Lazarus] Even more radical suggestion regarding Event Queues

2011-01-21 Thread Michael Schnell
Very funny: I did a slightly less complex test program and here TThread.synchronize does work as expected in gtk2. More research on Monday... -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

[Lazarus] StringGrid with autocomplete + PickList

2011-01-21 Thread Alexsander Rosa
Lazarus 9.30 branch from SVN at Ubuntu. I'm trying to use cbsPickList to allow the user to type a value into a StringGrid (it's a small accounting spreadsheet) selecting from a small list. The ideal scenario would be: the user type the first letter of the string and the embedded combobox is pulled