Re: [fpc-pascal] Timers in FPC

2007-05-31 Thread Michael Van Canneyt
On Thu, 31 May 2007, Graeme Geldenhuys wrote: > On 5/31/07, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > > > Do you mind if I split up the implementation like this: > > > > TTimer - Exposes all needed properties, events. Delegates work > > to TTimerDriver. > > TTimerDriver

Re: [fpc-pascal] Timers in FPC

2007-05-31 Thread Graeme Geldenhuys
On 5/31/07, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: Do you mind if I split up the implementation like this: TTimer - Exposes all needed properties, events. Delegates work to TTimerDriver. TTimerDriver - Abstract class which has 2 methods and a property to do the a

Re: [fpc-pascal] Timers in FPC

2007-05-31 Thread Michael Van Canneyt
On Thu, 31 May 2007, Graeme Geldenhuys wrote: > > > I guess I'm a bit late in asking, seeing that I already implemented by > > > own thread based timer. I works 100% for what I need. I just wondered > > > if there was something like that built into FPC that I missed. I > > > would like to compa

Re: [fpc-pascal] Timers in FPC

2007-05-31 Thread Graeme Geldenhuys
> I guess I'm a bit late in asking, seeing that I already implemented by > own thread based timer. I works 100% for what I need. I just wondered > if there was something like that built into FPC that I missed. I > would like to compare the implementations, or share mine if FPC > doesn't have one.

Re: [fpc-pascal] Socket samples besides the bastisoft site?

2007-05-31 Thread Rick Seiden
I second that motion. I've been trying to figure out how to use the example in the rtl manual to create a simple server/client connection, and I've been having problems. An example outside of that would be very helpful. A tutorial. Something. Francisco Reyes wrote: Can't find examples for

Re: [fpc-pascal] Timers in FPC

2007-05-31 Thread Michael Van Canneyt
On Thu, 31 May 2007, Graeme Geldenhuys wrote: > Hi, > > What timers classes or components does FPC have? For example > something that can fire every 200ms or ever 2 minutes, etc... I'm not > worried about high precision timers etc... Being out by a couple of > milliseconds is not a issue. >

[fpc-pascal] Timers in FPC

2007-05-31 Thread Graeme Geldenhuys
Hi, What timers classes or components does FPC have? For example something that can fire every 200ms or ever 2 minutes, etc... I'm not worried about high precision timers etc... Being out by a couple of milliseconds is not a issue. For example Delphi and Lazarus has a TTimer which does the job

Re: [fpc-pascal] Constant members within class

2007-05-31 Thread Matt Emson
>taclass = class > fi:integer; > public > property i write fi; > end; Not to pick on little details, but shouldn't that be: property i: interger read fi; as the OP wanted a read only member? What you gave them was write only. Maybe I misunderstood their request, if so sorry.