Re: [Lazarus] (no subject)
On Thu, 10 Sep 2009 09:06:50 +0200 Luca Olivetti wrote: > I never used it, but there's a component (look in the components > directory) called mouseandkeyinput that should do just that. Or you can use: var Mouse: TMouse; // init Mouse:=TMouse.Create; // set position Mouse.SetCursorPos:=NewCursorPos; R. -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] SVN not compiling.
Hi Vincent. 2009/9/10 Vincent Snijders : > Do you have local modifications? Not that I'm aware of. Anyway, I downloaded the Windows daily snapshot installation, ran that and did the SVN again to synchronise it and it compiled ok. Must've been something in my installation. Thanks. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Equivalent Delphi-Lazarus
jpnu...@free.fr schreef: Thanks again Luca Olivetti The MouseAnKeyInput works perfectly ! An as far as I have seen, it is Linux compatible. If somebody needs more information about how to use it, I would be pleased to share my experience. You can add them here: http://wiki.freepascal.org/MouseAndKeyInput One thing I noticed is, that its license is GPL. Vincent -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Equivalent Delphi-Lazarus
Thanks again Luca Olivetti The MouseAnKeyInput works perfectly ! An as far as I have seen, it is Linux compatible. If somebody needs more information about how to use it, I would be pleased to share my experience. JPH -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] SVN not compiling.
Dave Coventry schreef: I've just updated my SVN, but on running 'make' I get the following error: graphics.pp(1054,14) Error: Forward declaration not solved "TCanvas.TryLock:Boolean" I haven't updated for 5 or 6 months, so it's possible that there are incompatibilities. Can anyone suggest something? I'm running Windows XP. Do you have local modifications? svn status svn diff Vincent -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] SVN not compiling.
I've just updated my SVN, but on running 'make' I get the following error: graphics.pp(1054,14) Error: Forward declaration not solved "TCanvas.TryLock:Boolean" I haven't updated for 5 or 6 months, so it's possible that there are incompatibilities. Can anyone suggest something? I'm running Windows XP. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] sqlite3connection events
Zitat von Andrea Mauri : Dear Mattias, thanks, now it works. May I ask you what was the problem? I would like to contribute as much as possible in this project, more I understand more I can help. I will try to explain: property AfterConnect : TNotifyEvent read FAfterConnect write SetAfterConnect; The write method is defined as: procedure TCustomConnection.SetAfterConnect(const AValue: TNotifyEvent); begin if FAfterConnect=AValue then exit; FAfterConnect:=AValue; end; The problem is that TNotifyEvent is a special "record" of two pointers: Data and Code. At runtime Data is the instance (the Self pointer) and Code is the address of the procedure. At designtime there is no address. Therefore the IDE creates a special fake event, with Data an unique ID and Code=nil. The comparison "FAfterConnect=AValue" only compares code, not data. Probably it is for Delphi compatibility. Although I wonder, why this happen under mode objfpc. IMHO this feature is inconsistent and almost useless. Because at designtime the code is always nil, FAfterConnect=AValue is always true. I worked around this by first assigning Code=1 and then Code=nil. But there is still a bug in the TCustomConnection, because when you switch the event to the method of the same class, but another instance, TCustomConnection will ignore this. I think, it would be better if FPC changes the comparison in mode objfpc. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] sqlite3connection events
Dear Mattias, thanks, now it works. May I ask you what was the problem? I would like to contribute as much as possible in this project, more I understand more I can help. Thanks, Andrea Mattias Gaertner ha scritto: On Wed, 09 Sep 2009 19:30:49 +0200 Andrea Mauri wrote: anyone can help me? Andrea Mauri ha scritto: Dear all, I have some problems with sqlite3connection. I put a sqlite3connection on a form and then double click on afterconnect event in the object inspector (or beforeconnect or afterdisconnect etc.), lazarus correctly creates in the editor the afterconnect procedure and put the cursor in it. Then I put some code in the afterconnect procedure but if I open again the object inspector the procedure disappear in the object inspector and it is never fired. This happens also with firebird connection. But not with all the other events (FormClick for example). Lazarus 0.9.29 r21596 FPC 2.2.4 i386-win32-win32/win64 Any hint? Please test with svn revision 21636. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Call stack window - columns not resizable
Hi. During a recent debugging session I used the call stack window, but found that I'm not able to change the width of the columns. Since my filenames are often long and it can be hard to see which file the function is in. Should I submit this as a bug? Kind regards, Torsten Bonde Christiansen. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Equivalent Delphi-Lazarus
Thak you Luca Olivetti I'll try what you suggest. And I post the result as soon as possible -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] (no subject)
En/na jpnu...@free.fr ha escrit: If I code LikeMouseClik(10,10,true); in my program, the mouse pointer goes back to [10,10], so I don't have to physically click in a window to set focus. I never used it, but there's a component (look in the components directory) called mouseandkeyinput that should do just that. Bye -- Luca Olivetti Wetron Automatización S.A. http://www.wetron.es/ Tel. +34 93 5883004 (Ext.133) Fax +34 93 5883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus