On 05/02/2011 08:14 PM, Bernd wrote:
PostMessage() works (that is what I currently use) and
QueueAsyncCall() did not work when I opened this thread, I will test
it again tomorrow.
Thanks. It dopes work for me now, but I am interested is seeing if it
does work everywhere.
But what I would need
On 04/20/2011 07:52 PM, Bernd wrote:
Maybe its my old GTK2 version, I still have Ubuntu Hardy on my laptop
and the GTK2 that came with it (don't know which version exactly, I
never ever did anything with GTK directly, only through wrappers like
wx, etc., so I don't know much about GTK).
I have
2011/5/2 Michael Schnell mschn...@lumino.de:
PostMessage() and QueueAsyncCall() _should_ work.
PostMessage() works (that is what I currently use) and
QueueAsyncCall() did not work when I opened this thread, I will test
it again tomorrow.
But what I would need for my application is something
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
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
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/
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
--
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
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
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.
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
--
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
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.
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/
--
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
--
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
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
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
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
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
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
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
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,
Hi,
I am sure I have read some discussion about this already but I cannot
find it anymore, so I will ask here, I don't know whether it is a bug
or intentional and I am only using it wrongly. The following is what I
have and what I am trying to do:
* Linux (KDE3.5, windowmanager is kwin) Lazarus
On 20/04/11 10:26, Bernd wrote:
Hi,
I am sure I have read some discussion about this already but I cannot
find it anymore, so I will ask here, I don't know whether it is a bug
or intentional and I am only using it wrongly. The following is what I
have and what I am trying to do:
* Linux
On Wed, 20 Apr 2011 11:26:30 +0200, Bernd prof7...@googlemail.com
wrote:
Hi,
I am sure I have read some discussion about this already but I cannot
find it anymore, so I will ask here, I don't know whether it is a bug
or intentional and I am only using it wrongly. The following is what
I
have
2011/4/20 Henry Vermaak henry.verm...@gmail.com:
See here for a related issue:
http://bugs.freepascal.org/view.php?id=13120
You'll have to wake up the main thread after the frame (which is what your
timer is doing). For gtk you can use
g_main_context_wakeup(g_main_context_default), for qt
On 20/04/11 11:55, Bernd wrote:
2011/4/20 Henry Vermaakhenry.verm...@gmail.com:
See here for a related issue:
http://bugs.freepascal.org/view.php?id=13120
You'll have to wake up the main thread after the frame (which is what your
timer is doing). For gtk you can use
2011/4/20 Henry Vermaak henry.verm...@gmail.com:
Hmm, that's strange. This works for me.
I will try to make a minimal example. Either this will work and I have
a chance to find what is different or I will post it somewhere.
--
___
Lazarus mailing
On 04/20/2011 12:55 PM, Bernd wrote:
But it does not seem to help :-(
It does not, as it is not fixed.
Running my testing program with the GTK Widget Type, with the newest
svn version, TThread.Synchronize in fact seems to work, but
Application.QueuAsyncCall shows the behavior you mentioned.
2011/4/20 Michael Schnell mschn...@lumino.de:
Running my testing program with the GTK Widget Type, with the newest svn
version, TThread.Synchronize in fact seems to work
I have now updated to SVN rev. 30401 and the attached demo shows the
error. Synchronize does not work. The demo contains
2011/4/20 Bernd prof7...@googlemail.com:
the attached demo
Sorry, forgot to attach it. its less than 2kb, so I think its ok to
attach it here
Synchronize_wont_work.tar.bz2
Description: BZip2 compressed data
--
___
Lazarus mailing list
On 20/04/11 14:51, Bernd wrote:
Are there any other ways under GTK2 (or xorg?) to send a message to a
window that simulates user interaction? I need to find some kind of
workaround to wake up the GUI.
As I've noted before, PostMessage does wake up the main thread (when you
compile your
On Wednesday 20 of April 2011 15:53:30 Bernd wrote:
2011/4/20 Bernd prof7...@googlemail.com:
the attached demo
Sorry, forgot to attach it. its less than 2kb, so I think its ok to
attach it here
Lazarus 0.9.31 r30393M FPC 2.4.3 i386-linux-qt, but both (qt and gtk2) works
fine with this
On Wednesday 20 of April 2011 16:05:47 Henry Vermaak wrote:
On 20/04/11 14:51, Bernd wrote:
Are there any other ways under GTK2 (or xorg?) to send a message to a
window that simulates user interaction? I need to find some kind of
workaround to wake up the GUI.
As I've noted before,
On 20/04/11 14:51, Bernd wrote:
2011/4/20 Michael Schnellmschn...@lumino.de:
Running my testing program with the GTK Widget Type, with the newest svn
version, TThread.Synchronize in fact seems to work
I have now updated to SVN rev. 30401 and the attached demo shows the
error. Synchronize
On 04/20/2011 03:51 PM, Bernd wrote:
Are there any other ways under GTK2 (or xorg?) to send a message to a
window that simulates user interaction?
Something is broken in the infra-structure of the Event queuing
mechanism with GTK2 and this can hit in multiple issues. As long as
On 04/20/2011 04:05 PM, Henry Vermaak wrote:
PostMessage does wake up the main thread (when you compile your
project with -dusecthreads). And I use QueueAsyncCall with a manual
wakeup, which works well for me on win32 and gtk2. I use svn head, by
the way.
You are not _supposed_ to do
On 20/04/11 15:26, Michael Schnell wrote:
On 04/20/2011 04:05 PM, Henry Vermaak wrote:
PostMessage does wake up the main thread (when you compile your
project with -dusecthreads). And I use QueueAsyncCall with a manual
wakeup, which works well for me on win32 and gtk2. I use svn head, by
the
On Wednesday 20 of April 2011 16:31:59 Henry Vermaak wrote:
On 20/04/11 15:26, Michael Schnell wrote:
On 04/20/2011 04:05 PM, Henry Vermaak wrote:
PostMessage does wake up the main thread (when you compile your
project with -dusecthreads). And I use QueueAsyncCall with a manual
wakeup,
On 20/04/11 15:46, zeljko wrote:
On Wednesday 20 of April 2011 16:31:59 Henry Vermaak wrote:
On 20/04/11 15:26, Michael Schnell wrote:
On 04/20/2011 04:05 PM, Henry Vermaak wrote:
PostMessage does wake up the main thread (when you compile your
project with -dusecthreads). And I use
On 04/20/2011 04:50 PM, Henry Vermaak wrote:
Hehe, we're saying the same thing, but talking past each other. I
commented exactly this (with a patch) on the bug tracker, it seems to
work for gtk2, can you test with qt?
Is this really this simple ?
So hopefully he bug report can be closed
On 20/04/11 16:03, Michael Schnell wrote:
On 04/20/2011 04:50 PM, Henry Vermaak wrote:
Hehe, we're saying the same thing, but talking past each other. I
commented exactly this (with a patch) on the bug tracker, it seems to
work for gtk2, can you test with qt?
Is this really this simple ?
On 04/20/2011 04:31 PM, Henry Vermaak wrote:
There is nothing broken in the infrastructure as you keep saying,
or perhaps you'd like to point us to some specific code you find
problematic to explain your statements?
The fact that the bug report is open since several months and the
testing
On 20/04/11 16:14, Bernd wrote:
2011/4/20 Henry Vermaakhenry.verm...@gmail.com:
As I've noted before, PostMessage does wake up the main thread
In which Unit is PostMessage() defined, and also is there some
documentation about
procedure ...; message ...;
somewhere, because I can't find
On 04/20/2011 05:04 PM, Henry Vermaak wrote:
On 20/04/11 16:03, Michael Schnell wrote:
On 04/20/2011 04:50 PM, Henry Vermaak wrote:
Hehe, we're saying the same thing, but talking past each other. I
commented exactly this (with a patch) on the bug tracker, it seems to
work for gtk2, can you
On Wednesday 20 of April 2011 17:29:24 Michael Schnell wrote:
On 04/20/2011 05:04 PM, Henry Vermaak wrote:
On 20/04/11 16:03, Michael Schnell wrote:
On 04/20/2011 04:50 PM, Henry Vermaak wrote:
Hehe, we're saying the same thing, but talking past each other. I
commented exactly this (with
On 20/04/11 16:29, Michael Schnell wrote:
On 04/20/2011 05:04 PM, Henry Vermaak wrote:
On 20/04/11 16:03, Michael Schnell wrote:
On 04/20/2011 04:50 PM, Henry Vermaak wrote:
Hehe, we're saying the same thing, but talking past each other. I
commented exactly this (with a patch) on the bug
2011/4/20 Henry Vermaak henry.verm...@gmail.com:
It's a windows thing. More info here:
http://lazarus-dev.blogspot.com/2008/01/new-0926-features-part-1-sendmessage.html
This mentions gtk and qt too but unfortunately not where to find it¹.
I have found a PostMessage() function defined by
On Wednesday 20 of April 2011 17:34:44 Henry Vermaak wrote:
On 20/04/11 16:29, Michael Schnell wrote:
On 04/20/2011 05:04 PM, Henry Vermaak wrote:
On 20/04/11 16:03, Michael Schnell wrote:
On 04/20/2011 04:50 PM, Henry Vermaak wrote:
Hehe, we're saying the same thing, but talking past
On 20/04/11 16:41, Bernd wrote:
2011/4/20 Henry Vermaakhenry.verm...@gmail.com:
It's a windows thing. More info here:
http://lazarus-dev.blogspot.com/2008/01/new-0926-features-part-1-sendmessage.html
This mentions gtk and qt too but unfortunately not where to find it¹.
I have found a
Al 20/04/2011 15:51, En/na Bernd ha escrit:
What exactly does the TTimer do when it fires its event? The TTimer
seems to have the power to wake up the GUI, maybe I can do the same
manually?
I don't know, but I've been using for a long time a 10ms timer that just
does CheckSynchronize:
under
2011/4/20 Henry Vermaak henry.verm...@gmail.com:
As I've noted before, PostMessage does wake up the main thread
Confirmed. It does wakeup my GUI, no need for the empty timer anymore.
Now I will svn up Lazarus after the latest patch and try my
synchronize demo again.
--
On 20/04/11 17:15, Bernd wrote:
2011/4/20 Henry Vermaakhenry.verm...@gmail.com:
As I've noted before, PostMessage does wake up the main thread
Confirmed. It does wakeup my GUI, no need for the empty timer anymore.
Now I will svn up Lazarus after the latest patch and try my
synchronize demo
On Wednesday 20 of April 2011 18:05:24 Luca Olivetti wrote:
Al 20/04/2011 15:51, En/na Bernd ha escrit:
What exactly does the TTimer do when it fires its event? The TTimer
seems to have the power to wake up the GUI, maybe I can do the same
manually?
I don't know, but I've been using for
On Wednesday 20 of April 2011 18:21:11 Henry Vermaak wrote:
On 20/04/11 17:15, Bernd wrote:
2011/4/20 Henry Vermaakhenry.verm...@gmail.com:
As I've noted before, PostMessage does wake up the main thread
Confirmed. It does wakeup my GUI, no need for the empty timer anymore.
Now I
2011/4/20 Henry Vermaak henry.verm...@gmail.com:
The patch doesn't touch synchronize. It worked o.k. for me before the
patch. Maybe it's an fpc issue? I use 2.5.1 (about a month old).
I've done some more testing now.
Maybe its my old GTK2 version, I still have Ubuntu Hardy on my laptop
and
On Wednesday 20 of April 2011 19:52:00 Bernd wrote:
USE_GTK_MAIN_OLD_ITERATION
well, that's old way of using gtk main loop iterations. if you have old gtk2
installation probably you can test with that define (but in that case
PostMessage() won't work in multithreaded app).
zeljko
--
Henry Vermaak schrieb:
¹) some kind of search index or list of all procedures that are
defined in any of the standad units would really be helpful. Each time
somebody mentions the name of a procedure or a class that would solve
some problem I find myself grepping though the entirety of FPC and
59 matches
Mail list logo