[fpc-pascal] Class type to package name?

2017-07-20 Thread Anthony Walter
Assuming the class type has been registered either through RegisterComponent or RegisterNoIcon, what is the most straight forward way to get the package name it is defined in given a class type? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Static local variables available?

2017-07-20 Thread Sven Barth via fpc-pascal
Am 20.07.2017 13:01 schrieb "Bo Berglund" : > > On Thu, 20 Jul 2017 11:11:50 +0200, Maciej Izak > wrote: > > >2017-07-20 11:03 GMT+02:00 Bo Berglund : > > > >> So since I don't really want to use a global, is it possible to > >>

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-07-20 Thread james
I've been having very good results with the accelerated putimage() in ptcgraph. I am wondering if this modification could be added to 3.04, or some future release, as I think everyone would want putimage() to happen as fast as possible.I can't figure out how or where to submit this

Re: [fpc-pascal] Static local variables available?

2017-07-20 Thread Bo Berglund
On Thu, 20 Jul 2017 11:11:50 +0200, Maciej Izak wrote: >2017-07-20 11:03 GMT+02:00 Bo Berglund : > >> So since I don't really want to use a global, is it possible to >> declare a local variable static in the sense that it retains its >> values across

Re: [fpc-pascal] Subclassing generic records?

2017-07-20 Thread Sven Barth via fpc-pascal
On 17.07.2017 19:20, Ryan Joseph wrote: > >> On Jul 17, 2017, at 10:58 AM, Sven Barth via fpc-pascal >> wrote: >> >> I'll need to check whether Delphi allows that for helpers (doesn't matter >> whether the extended type is a specialization or not). >> >> > >

[fpc-pascal] OS/2 support and text colors

2017-07-20 Thread Graeme Geldenhuys
Hi, Not strictly FPC related, but I know here are some OS/2 software developers around - and I have no idea where else to ask. I'm working on supporting OS/2 in fpGUI Toolkit and creating OS/2 themes. Looking at some of the OS/2 screenshots I have collected, I noticed that in the same

Re: [fpc-pascal] Static local variables available?

2017-07-20 Thread Sven Barth via fpc-pascal
On 20.07.2017 11:11, Maciej Izak wrote: > 2017-07-20 11:03 GMT+02:00 Bo Berglund >: > > So since I don't really want to use a global, is it possible to > declare a local variable static in the sense that it retains its > values

Re: [fpc-pascal] Static local variables available?

2017-07-20 Thread Maciej Izak
2017-07-20 11:03 GMT+02:00 Bo Berglund : > So since I don't really want to use a global, is it possible to > declare a local variable static in the sense that it retains its > values across calls to the procedure? > If so how is it done? > procedure foo; {$PUSH} const{$J+}

[fpc-pascal] Static local variables available?

2017-07-20 Thread Bo Berglund
I am trying to clean up an existing application where handling of incoming serial data is done inside an event function OnRxData() of the serial component. I want to move the processing into a regular procedure so I can later add a different hardware channel (TCP/IP) as a user choice. Now when