Re: [fpc-pascal] with statement using mulltiple objects

2014-09-13 Thread Luca Olivetti
El 13/09/14 20:13, vfclists . ha escrit: > I thought all the 3 labels would have the caption set, but only Label3's > caption is set. Is this a difference between Delphi's Object Pascal and > FreePascal, or has Delphi's Object Pascal always worked in the same manner? The "with" syntax comes from

Re: [fpc-pascal] with statement using mulltiple objects

2014-09-13 Thread Marius
Mattias Gaertner wrote: >Less typing. Just some generic comments in general. Its also much harder to understand in the long run and it can even be dangerous as stuff migh be refactored over time. All seasoned programmers know that and try to avoid the with statement. __

Re: [fpc-pascal] with statement using mulltiple objects

2014-09-13 Thread Mattias Gaertner
On Sat, 13 Sep 2014 20:29:32 +0100 "vfclists ." wrote: >[...] > What then is the nesting for if the command will only apply to the last > item with the property? The compiler searches the identifier in the last With, then in the second last With, ..., then in the local variables, then in the pa

Re: [fpc-pascal] with statement using mulltiple objects

2014-09-13 Thread Sven Barth
On 13.09.2014 21:29, vfclists . wrote: What then is the nesting for if the command will only apply to the last item with the property? Is each nested element supposed to be a property of the enclosing element? What is the rationale for such a statement, ie using multliple elements? Consider th

Re: [fpc-pascal] with statement using mulltiple objects

2014-09-13 Thread vfclists .
On 13 September 2014 20:02, Sven Barth wrote: > On 13.09.2014 20:13, vfclists . wrote: > >> According to the docs the with statement when used with mulltiple >> objects only works with the last parameter. >> >> >> The statement >> >> With A,B,C,D do Statement; >> >> is equivalent to >> >> With A

Re: [fpc-pascal] with statement using mulltiple objects

2014-09-13 Thread Sven Barth
On 13.09.2014 20:13, vfclists . wrote: According to the docs the with statement when used with mulltiple objects only works with the last parameter. The statement With A,B,C,D do Statement; is equivalent to With A do With B do With C do With D do Statement; -- I thought that if al

[fpc-pascal] with statement using mulltiple objects

2014-09-13 Thread vfclists .
According to the docs the with statement when used with mulltiple objects only works with the last parameter. The statement With A,B,C,D do Statement; is equivalent to With A do With B do With C do With D do Statement; -- I thought that if all the objects have the property the statement

[fpc-pascal] Imagemagick: magickwand doesn't convert to TIFF 1 bit

2014-09-13 Thread Reinier Olislagers
(Earlier posted on forum) See subject - I've posted this on stackoverflow http://stackoverflow.com/questions/25719495/magickwand-conversion-to-tiffccitt-group-4-compression-gives-uncompressed-image Link to example program + demo image is included in that question. Hope some of you guys can help

Re: [fpc-pascal] Fastest way of drawing 2D graphs

2014-09-13 Thread Marco van de Voort
In our previous episode, Hunter1972 said: > > > I assume your polylines are basically an array of X,Y coordinates in > > > single > > precision + color information? If you supply examples of those, I'll see if > > I can hack something together. (binary only, since it is a work codebase, > > more t

Re: [fpc-pascal] Fastest way of drawing 2D graphs

2014-09-13 Thread Graeme Geldenhuys
On 12/09/14 13:51, Hunter1972 wrote: > I will check what these libraries can do and how fast. You can also take a look at AggPas. It is a very good 2D vector graphics engine and loads of example apps that show scaling and panning. A copy can be found in the fpGUI or Lazarus code repository. The on

Re: [fpc-pascal] return 8 byte of return as function result via register

2014-09-13 Thread Sven Barth
Am 13.09.2014 01:00 schrieb "Dennis Poon" : > > I am trying to use an external C++ dll and also privide call back functions to this dll to call back. > However, the dll requires my functions to return 8 byte of 'struct' via register and the dll author said it is not possible with Delphi. > Is that