Re: [Lazarus] Some docking theory

2008-12-21 Thread Paul Ishenin
Hans-Peter Diettrich wrote: ... That's all, so far, but it took me many hours to distill all the observed woes of the current [L]DockTree implementation into these few principles. Will you implement this principles also? Best regards, Paul Ishenin.

Re: [Lazarus] reading a little endian long.

2008-12-21 Thread Dave Coventry
Is there any documentation on this? would the following: longv:=LEtoN(@buffer[5]); be the same as: longv:=buffer[5]; longv+=buffer[6] shl 8; longv+=buffer[7] shl 16; longv+=buffer[8] shl 24; 2008/12/21 Andrew Haines andrewd...@aol.com: Yes. See LEtoN, BEtoN, NtoLE and NtoBE. BlockRead(F,

Re: [Lazarus] reading a little endian long.

2008-12-21 Thread Mattias Gaertner
On Sun, 21 Dec 2008 10:26:41 +0200 Dave Coventry dgcoven...@gmail.com wrote: Is there any documentation on this? would the following: longv:=LEtoN(@buffer[5]); longv:=LEtoN(PLongint(@buffer[5])^); be the same as: longv:=buffer[5]; longv+=buffer[6] shl 8; longv+=buffer[7] shl 16;

Re: [Lazarus] How should delete to end of word behave

2008-12-21 Thread Alexander Klenin
On Sun, Nov 9, 2008 at 02:39, Alexander Klenin kle...@gmail.com wrote: Just found another minor glitch. Given text: abc def cursor xyz Ctrl+T results in abc defxyz i.e. spaces _to the left_ of cursor are deleted. Since there was no reaction, I closed original issue

Re: [Lazarus] TAChart: double-buffering (issue 0012377) questions

2008-12-21 Thread Alexander Klenin
On Sat, Dec 13, 2008 at 11:46, Alexander Klenin kle...@gmail.com wrote: So this question remains. Or should I protect double-buffering with {$IFDEF WIN32}? Since noone is commenting, I assume my patch is ok ;-) (http://bugs.freepascal.org/view.php?id=12377) Can someone review/apply it? It is

Re: [Lazarus] reading a little endian long.

2008-12-21 Thread Dave Coventry
Hi Mattias, Is there an equivalent for shortv:=buffer[5]; shortv+=buffer[6] shl 8; Many thanks Dave 2008/12/21 Mattias Gaertner nc-gaert...@netcologne.de: On Sun, 21 Dec 2008 10:26:41 +0200 Dave Coventry dgcoven...@gmail.com wrote: Is there any documentation on this? would the following:

Re: [Lazarus] reading a little endian long.

2008-12-21 Thread Mattias Gaertner
On Sun, 21 Dec 2008 12:04:37 +0200 Dave Coventry dgcoven...@gmail.com wrote: Hi Mattias, Is there an equivalent for shortv:=buffer[5]; shortv+=buffer[6] shl 8; shortv:=LEtoN(PSmallInt(@buffer[5])^); Mattias longv:=LEtoN(PLongint(@buffer[5])^); be the same as:

Re: [Lazarus] reading a little endian long.

2008-12-21 Thread Felipe Monteiro de Carvalho
On Sun, Dec 21, 2008 at 6:26 AM, Dave Coventry dgcoven...@gmail.com wrote: Is there any documentation on this? http://www.freepascal.org/docs-html/rtl/system/index-5.html would the following: longv:=LEtoN(@buffer[5]); be the same as: No, it's better. It only performs a conversion from

Re: [Lazarus] How should delete to end of word behave

2008-12-21 Thread Martin
Alexander Klenin wrote: On Sun, Nov 9, 2008 at 02:39, Alexander Klenin kle...@gmail.com wrote: Just found another minor glitch. Given text: abc def cursor xyz Ctrl+T results in abc defxyz i.e. spaces _to the left_ of cursor are deleted. Since there was no reaction, I closed

Re: [Lazarus] about gif images

2008-12-21 Thread C Western
Mattias Gaertner wrote: Do you have a fpimage reader for gif? Mattias I put together a GIF reader based on fpimage a little while ago. I hadn't offered it for lazarus as it was based rather heavily on a unit in the RXLibrary, and I wasn't sure of the copyright. I note though that the

Re: [Lazarus] about gif images

2008-12-21 Thread Michael Van Canneyt
On Sun, 21 Dec 2008, C Western wrote: Mattias Gaertner wrote: Do you have a fpimage reader for gif? Mattias I put together a GIF reader based on fpimage a little while ago. I hadn't offered it for lazarus as it was based rather heavily on a unit in the RXLibrary, and I wasn't

Re: [Lazarus] Lazarus forum

2008-12-21 Thread Bart
On 12/19/08, Marc Weustink m...@dommelstein.net wrote: Hi, This week Paul and I have been busy setting up a new forum on a new server sponsored by firmos.at. All existing users and messages from the old forum are transfered to the new forum. We hope you will enjoy the new features and

Re: [Lazarus] reading a little endian long.

2008-12-21 Thread Dave Coventry
Wow. If I can push a little more: Can I read in an eight-byte IEEE double using the same trick? 2008/12/21 Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com: On Sun, Dec 21, 2008 at 6:26 AM, Dave Coventry dgcoven...@gmail.com wrote: Is there any documentation on this?

Re: [Lazarus] Some docking theory

2008-12-21 Thread Hans-Peter Diettrich
Paul Ishenin schrieb: Will you implement this principles also? No problem, if you provide a base class with everything else, so that the rest can be implemented in a derived class. I'm just trying to figure out the current implemention(s) of the various classes, but have no idea yet where to

Re: [Lazarus] reading a little endian long.

2008-12-21 Thread Marc Weustink
Dave Coventry wrote: Wow. If I can push a little more: Can I read in an eight-byte IEEE double using the same trick? The example below is not complete, you need to cast. MyDouble:=LEtoN(PDouble(@buffer[5])^); Use codejumping (find declaration) on LEtoN to see what variants exist. Marc

Re: [Lazarus] reading a little endian long.

2008-12-21 Thread Mattias Gaertner
On Mon, 22 Dec 2008 01:11:38 +0100 Marc Weustink m...@dommelstein.net wrote: Dave Coventry wrote: Wow. If I can push a little more: Can I read in an eight-byte IEEE double using the same trick? The example below is not complete, you need to cast.

Re: [Lazarus] reading a little endian long.

2008-12-21 Thread Dave Coventry
2008/12/22 Marc Weustink m...@dommelstein.net: The example below is not complete, you need to cast. MyDouble:=LEtoN(PDouble(@buffer[5])^); Use codejumping (find declaration) on LEtoN to see what variants exist. Marc Thanks Marc, I hadn't thought of doing that... Thanks to all the guys