Re: [Lazarus] record literal in FPC?

2013-01-08 Thread Xiangrong Fang
Hi leledumbo, As far as I know pascal inline directive only affect the compiler, not how you write code. Could you please give an example how inline function helps in my question? Thanks 2013/1/9 leledumbo > If you declare an inline function producing the record, the effect would be > the same

Re: [Lazarus] My Lazarus logo using Inkscape

2013-01-08 Thread William Oliveira Ferreira
2013/1/8 Graeme Geldenhuys > ANY lawyer will waste his on trying to make a claim that that is > copyrightable. > Especially in a case that no one is making money with it. .. Let's think: penalty would be charged according to the profits gained from the use of the image, then 0-50% = 0 --

Re: [Lazarus] record literal in FPC?

2013-01-08 Thread leledumbo
If you declare an inline function producing the record, the effect would be the same with that literal record. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-record-literal-in-FPC-tp4028464p4028474.html Sent from the Free Pascal - Lazarus mailing list a

Re: [Lazarus] record literal in FPC?

2013-01-08 Thread xrfang
Thanks, but what I want is to AVOID any kind of declarations. So I will use the Point() function suggested by ik. 在 三, 1月 9, 2013 at 12:26 上午,Howard Page-Clark 写道: On 08/1/13 3:30, xrfang wrote: > I would like to use literal directly, such as: > > Edit1.CaretPos := (X: 0, Y: 0); You can us

Re: [Lazarus] LazReport: printing on the next page, using stretch and breaked band

2013-01-08 Thread Marcos Douglas
On Tue, Jan 8, 2013 at 2:50 PM, Jesus Reyes wrote: > > > --- El lun 7-ene-13, Marcos Douglas escribió: > >> De: Marcos Douglas >> Asunto: Re: [Lazarus] LazReport: printing on the next page, using stretch >> and breaked band >> A: "Lazarus mailing list" >> Fecha: lunes, 7 de enero de 2013, 16:0

Re: [Lazarus] LazReport: printing on the next page, using stretch and breaked band

2013-01-08 Thread Jesus Reyes
--- El lun 7-ene-13, Marcos Douglas escribió: > De: Marcos Douglas > Asunto: Re: [Lazarus] LazReport: printing on the next page, using stretch and > breaked band > A: "Lazarus mailing list" > Fecha: lunes, 7 de enero de 2013, 16:04 > On Mon, Jan 7, 2013 at 6:25 PM, Jesus > Reyes > wrote: >

Re: [Lazarus] My Lazarus logo using Inkscape

2013-01-08 Thread Graeme Geldenhuys
On 01/08/13 16:31, Howard Page-Clark wrote: > > IANAL but "reproduce" here means "produce a copy of", which you are not > doing. > Rather you are adapting the image (or taking inspiration from the image, > or whatever) i.e. producing a different image. Exactly! If Zaher printed and then trace

Re: [Lazarus] My Lazarus logo using Inkscape

2013-01-08 Thread Graeme Geldenhuys
On 01/08/13 14:57, João Marcelo Vaz wrote: > > So, i would ask the museum for permission, in order to avoid future > problems... So lets see Somebody is trying to copyright a cheetah looking left?? Zaher created an illustration of a left looking cheetah - I don't think ANY lawyer will wast

Re: [Lazarus] My Lazarus logo using Inkscape

2013-01-08 Thread Howard Page-Clark
On 08/1/13 3:14, Zaher Dirkey wrote: We need the declaration for "reproduce" word, i don't think it is "make a similar to it", i need a lawyer :P IANAL but "reproduce" here means "produce a copy of", which you are not doing. Rather you are adapting the image (or taking inspiration from the ima

Re: [Lazarus] record literal in FPC?

2013-01-08 Thread Howard Page-Clark
On 08/1/13 3:30, xrfang wrote: I would like to use literal directly, such as: Edit1.CaretPos := (X: 0, Y: 0); You can use a typed constant thus: const Origin: TPoint = (x:0; y:0); begin ... Edit1.CaretPos := Origin; ... -- ___ Lazarus mailing l

Re: [Lazarus] record literal in FPC?

2013-01-08 Thread ik
On Tue, Jan 8, 2013 at 5:30 PM, xrfang wrote: > Hi, > > Is there "record literal in FPC? e.g. normally, you do: > > var >cp : TPoint; > > cp.X := 0; > cp.Y := 0; > Edit1.CaretPos := cp; > > I would like to use literal directly, such as: > > Edit1.CaretPos := (X: 0, Y: 0); > > But the above syn

[Lazarus] record literal in FPC?

2013-01-08 Thread xrfang
Hi,  Is there "record literal in FPC? e.g. normally, you do: var    cp : TPoint; cp.X := 0; cp.Y := 0; Edit1.CaretPos := cp; I would like to use literal directly, such as: Edit1.CaretPos := (X: 0, Y: 0);  But the above syntax is wrong. Is there such thing exists? Thanks, Shannon-- __

Re: [Lazarus] My Lazarus logo using Inkscape

2013-01-08 Thread Zaher Dirkey
We need the declaration for "reproduce" word, i don't think it is "make a similar to it", i need a lawyer :P On Tue, Jan 8, 2013 at 4:57 PM, João Marcelo Vaz wrote: > so you do not have the right to reproduce them -- I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3 Best Regar

Re: [Lazarus] My Lazarus logo using Inkscape

2013-01-08 Thread João Marcelo Vaz
There's a link on the cheetah page to the reproduction rights: http://nature.ca/notebooks/english/reprorights.htm This statement is there: "Illustrations and photographs are also subject to copyright protection, so you do not have the right to reproduce them, in most circumstances. You may reprod

Re: [Lazarus] My Lazarus logo using Inkscape

2013-01-08 Thread Mattias Gaertner
Graeme Geldenhuys hat am 8. Januar 2013 um 13:08 geschrieben: > On 01/07/13 22:45, Mattias Gaertner wrote: > >> And it is based on this image, i used it as guide lines to draw my own. > >> http://nature.ca/notebooks/english/cheetah_p1.htm > >> I am not a lawyer, so not sure if i break any license

Re: [Lazarus] My Lazarus logo using Inkscape

2013-01-08 Thread Zaher Dirkey
Yep it is Cheetah, the new different is an SVG file, vectors not a bitmap. It is a just a head, more easy and less time :D On Tue, Jan 8, 2013 at 2:08 PM, Graeme Geldenhuys wrote: > On 01/07/13 22:45, Mattias Gaertner wrote: > >> And it is based on this image, i used it as guide lines to draw my

Re: [Lazarus] SQLDB - Can't attach second SQLite database because transaction

2013-01-08 Thread Reinier Olislagers
On Monday, January 7, 2013, Michael Van Canneyt wrote: > > > On Mon, 7 Jan 2013, Ludo Brands wrote: > > On 07/01/2013 16:01, Michael Van Canneyt wrote: >> >>> >>> >>> On Mon, 7 Jan 2013, Krzysztof wrote: >>> >>> 2013/1/7 Michael Van Canneyt Maybe we should make a method

Re: [Lazarus] My Lazarus logo using Inkscape

2013-01-08 Thread Graeme Geldenhuys
On 01/07/13 22:45, Mattias Gaertner wrote: >> And it is based on this image, i used it as guide lines to draw my own. >> http://nature.ca/notebooks/english/cheetah_p1.htm >> I am not a lawyer, so not sure if i break any license for the original >> image. > > AFAIK this depends on the country. Umm

[Lazarus] Scrolling DBGrid without changing position of current record

2013-01-08 Thread Krzysztof
Hi, Is exists trick to avoid changing SQLQuery position while scrolling DBGrid? For example, I want keep selection on first record and want to scroll to the end of grid Regards -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://list

Re: [Lazarus] Code Editor - smart tabs to below line

2013-01-08 Thread Martin
On 08/01/2013 08:20, Krzysztof wrote: Hi, Normally smart tab affect to line above, is exist short key to affect to line below? No, there is not. in 1.1 you can (intel/amd, Win/Linux, (and probably PowerPC on MAc)) write a macro. http://wiki.lazarus.freepascal.org/Editor_Macros_PascalScri

[Lazarus] Code Editor - smart tabs to below line

2013-01-08 Thread Krzysztof
Hi, Normally smart tab affect to line above, is exist short key to affect to line below? Regards -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus