[fpc-pascal] fpGUI - UI Designer - place own components ?

2015-03-05 Thread Peter Krawies
Hi, yesterday I tried fpGUI the first time - I only compiled the examples just to see how it looks. Now I "google and google" for an answer to the question, how to make descendants from the fpGUI visual components and then place my own derived Components into the component palette of

Re: [fpc-pascal] FPC embedded ? (going slightly off-topic)

2015-03-05 Thread Paulo Costa
On 05/03/2015 19:28, Ewald wrote: On 05 Mar 2015, at 19:57, Adriaan van Os wrote: It's a very smal project but I do need to drive one or two stepper motors. What I learnt is that that the board does the controlling and that there is a separate chip for driving the motor, e.g. for stepping an

Re: [fpc-pascal] [Windows] FileGetAttr reports faHidden on e.g. C:\

2015-03-05 Thread José Mejuto
El 04/03/2015 a las 16:01, Bart escribió: Hi, Kind of off-topic. While working on Lazarus' TShellTreeView component, it was brought to my attention that FileGetAttr('C:\') returns an attribute that has faHidden in it. This is kind of unexpected. Well actually it reports $16: faDirectory + faHidde

Re: [fpc-pascal] AddTerminateProc leak?

2015-03-05 Thread silvioprog
On Wed, Mar 4, 2015 at 11:45 PM, silvioprog wrote: > Hello, > > The test: > > === begin code === > > program project1; > > uses > heaptrc, > SysUtils; > > function _Finalize: boolean; > begin > WriteLn('END'); > Result := True; > end; > > begin > WriteLn('START'); > AddTermi

Re: [fpc-pascal] FPC embedded ? (going slightly off-topic)

2015-03-05 Thread Ewald
On 05 Mar 2015, at 19:57, Adriaan van Os wrote: > > It's a very smal project but I do need to drive one or two stepper motors. > What I learnt is that that the board does the controlling and that there is a > separate chip for driving the motor, e.g. for stepping and microstepping ? Stepping a

Re: [fpc-pascal] FPC embedded ?

2015-03-05 Thread Adriaan van Os
Marco van de Voort wrote: - If you need it for automation in factories: get something with hardware quadrature encoder and motor control support. It saves having to do something custom again the first time you have to do something linked to a conveyer belt. It's a very smal project but I

Re: [fpc-pascal] Linux x64 linking error (FPC_ABSMASK_SINGLE)

2015-03-05 Thread Victor Matuzenko
Thank you for the explanations! -fPIC solves my problem. 02.03.2015 16:49, Jonas Maebe пишет: On 02 Mar 2015, at 09:14, Victor Matuzenko wrote: I have a (very) huge project, and compilation of a shared library inside it fails at the linking stage: /usr/bin/ld: : relocation R_X86_64_32S aga

Re: [fpc-pascal] Is there a CSS parser in FPC?

2015-03-05 Thread Graeme Geldenhuys
On 2015-03-05 14:47, Andrew Haines wrote: > It was > added for lazarus/lhelp and wasn't part of the original ipro component > so it's mostly separated from ipro. Thank you Andrew. I'll take a second look. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal

Re: [fpc-pascal] Suggestion: TDataSetEnumerator

2015-03-05 Thread silvioprog
On Thu, Mar 5, 2015 at 6:48 AM, Constantine Yannakopoulos < alfasud...@gmail.com> wrote: > On Thu, Mar 5, 2015 at 2:11 AM, silvioprog wrote: > >> What do you think about a TDataSetEnumerator class in the DB unit? >> Something like this: >> >> === begin code === >> >> > function TDataSetEnumerator

Re: [fpc-pascal] Suggestion: TDataSetEnumerator

2015-03-05 Thread silvioprog
On Thu, Mar 5, 2015 at 6:15 AM, Michael Van Canneyt wrote: > > On Wed, 4 Mar 2015, silvioprog wrote: > >> Hello, >> What do you think about a TDataSetEnumerator class in the DB unit? >> Something like this: >> > > Good idea. I never implemented it because I didn't know what to return. > But maybe

Re: [fpc-pascal] Is there a CSS parser in FPC?

2015-03-05 Thread Andrew Haines
On 03/03/2015 07:41 AM, Graeme Geldenhuys wrote: Hi, As the subject says, I would like to know if there is a CSS parser included with FPC (2.6.4 or Trunk)? No issue if there isn't, as I might not initially need one for the project I want to start - but looking around in the mean time wouldn't hu

Re: [fpc-pascal] [PATCH] Add Oid_JSON in pqconnection unit

2015-03-05 Thread silvioprog
On Thu, Mar 5, 2015 at 6:25 AM, Michael Van Canneyt wrote: > > On Wed, 4 Mar 2015, silvioprog wrote: > >> Hello, >> The patch allows to use this ... : >> >> select row_to_json(row(1,'foo')) >> >> ... instead of this (in this case, the ::text cast avoids the "Missing >> (compatible) underlying

Re: [fpc-pascal] FPC embedded ?

2015-03-05 Thread Marco van de Voort
In our previous episode, Michael Schnell said: > > the next generation will have TCP/IP (using wiznet w5500) > > AFAIK there are PIC32 chips with MAC on board so you just need a small > PHY chip (or a switch chip). I've used such solutions in the past, but actually I'm quite happy with the curre

Re: [fpc-pascal] FPC embedded ?

2015-03-05 Thread rvmartin2
I have 7 RPis and all have been very reliable. One has been up, running a webcam, for over 5 months without pause. Another controls my central heating. Others are file server and garage MP3 player. All have Free Pascal installed. Mark Morgan Lloyd wrote the following on 05/03/15 10:12:44:

Re: [fpc-pascal] FPC embedded ?

2015-03-05 Thread Michael Schnell
On 03/05/2015 11:42 AM, Marco van de Voort wrote: the next generation will have TCP/IP (using wiznet w5500) AFAIK there are PIC32 chips with MAC on board so you just need a small PHY chip (or a switch chip). Another easy option is a Microchip MAC/PHY chip with SPI interface to the processor

Re: [fpc-pascal] Use sleep in thread

2015-03-05 Thread A. Fortuny
Le 25/02/2015 15:41, Xiangrong Fang a écrit : Hi All, Can I use Sleep() in a thread to give up cpu time to other threads running at the same time, so as to adjust the relative "niceness" of a group of workers working on the same subject (in which each thread take part of the whole task). Th

Re: [fpc-pascal] FPC embedded ?

2015-03-05 Thread Michael Schnell
On 03/05/2015 11:42 AM, Marco van de Voort wrote: We currently use the 144pin dsPIC33EP512mu814, mostly serial, but the next generation will have TCP/IP (using wiznet w5500). We did the migration from PIC24 to PIC32. That chip family is really great and as it is MIPS, an fpc compiler already

Re: [fpc-pascal] FPC embedded ?

2015-03-05 Thread Michael Schnell
On 03/05/2015 11:26 AM, Michael Ring wrote: If you are interested in bare metal development (without linux as a host OS) then the ST Nucleo boards In fact I would be interested in "in bare metal development" on PIC32 chips. with those you can very easily and cheap do as well low-volume projects

Re: [fpc-pascal] FPC embedded ?

2015-03-05 Thread Marco van de Voort
In our previous episode, Adriaan van Os said: > Curious to know hands-on experience of list-members with FreePascal > embedded. Arduino looks quite attractive to me, but > it's not Pascal. Any recommendations ? I'm more from the microchip side of the fence, but some truths I

Re: [fpc-pascal] FPC embedded ?

2015-03-05 Thread Michael Ring
If you are interested in bare metal development (without linux as a host OS) then the ST Nucleo boards are a very interesting choice, they come with an integrated ST-Link Debugger interface and have Arduino-compatible headers. Cost is about €12,-- Make sure to get a model with Cortex-M3 or Cor

Re: [fpc-pascal] FPC embedded ?

2015-03-05 Thread Mark Morgan Lloyd
Adriaan van Os wrote: Curious to know hands-on experience of list-members with FreePascal embedded. Arduino looks quite attractive to me, but it's not Pascal. Any recommendations ? Raspberry Pi is a possibility, but my experience is that it has reliability problems which

Re: [fpc-pascal] Suggestion: TDataSetEnumerator

2015-03-05 Thread Constantine Yannakopoulos
On Thu, Mar 5, 2015 at 2:11 AM, silvioprog wrote: > What do you think about a TDataSetEnumerator class in the DB unit? > Something like this: > > === begin code === > > function TDataSetEnumerator.MoveNext: Boolean; > begin > Inc(FPosition); > if FPosition = FDataSet.RecordCount then > Ex

Re: [fpc-pascal] [PATCH] Add Oid_JSON in pqconnection unit

2015-03-05 Thread Michael Van Canneyt
On Wed, 4 Mar 2015, silvioprog wrote: Hello, The patch allows to use this ... :     select row_to_json(row(1,'foo')) ... instead of this (in this case, the ::text cast avoids the "Missing (compatible) underlying dataset, can not open" error): I think you better cast it to ftMemo instead o

Re: [fpc-pascal] Suggestion: TDataSetEnumerator

2015-03-05 Thread Michael Van Canneyt
On Wed, 4 Mar 2015, silvioprog wrote: Hello, What do you think about a TDataSetEnumerator class in the DB unit? Something like this: Good idea. I never implemented it because I didn't know what to return. But maybe returning the dataset itself is not a bad idea. If you implement it using t

[fpc-pascal] FPC embedded ?

2015-03-05 Thread Adriaan van Os
Curious to know hands-on experience of list-members with FreePascal embedded. Arduino looks quite attractive to me, but it's not Pascal. Any recommendations ? Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.fr