Re: [Lazarus] TTestSuite

2009-02-10 Thread Graeme Geldenhuys
On Tue, Feb 10, 2009 at 6:02 AM, Lee Jenkins l...@datatrakpos.com wrote: Would anyone mind providing a simple example or useful link? I've already looked at this: Lee, did you not look at the tiOPF test suite? ;-) Do you mean the following TMoneyTest = class(TTestCase) protected

Re: [Lazarus] TTestSuite

2009-02-10 Thread Graeme Geldenhuys
On Tue, Feb 10, 2009 at 6:02 AM, Lee Jenkins l...@datatrakpos.com wrote: Would anyone mind providing a simple example or useful link? I've already looked at this: You can also register the tests with better descriptions and test decorators. I use the latter for a shared DB connection. The

Re: [Lazarus] Zipfiles using Paszlib...

2009-02-10 Thread Felipe Monteiro de Carvalho
On Tue, Feb 10, 2009 at 7:46 AM, Graeme Geldenhuys graemeg.li...@gmail.com wrote: You could also try TZipFile located in the following SVN repository. It doesn't contain compression yet, but does place files and folders inside a .zip archive. It has file handling routines, so it feels like you

[Lazarus] How to query Enabled/Disabled component state?

2009-02-10 Thread Graeme Geldenhuys
Hi, Something weird I just noticed. I have not tested this under Delphi 7, but I have tested it with Lazarus GTK1 and GTK2 widget set. See attached image to help explain If I do Panel1.Enabled = False, all components are disabled (visually). This is what I expected. But if I now query

Re: [Lazarus] How to query Enabled/Disabled component state?

2009-02-10 Thread Michael Van Canneyt
On Tue, 10 Feb 2009, Graeme Geldenhuys wrote: Hi, Something weird I just noticed. I have not tested this under Delphi 7, but I have tested it with Lazarus GTK1 and GTK2 widget set. See attached image to help explain If I do Panel1.Enabled = False, all components are disabled

Re: [Lazarus] Docking and Layout managers

2009-02-10 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: There is no question, that such a big change is Delphi incompatible. Not at all. Do you mean: a) There no question at all that it will be Delphi incompatible b) It will not at all be Delphi incompatible, because TWinControl will not change ? Sorry for my bad

Re: [Lazarus] Zipfiles using Paszlib...

2009-02-10 Thread Hans-Peter Diettrich
Graeme Geldenhuys schrieb: Later in the year I want to extend TZipFile with compression (if it doesn't already have) and use it as our custom help file format for our company applications. I've already been working on a general compression/archive interface, based on the Abbrevia approach.

Re: [Lazarus] Docking and Layout managers

2009-02-10 Thread Graeme Geldenhuys
On Tue, Feb 10, 2009 at 12:07 PM, Hans-Peter Diettrich drdiettri...@aol.com wrote: widgetsets (Win32, Qt...), if the users want such an option, or it might become fat when everything is done in the library, as IIRC is the approach of fpGUI. A slim version IMO would be nice for embedded

Re: [Lazarus] How to query Enabled/Disabled component state?

2009-02-10 Thread Mattias Gärtner
Zitat von Graeme Geldenhuys graemeg.li...@gmail.com: Hi, Something weird I just noticed. I have not tested this under Delphi 7, but I have tested it with Lazarus GTK1 and GTK2 widget set. See attached image to help explain If I do Panel1.Enabled = False, all components are disabled

Re: [Lazarus] MacOS X : File Associations...

2009-02-10 Thread dominique
After further testing it seems that the onDropFiles event correctly fires via both Drag/Drop and if you double click a file while the exe is running. The only scenario where OnDropFiles does not fire is if the app is not running and someone double clicks an associated file. In that scenario the

[Lazarus] Mac OS X : 10.3 undefined references

2009-02-10 Thread dominique
When running my app on a PowerPC Mac, which has 10.3 installed, I'm getting the following crash.log = Mon Apr 05 1976 = 05:11:06 Europe/London = dyld: /Users/sumo/Desktop/bouncing.app/Contents/MacOS/YoYo70 Undefined symbols: /Users/sumo/Desktop/bouncing.app/Contents/MacOS/YoYo70

[Lazarus] repaint method on Darwin/Carbon

2009-02-10 Thread Brad Campbell
G'day all, I've got an app where I'm doing some time critical serial processing. I have 2 callbacks in the serial code that call back to methods in the form to update a status bar and caption label. I used to update the label/status bar and call Application.ProcessMessages so they would

Re: [Lazarus] repaint method on Darwin/Carbon

2009-02-10 Thread dmitry boyarintsev
rather than Application.ProcessMessages; On Win32 and GTK2/Linux this works perfectly, but on Carbon it won't repaint anything until the application can service its message queue. Is this expected behaviour or an inherent in the toolkit? Mac OS X allows to draw only on Paint event

Re: [Lazarus] TTestSuite

2009-02-10 Thread Lee Jenkins
Graeme Geldenhuys wrote: On Tue, Feb 10, 2009 at 6:02 AM, Lee Jenkins l...@datatrakpos.com wrote: Would anyone mind providing a simple example or useful link? I've already looked at this: Lee, did you not look at the tiOPF test suite? ;-) No actually, I did not. I'll definitely take a

Re: [Lazarus] TTestSuite

2009-02-10 Thread Lee Jenkins
Graeme Geldenhuys wrote: On Tue, Feb 10, 2009 at 6:02 AM, Lee Jenkins l...@datatrakpos.com wrote: Would anyone mind providing a simple example or useful link? I've already looked at this: Do you mean the following P.S. Graeme can you check the power cable for the tiOPF

Re: [Lazarus] repaint method on Darwin/Carbon

2009-02-10 Thread zeljko
On Tuesday 10 February 2009 15:08, Brad Campbell wrote: G'day all, I've got an app where I'm doing some time critical serial processing. I have 2 callbacks in the serial code that call back to methods in the form to update a status bar and caption label. I used to update the label/status

Re: [Lazarus] TTestSuite

2009-02-10 Thread Graeme Geldenhuys
On Tue, Feb 10, 2009 at 4:28 PM, Lee Jenkins l...@datatrakpos.com wrote: Something like this: MainTestSuite Test Suite --SubTestSuite Child Test Suite TestCase1 A Test case under a TestSuite TestCase2 A Test case under a TestSuite

Re: [Lazarus] TTestSuite

2009-02-10 Thread Graeme Geldenhuys
On Tue, Feb 10, 2009 at 4:30 PM, Lee Jenkins l...@datatrakpos.com wrote: P.S. Graeme can you check the power cable for the tiOPF newsgroups server? I think someone may have kicked it out ;) The webnews interface works. I'll give the server a reboot and see what happens. We had a minor

Re: [Lazarus] repaint method on Darwin/Carbon

2009-02-10 Thread dmitry boyarintsev
1. like dmitry says - Carbon/Cocoa Qt on all platforms does not allow paintings outside of paint event. 2. Calling repaint is very expensive (CPU), try with YourControl.Invalidate; or YourControl.Update; Invalidate and Update will take effect only if messages queue is processed (by

Re: [Lazarus] TTestSuite

2009-02-10 Thread Lee Jenkins
Graeme Geldenhuys wrote: On Tue, Feb 10, 2009 at 4:28 PM, Lee Jenkins l...@datatrakpos.com wrote: Something like this: TTestSuite1 = class(TTestCase) published procedure TestCase1; procedure TestCase2; end; initialization RegisterTest('Main Test Suite',

Re: [Lazarus] TTestSuite

2009-02-10 Thread Lee Jenkins
Graeme Geldenhuys wrote: On Tue, Feb 10, 2009 at 4:30 PM, Lee Jenkins l...@datatrakpos.com wrote: P.S. Graeme can you check the power cable for the tiOPF newsgroups server? I think someone may have kicked it out ;) The webnews interface works. I'll give the server a reboot and see what

Re: [Lazarus] repaint method on Darwin/Carbon

2009-02-10 Thread zeljko
On Tuesday 10 February 2009 16:49, dmitry boyarintsev wrote: 1. like dmitry says - Carbon/Cocoa Qt on all platforms does not allow paintings outside of paint event. 2. Calling repaint is very expensive (CPU), try with YourControl.Invalidate; or YourControl.Update; Invalidate and Update

Re: [Lazarus] TTestSuite

2009-02-10 Thread Graeme Geldenhuys
On Tue, Feb 10, 2009 at 6:03 PM, Lee Jenkins l...@datatrakpos.com wrote: Of course, things like that sometimes happen when its most inconvenient to address it ;) Murphy's Law demonstrated. Yup. Just got the newsgroup server working for external access. NNTP and WebNews now work. Regards,

Re: [Lazarus] TTestSuite

2009-02-10 Thread Graeme Geldenhuys
On Tue, Feb 10, 2009 at 5:53 PM, Lee Jenkins l...@datatrakpos.com wrote: Also have a look at the tiFPCUnitUtils.pas unit in tiOPF. It can create a more complex hierarchy with much less effort. Some of that code could probably move to FPC itself. I'll have a look, never came across it before.

Re: [Lazarus] repaint method on Darwin/Carbon

2009-02-10 Thread dmitry boyarintsev
but he is calling Application.ProcessMessages; after Repaint; , so why not Invalidate or Update ? yes, Invalidate or Update call prior to ProcessMessages would be enough. But as far as I understand, Brad does NOT call it. ___ Lazarus mailing list

Re: [Lazarus] Zipfiles using Paszlib...

2009-02-10 Thread Felipe Monteiro de Carvalho
On Tue, Feb 10, 2009 at 1:13 PM, Graeme Geldenhuys graemeg.li...@gmail.com wrote: I have never looked at TZipper. Do you have any idea how that differs from TZipFile? Is it worth picking one over the other? I've never used TZipFile, but well, you wrote that TZipFile doesn't compress. TZipper

Re: [Lazarus] Mac OS X : 10.3 undefined references

2009-02-10 Thread Felipe Monteiro de Carvalho
On Tue, Feb 10, 2009 at 2:38 PM, domini...@savagesoftware.com.au wrote: Will linking directly to the 10.3 SDK get around this problem, or will that break other LCL references? No, won't work. LCL-Carbon uses routines available only in 10.4 I am aware that 10.4 is the preferred OS version but

Re: [Lazarus] repaint method on Darwin/Carbon

2009-02-10 Thread Brad Campbell
zeljko wrote: On Tuesday 10 February 2009 16:49, dmitry boyarintsev wrote: 1. like dmitry says - Carbon/Cocoa Qt on all platforms does not allow paintings outside of paint event. 2. Calling repaint is very expensive (CPU), try with YourControl.Invalidate; or YourControl.Update; Invalidate