Re: [Lazarus] Message Loop paused when no interaction with mouse?

2011-04-21 Thread Graeme Geldenhuys
On 20/04/2011 17:41, Bernd wrote: ¹) some kind of search index or list of all procedures that are defined in any of the standad units would really be helpful. You can do this already - at least I can for the last year or so. Generate the fpdoc documentation for RTL, FCL, LCL in fpGUI INF output

Re: [Lazarus] Message Loop paused when no interaction with mouse?

2011-04-21 Thread Michael Schnell
On 04/20/2011 05:34 PM, Henry Vermaak wrote: Your synchronise test program works without any patches. OK. This is intended to be just a testing program. I of course do like to add features, but I don't want to change the LCL code when I am not really sure about the implications and I can't

Re: [Lazarus] Message Loop paused when no interaction with mouse?

2011-04-21 Thread Graeme Geldenhuys
On 21/04/2011 07:45, Hans-Peter Diettrich wrote: View CodeBrowser Nope, that's pretty useless too. See attached screenshot. I tried LM_USER in all the edit fields. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Re: [Lazarus] Message Loop paused when no interaction with mouse?

2011-04-21 Thread Michael Schnell
On 04/20/2011 05:14 PM, Bernd wrote: In which Unit is PostMessage() defined, and also is there some documentation about This is a windowish artifact provided for Delphi compatibility and thus not a mainline feature. I suppose the documentation is bet taken from the Delphi help. -Michael --

Re: [Lazarus] Message Loop paused when no interaction with mouse?

2011-04-21 Thread Michael Schnell
On 04/20/2011 05:14 PM, Bernd wrote: procedure ...; message ...; In fact even Delphi provides a more appropriate and portable solution for this (when used for having a worker thread send an event to the GUI Thread) : TThread.Queue. Unfortunately they did not include this in the Delphi Help

Re: [Lazarus] Message Loop paused when no interaction with mouse?

2011-04-21 Thread Michael Schnell
On 04/20/2011 05:32 PM, zeljko wrote: Unfortunately LCL does not seem to export WakeUpMainThread() or g_main_context_wakeup(), so I can't test it. :-( . What do you mean by that ? WakeUpMainThread() IS THERE I searched the lazarus/trunk and fpc/trunk directories and did not find the text

Re: [Lazarus] Message Loop paused when no interaction with mouse?

2011-04-21 Thread Michael Schnell
On 04/20/2011 05:41 PM, Bernd wrote: I have found a PostMessage() function defined by lclintf but now I'm still searching for the LM_USER that is mentioned there, also without any reference where it is defined. I'll send you my testing program in a private mail, so you can see how it works.

Re: [Lazarus] Message Loop paused when no interaction with mouse?

2011-04-21 Thread Michael Schnell
On 04/20/2011 05:45 PM, zeljko wrote: Story is finished. Your patch is applied and issue is marked as resolved :) btw. Thanks for patch. Now my testing program finally works perfectly with gtk2 :-) I am not able to compile it with other Wiget Types (any more). Thanks -Michael --

Re: [Lazarus] Message Loop paused when no interaction with mouse?

2011-04-21 Thread Michael Schnell
On 04/21/2011 07:45 AM, Hans-Peter Diettrich wrote: View CodeBrowser I never found out how to work with this tool. -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Message Loop paused when no interaction with mouse?

2011-04-21 Thread Mattias Gaertner
On Thu, 21 Apr 2011 08:43:25 +0200 Graeme Geldenhuys graemeg.li...@gmail.com wrote: On 21/04/2011 07:45, Hans-Peter Diettrich wrote: View CodeBrowser Nope, that's pretty useless too. See attached screenshot. I tried LM_USER in all the edit fields. You searched only in your project.

Re: [Lazarus] Message Loop paused when no interaction with mouse?

2011-04-21 Thread Graeme Geldenhuys
On 21/04/2011 09:34, Mattias Gaertner wrote: You searched only in your project. Click on With required packages. Ah, user error. Thanks for the tip. :) Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ --

Re: [Lazarus] Message Loop paused when no interaction with mouse?

2011-04-21 Thread Michael Schnell
On 04/20/2011 07:52 PM, Bernd wrote: SendMessage() SendMessage is forbidden in a worker Thread. It directly calls the Dispatch mechanism that is a not threadsafe and GUI thread only. Doing this in a worker thread might crash the LCL. -Michael --

Re: [Lazarus] Message Loop paused when no interaction with mouse?

2011-04-21 Thread Michael Schnell
On 04/20/2011 06:05 PM, Luca Olivetti wrote: I don't know, but I've been using for a long time a 10ms timer that just does CheckSynchronize: under windows when you're dragging a windows it seems that the main loop doesn't fire, so Synchronize calls are blocked, Synchronize supposedly is

Re: [Lazarus] Message Loop paused when no interaction with mouse?

2011-04-21 Thread Michael Schnell
On 04/20/2011 06:27 PM, zeljko wrote: Please test with lazarus r30403 if it works without timer. Now, QueueAsyncCall() calls WakeMainThread With my testing program on GTK2 it works perfectly while dragging the Window. -Michael -- ___ Lazarus

Re: [Lazarus] Message Loop paused when no interaction with mouse?

2011-04-21 Thread Luca Olivetti
Al 21/04/2011 10:06, En/na Michael Schnell ha escrit: On 04/20/2011 06:05 PM, Luca Olivetti wrote: I don't know, but I've been using for a long time a 10ms timer that just does CheckSynchronize: under windows when you're dragging a windows it seems that the main loop doesn't fire, so

Re: [Lazarus] Message Loop paused when no interaction with mouse?

2011-04-21 Thread Michael Schnell
On 04/21/2011 10:28 AM, Luca Olivetti wrote: with under windows I mean the win32 widgetset, not gtk. Sorry for typing faster than reading once again ;-) So I suppose the new patch will not help here. I do not have a Lazarus on Windows installation, here, so I can't check. Could you test my

Re: [Lazarus] Message Loop paused when no interaction with mouse?

2011-04-21 Thread prof7bit
On Apr 21, 2011 9:56am, Michael Schnell mschn...@lumino.de wrote: Bernd What Widget Type do you use ? I'm using GTK2 (but a very old version of it that came with Ubuntu Hardy, the package manager says version 2.12.9). -- ___ Lazarus mailing list

Re: [Lazarus] Message Loop paused when no interaction with mouse?

2011-04-21 Thread Michael Schnell
On 04/21/2011 11:07 AM, prof7...@googlemail.com wrote: Bernd What Widget Type do you use ? I'm using GTK2 (but a very old version of it that came with Ubuntu Hardy, the package manager says version 2.12.9). This is the Widget _Set_ I asked regarding the Widget _Type_ that is set in the

Re: [Lazarus] Message Loop paused when no interaction with mouse?

2011-04-21 Thread prof7bit
On Apr 21, 2011 11:25am, Michael Schnell mschn...@lumino.de wrote: But I do suppose you did set gtk2 there ... Yes, gtk2. I have problems compiling against Qt, not only with Lazarus, basically with all kinds of current software, it seems to me that Qt is releasing a new version every other

Re: [Lazarus] reverse engineering tool wanted

2011-04-21 Thread Marco van de Voort
On Wed, Apr 20, 2011 at 03:09:37PM +0200, Graeme Geldenhuys wrote: I agree with Michael... those screenshots from Alexander has nothing to do with general charting and graphs. I cannot see a use for such functionality. There is at least aggpas, although I don't know if it is compilable

Re: [Lazarus] GetProcAddress weird problem

2011-04-21 Thread Marco van de Voort
On Wed, Apr 20, 2011 at 11:20:52AM -0300, Leonardo M. Ram? wrote: Hi, I'm facing a weird issue with GetProcAddress in a Lazarus program I have a method that calls GetProcAddress to get a pointer to a function in a shared library. The method can be called many times without problem. Multiple

Re: [Lazarus] FPVectorial and TAChart

2011-04-21 Thread Felipe Monteiro de Carvalho
On Wed, Apr 20, 2011 at 7:15 AM, Alexander Klenin kle...@gmail.com wrote: 1) How to draw a rectangle? 3) How to draw a polygon? Now you can do this: var ADoc: TvVectorialDocument; begin ADoc.StartPath(0, 0); ADoc.AddLineToPath(100, 0); ADoc.AddLineToPath(100, 100); ADoc.AddLineToPath(0,

Re: [Lazarus] FPVectorial and TAChart

2011-04-21 Thread Felipe Monteiro de Carvalho
On Wed, Apr 20, 2011 at 1:20 PM, Alexander Klenin kle...@gmail.com wrote: I have committed my experimental code -- see fpvectorial demo in TAChart since r30400. Try changing output format to, say, DXF -- you will get SIGSEGV. This bug is in TvVectorialDocument.CreateVectorialWriter -- it does

Re: [Lazarus] GetProcAddress weird problem

2011-04-21 Thread zeljko
On Thursday 21 of April 2011 13:21:17 Marco van de Voort wrote: On Wed, Apr 20, 2011 at 11:20:52AM -0300, Leonardo M. Ram? wrote: Hi, I'm facing a weird issue with GetProcAddress in a Lazarus program I have a method that calls GetProcAddress to get a pointer to a function in a shared

Re: [Lazarus] Message Loop paused when no interaction with mouse?

2011-04-21 Thread Bernd
On Apr 20, 2011 7:52pm, Bernd prof7...@googlemail.com wrote: I have tried QueueAsyncCall and Synchronize() both don't work here. PostMessage() works. I have now done the following to simulate a Synchronize() with the help of PostMessage() This seems to work without problems, without crashing,

Re: [Lazarus] FPVectorial and TAChart

2011-04-21 Thread Felipe Monteiro de Carvalho
On Thu, Apr 21, 2011 at 5:53 PM, Alexander Klenin kle...@gmail.com wrote: I added corresponging calls to fpvectorial back-end. However, it seems those calls have no effect -- all polygons are still drawn as polylines in both SVG and G-code writers. Ok. Note that SegmentWithPen is now not

[Lazarus] Bug Report : eventcodetool.pas from revision 30421

2011-04-21 Thread Rogério Martins
Hi ! When i try to compile lazarus sources, from subversion, on revision 30421, i get the following error message: eventcodetool.pas (1012, 23) identifier idents no member UnitName Then the compilation aborts. -- The Ubuntu Counter Project - user number #