Re: [fpc-pascal] Using the LCL without Lazarus

2016-11-30 Thread Martin Schreiber
On 12/01/2016 04:58 AM, BobJ wrote: > > Hello, > > Sent by: "fredvs" > Sent: Wednesday, November 30, 2016 9:12 AM > >> PS: MSEgui has a perfectly working assisted interface. > > Thanks, I will take a "look" at that, bearing in mind that sighted folks > often over estimate

Re: [fpc-pascal] Using the LCL without Lazarus

2016-11-30 Thread BobJ
Hello, Sent by: "fredvs" Sent: Wednesday, November 30, 2016 9:12 AM PS: MSEgui has a perfectly working assisted interface. Thanks, I will take a "look" at that, bearing in mind that sighted folks often over estimate how usable anything will be for non-sighted folks.

Re: [fpc-pascal] SysSetCtrlBreakHandler

2016-11-30 Thread Dmitry Boyarintsev
On Tue, Nov 29, 2016 at 5:13 PM, Tomas Hajny wrote: > > 1) Instead of using the special handler registered via > SetConsoleCtrlHandler (invoked in a special thread), isn't it possible to > process this event in the exception handler (running in the same thread > probably)? >

Re: [fpc-pascal] Using the LCL without Lazarus

2016-11-30 Thread BobJ
Terrific response, many thanks! I'll see what I can do... Bob -- From: "Mattias Gaertner" Sent: Wednesday, November 30, 2016 3:45 AM To: Subject: Re: [fpc-pascal] Using the LCL

Re: [fpc-pascal] For..in enumerator for generic records?

2016-11-30 Thread leledumbo
> I just tried this really quick and it doesn’t seem to work with records but if I changed it to a class that worked. Just as you can't declare next field to be a record when learning linked list (well, we normally learned that some time in the past), the solution is just the same here: declare

Re: [fpc-pascal] Using the LCL without Lazarus

2016-11-30 Thread fredvs
Hello. > My attempts to use the following software has proven to be unsuccessful > because of the "unfriendly" nature of their video displays: > IDEU IDE What do you mean with "unfriendly" nature of their video displays" ? Did you enable "Voice Assisted" feature of ideU ? What would you want to

Re: [fpc-pascal] For..in enumerator for generic records?

2016-11-30 Thread Mattias Gaertner
On Wed, 30 Nov 2016 18:24:11 +0700 Ryan Joseph wrote: >[...] I can wrap my head around nested types in classes because they’re >necessary for generics I just learned but nested classes feel messy. Is there >at least some namespace protection? Yes. And it follows

Re: [fpc-pascal] For..in enumerator for generic records?

2016-11-30 Thread Ryan Joseph
> On Nov 30, 2016, at 6:19 PM, Graeme Geldenhuys > wrote: > > Yeah, those were introduced in FPC 3.0.0 I believe - more Delphi > compatibility changes. I still don’t know if I like it though, but > understand its usage is meant if two classes are very close

Re: [fpc-pascal] For..in enumerator for generic records?

2016-11-30 Thread Ryan Joseph
> On Nov 30, 2016, at 6:22 PM, Marco van de Voort wrote: > > * (for..in) Enumerators in records Where’s an example of this? I’m trying it with a generic record and I can’t it to compile so I’m not sure if this is supported or not. Regards, Ryan Joseph

Re: [fpc-pascal] For..in enumerator for generic records?

2016-11-30 Thread Ryan Joseph
> On Nov 30, 2016, at 6:24 PM, Graeme Geldenhuys > wrote: > > What would you iterate/enumerate in that? I can understand iterating an > "array of TMyRec", but not TMyRec itself. I have a dynamic array inside a record. I’m using a record instead of a class

Re: [fpc-pascal] For..in enumerator for generic records?

2016-11-30 Thread Graeme Geldenhuys
On 2016-11-30 11:22, Marco van de Voort wrote: > D2006/ FPC 2.6.0 Thanks for the correction Marco. Wow, that long ago already. Regards, Graeme ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] For..in enumerator for generic records?

2016-11-30 Thread Graeme Geldenhuys
On 2016-11-30 04:03, Ryan Joseph wrote: > I have a generic record I would like to enumerate using for..in loops. Maybe generics are redefining this, but a record (as I understand it) is something like TMyRec = record StrField: string; IntField: integer; BoleanField: boolean;

Re: [fpc-pascal] For..in enumerator for generic records?

2016-11-30 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: > Yeah, those were introduced in FPC 3.0.0 D2006/ FPC 2.6.0 from 2.6.0 release manifest: http://forum.lazarus.freepascal.org/index.php?topic=15656.0 * Delphi compatibility mode improvements * Nested types, class variables and

Re: [fpc-pascal] For..in enumerator for generic records?

2016-11-30 Thread Graeme Geldenhuys
On 2016-11-30 10:53, Ryan Joseph wrote: > There’s a class nested inside a class?? I never saw that before. Yeah, those were introduced in FPC 3.0.0 I believe - more Delphi compatibility changes. I still don’t know if I like it though, but understand its usage is meant if two classes are very

Re: [fpc-pascal] For..in enumerator for generic records?

2016-11-30 Thread Ryan Joseph
There’s a class nested inside a class?? I never saw that before. What are all the inlines for btw? > On Nov 30, 2016, at 3:09 PM, Sven Barth wrote: > > Take a look at packages/fcl-stl/src/gvector.pp, it's a generic vector > container that provides an enumerator. >

Re: [fpc-pascal] For..in enumerator for generic records?

2016-11-30 Thread Ryan Joseph
I just tried this really quick and it doesn’t seem to work with records but if I changed it to a class that worked. Maybe I should use an object instead so it’s stored on the stack like a record? Not very important it can enumerate but I wanted to try first. > On Nov 30, 2016, at 5:53 PM, Ryan

Re: [fpc-pascal] Using the LCL without Lazarus

2016-11-30 Thread Mattias Gaertner
On Tue, 29 Nov 2016 20:42:36 -0500 "BobJ" wrote: >[...] > Begin web-site excerpt > > Using the LCL without Lazarus > > 1How to use the LCL without the Lazarus IDE? > 1.1Requirements > 1.2Introduction > 1.3The installation process > 1.4The settings >

Re: [fpc-pascal] For..in enumerator for generic records?

2016-11-30 Thread Sven Barth
Am 30.11.2016 05:35 schrieb "Ryan Joseph" : > > I have a generic record I would like to enumerate using for..in loops. Is this even possible? I tried briefly and it wasn’t clear this was possible so I thought I’d ask first. Thanks. > Take a look at

Re: [fpc-pascal] For..in enumerator for generic records?

2016-11-30 Thread leledumbo
> I have a generic record I would like to enumerate using for..in loops. Is this even possible? I tried briefly and it wasn’t clear this was possible so I thought I’d ask first. Thanks. Take a look at how gvector implements it: