Re: [Lazarus] Thread safe

2009-05-30 Thread Mattias Gaertner
On Sat, 30 May 2009 12:55:14 +1000 SteveG ste...@nevets.com.au wrote: Would appreciate anybody clearing this up for me - If I use a TTimer on a GUI form to call a function, is the function within the Main thread at all times (therefore gui threadsafe) ? yes If the above function then

Re: [Lazarus] Thread safe

2009-05-30 Thread SteveG
and as a completely non-related question, does fpc/laz have a cross platform 'shared memory' component/function at the moment ? Shared between what? Processes, libraries, computers? Mattias Sorry, that shows too much focus on a small world doesn't it :) I meant sharing memory between

[Lazarus] Lazarus on gtk2 double double-click (and SourceEditor select-word failure)

2009-05-30 Thread Flávio Etrusco
Hi all, I just wanted to know whether anybody using the Lazarus gtk2 flavor (any recent 0.9.27) is experiencing a problem with double-clicks on the source editor just selecting to the beginning of the word but not to the end/right? Best regards, Flávio

Re: [Lazarus] Lazarus on gtk2 double double-click (and SourceEditor select-word failure)

2009-05-30 Thread Martin Friebe
Check if your mouse moves? It works fine for me, except if I move the mouse between the 2 clicks. Flávio Etrusco wrote: Hi all, I just wanted to know whether anybody using the Lazarus gtk2 flavor (any recent 0.9.27) is experiencing a problem with double-clicks on the source editor just

Re: [Lazarus] Lazarus on gtk2 double double-click (and SourceEditor select-word failure)

2009-05-30 Thread Martin Friebe
More details, try this: -Doubleclick, but on the 2nd click keep the left button down / do not releas it. - Now move the mouse = Windows, is fine, the current word stays selected, the mouse-move does nothing = GTK2 the mouse move acts as if there had be no doubleclick = The selection-end is

Re: [Lazarus] Storing currency or real types in a database

2009-05-30 Thread Zaher Dirkey
I used Firebird SQL 2.x and use numeric(18,4) for Currency, i have no problem because Firebird work on numeric(18,4) as INT64 with special convert to try to get and put at the client, in fact Delphi/FPC and Firebird both internally take the Currency as Int64 but when convert it to print or to

Re: [Lazarus] Python4Delphi/Lazarus: VarPyth: VarDataClear.. not yet supported?

2009-05-30 Thread Marco van de Voort
On Sat, May 30, 2009 at 12:37:00PM +0200, Robert wrote: I tried to use current http://code.google.com/p/python4delphi with Lazarus. Did somebody use P4D successfully with recent Lazarus? Patches? I face a few problems. P4D worked principally with Lazarus, but only after a few a adaptations.

Re: [Lazarus] Python4Delphi/Lazarus: VarPyth: VarDataClear.. not yet supported?

2009-05-30 Thread Michael Van Canneyt
On Sat, 30 May 2009, Robert wrote: I tried to use current http://code.google.com/p/python4delphi with Lazarus. Did somebody use P4D successfully with recent Lazarus? Patches? I face a few problems. What about this problem, and what could be a workaround?

Re: [Lazarus] Lazarus on gtk2 double double-click (and SourceEditor select-word failure)

2009-05-30 Thread Flávio Etrusco
Martin Friebe wrote: Check if your mouse moves? It works fine for me, except if I move the mouse between the 2 clicks. I didn't understand this part, but... -Doubleclick, but on the 2nd click keep the left button down / do not releas it. - Now move the mouse = Windows, is fine, the

Re: [Lazarus] Storing currency or real types in a database

2009-05-30 Thread Graeme Geldenhuys
2009/5/30 Zaher Dirkey parm...@gmail.com: I used Firebird SQL 2.x and use numeric(18,4) for Currency, i have no problem because Firebird work on numeric(18,4) as INT64 with special convert to try to get and put at the client, in fact Delphi/FPC and So basically you are also using Integer type

Re: [Lazarus] Storing currency or real types in a database

2009-05-30 Thread Zaher Dirkey
I have no problem with rounding and floating point with currency because in whale my project (also Accounting) use Currency variable not other float variable so that make compatibility with my project and my database, only i use the float type for money converting between currencies. -- Zaher

[Lazarus] Off-by-one error in method TDeclarationInheritanceCache.Clear

2009-05-30 Thread Flávio Etrusco
Hi, File: lazarus/components/codetools/cachecodetools.pas Line: 161 (method TDeclarationInheritanceCache.Clear) Contains: for i:=FOldTrees.Count downto 0 do Best regards, Flávio ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Thread safe

2009-05-30 Thread Mattias Gaertner
On Sun, 31 May 2009 01:50:19 +1000 SteveG ste...@nevets.com.au wrote: On Saturday 30 May 2009 17:09:41 Mattias Gaertner wrote: On Sat, 30 May 2009 12:55:14 +1000 SteveG ste...@nevets.com.au wrote: Would appreciate anybody clearing this up for me - If I use a TTimer on a GUI form

Re: [Lazarus] Help extending a python script

2009-05-30 Thread Marc Weustink
Vincent Snijders wrote: JoshyFun schreef: Hello Lazarus, Wednesday, May 27, 2009, 10:04:28 AM, you wrote: VS I wondered if there are some python users on this list that can help us to fix issue VS 13838: http://bugs.freepascal.org/view.php?id=13838 VS Basically the svn2feed.py script from

Re: [Lazarus] limit of mail size to this mailing list

2009-05-30 Thread Florian Klaempfl
Marc Weustink schrieb: Luca Olivetti wrote: En/na Joost van der Sluis ha escrit: Patches send to this list will be forgotten. To make that clear to everyone: refuses patches. That'll save us a lot of trouble. What about patchwork? http://ozlabs.org/~jk/projects/patchwork/ Nice.. thanks

Re: [Lazarus] Python4Delphi/Lazarus: VarPyth: VarDataClear.. not yet supported?

2009-05-30 Thread Michael Van Canneyt
On Sat, 30 May 2009, Robert wrote: Michael Van Canneyt wrote: On Sat, 30 May 2009, Robert wrote: I tried to use current http://code.google.com/p/python4delphi with Lazarus. Did somebody use P4D successfully with recent Lazarus? Patches? I face a few problems. What about this problem,

[Lazarus] TextExtent and Font.Orientation

2009-05-30 Thread Alexander Klenin
Currently, Canvas.TextExtent does not take Font.Orientation into account. Is there any way to know the extent of rotated text string? If not, where should it be added? -- Alexander S. Klenin ___ Lazarus mailing list

Re: [Lazarus] Thread safe

2009-05-30 Thread SteveG
I pass the address of a WinCtrl (eg Label) to the function, then use the following TLabel( CompAddress^ ).Caption := 'test'; also a problem is 'Application.ProcessMessages' within the library These (and variations of) seem to fail regularly, but work fine from the Laz app

Re: [Lazarus] Storing currency or real types in a database

2009-05-30 Thread Hans-Peter Diettrich
Graeme Geldenhuys schrieb: We have no decided to trunc our currency values to 2 decimals and use our own rounding routine (not bankers rounding etc...). Calculations with amounts of money frequently are subject to detailed official prescreptions, e.g. for tax calculations. There exists no