Re: [Lazarus] Write to UNC or mapped drive

2016-05-26 Thread Leonardo M . Ramé
sonate('user', 'pass') then begin NetUseAdd('X:', '\\server\directory', 'remoteuser', 'remotepass', lAccess); // write files to X:\ NetUseDelete('X:'); end; end; Regards, -- Leonardo M. Ramé Medical IT - Griensu S

[Lazarus] Write to UNC or mapped drive

2016-05-24 Thread Leonardo M . Ramé
Hi, My app is a CGI running on Windows2012 (IIS 7.0), it needs to save a file to a remote UNC or Mapped drive, but when I check using DirectoryExists in both cases I get False, but of course the UNC and mapped drive exists. Any hint?. Regards, -- Leonardo M. Ramé Medical IT - Griensu S.A. Av

[Lazarus] test

2016-05-05 Thread Leonardo M . Ramé
-- Leonardo M. Ramé Medical IT - Griensu S.A. Av. Colón 636 - Piso 8 Of. A X5000EPT -- Córdoba Tel.: +54(351)4246924 +54(351)4247788 +54(351)4247979 int. 19 Cel.: +54 9 (011) 40871877 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] fcl-web or BrookFramework queryfields array

2016-04-15 Thread Leonardo M . Ramé
El 15/04/16 a las 16:33, silvioprog escribió: On Fri, Apr 15, 2016 at 4:25 PM, Leonardo M. Ramé mailto:l.r...@griensu.com>> wrote: [...] It works pefectly por param=value&..., but I don't know how to parse array type values. example: ?filters[0]['filter'

Re: [Lazarus] fcl-web or BrookFramework queryfields array

2016-04-15 Thread Leonardo M . Ramé
El 15/04/16 a las 16:22, Michael Van Canneyt escribió: On Fri, 15 Apr 2016, Leonardo M. Ramé wrote: Hi, I need to extract the field values of a GET query of type: http://127.0.0.1/cgi-bin/test.cgi?fields[1]=f1value&fields[2]=f2value Is there a way to handle this apart

[Lazarus] fcl-web or BrookFramework queryfields array

2016-04-15 Thread Leonardo M . Ramé
Hi, I need to extract the field values of a GET query of type: http://127.0.0.1/cgi-bin/test.cgi?fields[1]=f1value&fields[2]=f2value Is there a way to handle this apart from HttpRequest.QueryFields? Regards, -- Leonardo M. Ramé http://leonardorame.blogspot

Re: [Lazarus] Raspberry Pi 3 Now Available

2016-02-29 Thread Leonardo M . Ramé
El 29/02/16 a las 12:48, Dennis escribió: The speed of hardware improvement is so impressive and at the same time so scary. For those of us who have spent so much time optimizing the software so as to run smoothly on earlier primitive hardware, our effect seems so obsolete and silly from hindsigh

Re: [Lazarus] Lazarus on my ancient computer?

2016-02-17 Thread Leonardo M . Ramé
of Unity and runs pretty well on low end PCs.. Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] TOracleConnector connect as SYSDBA

2016-01-20 Thread Leonardo M . Ramé
El 19/01/16 a las 15:55, Leonardo M. Ramé escribió: Hi, does anyone know how to connect to Oracle as SYSDBA?, I'm getting "ORA-01017: invalid username/password; logon denied" when I set these params: Hostname: 127.0.0.1 Database: MYDB User: sys as SYSDBA Pass: MYPASSWORD Rol

[Lazarus] TOracleConnector connect as SYSDBA

2016-01-19 Thread Leonardo M . Ramé
pparently-) If, instead of using "sys as SYSDBA" I use "sys" alone, I get "ORA-28009: connection as SYS should be as SYSDBA or SYSOPER". Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing l

Re: [Lazarus] Different behavior of method and class variables

2015-11-30 Thread Leonardo M . Ramé
Please, forget about this. I was using a header for a different version of the dll. -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman

[Lazarus] Different behavior of method and class variables

2015-11-29 Thread Leonardo M . Ramé
gards, -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Codetools and specialize

2015-11-16 Thread Leonardo M . Ramé
El 16/11/15 a las 09:18, Mattias Gaertner escribió: On Mon, 16 Nov 2015 08:16:18 -0300 Leonardo M. Ramé wrote: Hi, I'm trying to implement a method of an specialized class, but when I type ctrl+space the IDE shows "Error: Identifier not found: specialize". But I can compi

[Lazarus] Codetools and specialize

2015-11-16 Thread Leonardo M . Ramé
GAction) public procedure Post; override; end; And the implementation: procedure TActListStudies.Post; begin // here CTRL+SPACE raises the error. Write('Your content here ...'); end; -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___

[Lazarus] File is locked?

2015-11-14 Thread Leonardo M . Ramé
thus raising an "Unable to open file" error. How can I check if the file is locked before reading its contents?. Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.free

Re: [Lazarus] TextHint, TextHintFontColor, TextHintFontStyle

2015-11-08 Thread Leonardo M . Ramé
El 08/11/15 a las 11:08, Bart escribió: On 11/8/15, Leonardo M. Ramé wrote: Hi, I noted there are new (to me) properties in some components, what's the difference between those and the good old Hint property?. TextHint fills the TCustomEdit with the value assigned to it, wheneve

[Lazarus] TextHint, TextHintFontColor, TextHintFontStyle

2015-11-08 Thread Leonardo M . Ramé
Hi, I noted there are new (to me) properties in some components, what's the difference between those and the good old Hint property?. -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list La

Re: [Lazarus] External SIGSEGV (random) when assigning TBookmark

2015-11-03 Thread Leonardo M . Ramé
El 03/11/15 a las 04:40, Michael Van Canneyt escribió: On Mon, 2 Nov 2015, Leonardo M. Ramé wrote: El 01/11/15 a las 09:25, Leonardo M. Ramé escribió: Hi, I don't use data aware controls too often, but as I'm updating a legacy application I have to use them. ... I finally solv

Re: [Lazarus] External SIGSEGV (random) when assigning TBookmark

2015-11-02 Thread Leonardo M . Ramé
El 01/11/15 a las 09:25, Leonardo M. Ramé escribió: Hi, I don't use data aware controls too often, but as I'm updating a legacy application I have to use them. ... I finally solved this by getting the value of a primary key, then after TSQLQuery.refresh I do a locate for that key,

[Lazarus] External SIGSEGV (random) when assigning TBookmark

2015-11-01 Thread Leonardo M . Ramé
aModule1.SQLQuery1.Bookmark := lBookmark; <-- Random SIGSEGV StatusBar1.Panels[1].Text := lOldStatus; end; -- Leonardo M. Ramé Medical IT - Griensu S.A. Av. Colón 636 - Piso 8 Of. A X5000EPT -- Córdoba Tel.: +54(351)4246924 +54(351)4247788 +54(351

Re: [Lazarus] Printing on Raspberry Pi

2015-10-30 Thread Leonardo M . Ramé
El 29/10/15 a las 12:24, Koenraad Lelong escribió: Hi, I'm trying to print a lazreport on a Raspberry Pi2. It's not working, I get : Bus Error or misaligned data access Press OK to ignore ... Pressing OK does nothing. Any suggestions to solve this ? I also tried the example from http://wiki.l

Re: [Lazarus] Theoretical question about future of Lazarus

2015-10-12 Thread Leonardo M . Ramé
inclusion, etc. -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] PostgreSql: unexpected EOF on client connection with an open transaction

2015-09-02 Thread Leonardo M . Ramé
El 02/09/15 a las 16:11, Leonardo M. Ramé escribió: El 02/09/15 a las 16:00, Michael Van Canneyt escribió: Well, that is why I asked how it is closed. Maybe it was closed a different way in your CGI, without properly closing it. The strange thing is that it reports an active transaction. Do

Re: [Lazarus] PostgreSql: unexpected EOF on client connection with an open transaction

2015-09-02 Thread Leonardo M . Ramé
El 02/09/15 a las 16:00, Michael Van Canneyt escribió: Well, that is why I asked how it is closed. Maybe it was closed a different way in your CGI, without properly closing it. The strange thing is that it reports an active transaction. Do you open a dataset ? If so, try setting Unidirectional:

Re: [Lazarus] PostgreSql: unexpected EOF on client connection with an open transaction

2015-09-02 Thread Leonardo M . Ramé
El 02/09/15 a las 15:09, Michael Van Canneyt escribió: On Wed, 2 Sep 2015, Leonardo M. Ramé wrote: Do you have a second transaction object (e.g. default transaction) ? If so, that's probably it. Michael. Yes, I added an onDestroy event to the datamodule containing the PQConne

Re: [Lazarus] PostgreSql: unexpected EOF on client connection with an open transaction

2015-09-02 Thread Leonardo M . Ramé
Do you have a second transaction object (e.g. default transaction) ? If so, that's probably it. Michael. No, just a TSQLTransaction attached to the TPQConnection object. I commented all my code but the PQConnection1.Connected := True, and I noted I get the "could not receive data from clien

Re: [Lazarus] PostgreSql: unexpected EOF on client connection with an open transaction

2015-09-02 Thread Leonardo M . Ramé
El 02/09/15 a las 10:28, Marc Santhoff escribió: Only guessing: maybe the transaction object is set to "autocommit" and the .Commit statement produces the error? It's configured to caRollBack. -- ___ Lazarus mailing list Lazarus@lists.lazarus.fre

[Lazarus] PostgreSql: unexpected EOF on client connection with an open transaction

2015-09-01 Thread Leonardo M . Ramé
64bits (Ubuntu 15.04). Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Protocol Buffers

2015-07-25 Thread Leonardo M. Ramé
On 25/07/15 06:31, Michael Van Canneyt wrote: On Fri, 24 Jul 2015, "Leonardo M. Ramé" wrote: Hi, does anyone know if there's a FreePascal implementation of Protocol Buffers, it seems to fit perfectly in on use case I'm working on: https://developers.google.com/protocol-b

Re: [Lazarus] Protocol Buffers

2015-07-25 Thread Leonardo M. Ramé
ated my own proprietary protocol, but I have some constraints, for example, the sender is a Java application, and the receiver is a FreePascal one, so, using a "standard" protocol, like Google's Protocol Buffers seems to fit very well in this particular scenario

[Lazarus] Protocol Buffers

2015-07-24 Thread Leonardo M. Ramé
Hi, does anyone know if there's a FreePascal implementation of Protocol Buffers, it seems to fit perfectly in on use case I'm working on: https://developers.google.com/protocol-buffers/ Regards, -- Leonardo M. Ramé Medical IT - Griensu S.A. Av. Colón 636 - Piso 8 Of. A X5000EPT -- C

Re: [Lazarus] Base64 broken in json?

2015-06-02 Thread Leonardo M. Ramé
El 02/06/15 a las 09:21, Michael Van Canneyt escibió: On Tue, 2 Jun 2015, "Leonardo M. Ramé" wrote: You cannot copy&paste that, because there may be escaped characters in it. If you are doing that, you are doing it wrong. Hmm. That'

Re: [Lazarus] Base64 broken in json?

2015-06-02 Thread Leonardo M. Ramé
El 02/06/15 a las 04:20, Michael Van Canneyt escibió: On Mon, 1 Jun 2015, "Leonardo M. Ramé" wrote: El 30/05/15 a las 13:29, silvioprog escibió: On Sat, May 30, 2015 at 12:14 PM, "Leonardo M. Ramé" mailto:l.r...@griensu.com>> wrote: [Window Title] p

Re: [Lazarus] Base64 broken in json?

2015-06-01 Thread Leonardo M. Ramé
El 30/05/15 a las 13:29, silvioprog escibió: On Sat, May 30, 2015 at 12:14 PM, "Leonardo M. Ramé" mailto:l.r...@griensu.com>> wrote: [Window Title] project1 [Content] { "var1" : "bGVvbmFyZG8=" } - leonardo [OK] But after take a look at your code,

Re: [Lazarus] Base64 broken in json?

2015-05-30 Thread Leonardo M. Ramé
On 30/05/15 05:48, Michael Van Canneyt wrote: On Fri, 29 May 2015, "Leonardo M. Ramé" wrote: Hi, does anyone know if when adding a base64 encoded string to an TJsonObject and calling AsJson method, the base64 is broken? Normally not. I did try to decode (with base64 -d comman

Re: [Lazarus] Base64 broken in json?

2015-05-29 Thread Leonardo M. Ramé
El 29/05/15 a las 14:55, "Leonardo M. Ramé" escibió: Hi, does anyone know if when adding a base64 encoded string to an TJsonObject and calling AsJson method, the base64 is broken? I did try to decode (with base64 -d command) and I'm getting errors when trying to decode th

[Lazarus] Base64 broken in json?

2015-05-29 Thread Leonardo M. Ramé
I get errors, the file encoded is about 1.5mb. -- Leonardo M. Ramé Medical IT - Griensu S.A. Av. Colón 636 - Piso 8 Of. A X5000EPT -- Córdoba Tel.: +54(351)4246924 +54(351)4247788 +54(351)4247979 int. 19 Cel.: +54 9 (011) 40871877 -- ___ Lazarus mailing

Re: [Lazarus] Inserting enum type into Postgresql

2015-05-15 Thread Leonardo M. Ramé
El 15/05/15 a las 12:26, Michael Van Canneyt escibió: On Fri, 15 May 2015, "Leonardo M. Ramé" wrote: Hi, I need to insert a value into a custom type column in a PostgreSql database. The type was created using this: create type doc_type as enum('pdf', 'rtf'

[Lazarus] Inserting enum type into Postgresql

2015-05-15 Thread Leonardo M. Ramé
uot;Primary Error: column "document_type" is of type doc_type but expression is of type text". How can I cast this?. Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Error: Duplicate identifier "$ansistrrec18"

2015-04-28 Thread Leonardo M. Ramé
El 28/04/15 a las 07:16, "Leonardo M. Ramé" escibió: Hi, I'm trying to build a CGI program using BrookFramework in FPC 3.1.1 and Lazarus compiled today but I'm getting this error: Error: Duplicate identifier "$ansistrrec18" That identifier of course is not a v

[Lazarus] Error: Duplicate identifier "$ansistrrec18"

2015-04-28 Thread Leonardo M. Ramé
the used files. Any hint?. BTW, the error happens in a method of a Generic Class defined this way: generic TBaseGAction = class(specialize TBrookGAction) ... end; Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Laz

Re: [Lazarus] Impressive web development

2015-04-17 Thread Leonardo M. Ramé
Nah, for web development leave me with Vim and I'll be happy. El 14/04/15 a las 17:32, Graeme Geldenhuys escibió: Hi, I just came across this on Google+ - probably the most impressive web app I've ever seen. It is called Codenvy and is a fully functional zero-configuration integrated developmen

Re: [Lazarus] Cross Codebot surface drawing examples

2015-03-26 Thread Leonardo M. Ramé
e doing. BTW, please, include some introduction about Cross Codebot, some people (like me) doesn't know what it is. -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.f

Re: [Lazarus] Play video from memory

2015-03-06 Thread Leonardo M. Ramé
a las 18:51, Philippe Lévi escibió: and you know how to tell MPLAYER to show the video in a specific window? (using WINDOWS, and glutCreateWindow). thanks Philippe ________ De: "Leonardo M. Ramé" Enviado: quinta-feira, 5 de março de 2015 17:44 Para

Re: [Lazarus] Play video from memory

2015-03-05 Thread Leonardo M. Ramé
saw it before but it doesn't seem there is a way to pass memory to it or I couldn't find out how. Do you know? Regards, Ara On Thu, Mar 5, 2015, at 11:40 AM, Leonardo M. Ramé wrote: It looks like MPlayer can do this: http://www.mplayerhq.hu/DOCS/HTML/en/streaming.html El 04/03/15 a las 13:29

Re: [Lazarus] Play video from memory

2015-03-05 Thread Leonardo M. Ramé
It looks like MPlayer can do this: http://www.mplayerhq.hu/DOCS/HTML/en/streaming.html El 04/03/15 a las 13:29, aradeonas escibió: Hi, Any one know a library or way to buffer video file into memory and then pass it to player? Any simple player do the job but it should support a way to open fil

Re: [Lazarus] Missing (compatible) underlying dataset, can not open

2014-11-27 Thread Leonardo M. Ramé
El 27/11/14 a las 12:26, Michael Van Canneyt escibió: On Thu, 27 Nov 2014, "Leonardo M. Ramé" wrote: Hi, I'm trying to execute this query, but I'm getting "Missing (compatible) underlying dataset, can not open". lQuery.DataBase := PQConnection1; lQuery.Par

[Lazarus] Missing (compatible) underlying dataset, can not open

2014-11-27 Thread Leonardo M. Ramé
.Open; The query runs without problems in PostgreSql 9.3 both from pgAdmin and psql. Any hint?. -- Leonardo M. Ramé Medical IT - Griensu S.A. Av. Colón 636 - Piso 8 Of. A X5000EPT -- Córdoba Tel.: +54(351)4246924 +54(351)4247788 +54(351)4247979 int.

Re: [Lazarus] OT: Fast image viewer

2014-11-05 Thread Leonardo M. Ramé
El 05/11/14 a las 15:08, Frederic Da Vitoria escibió: 2014-11-05 13:24 GMT+01:00 "Leonardo M. Ramé" mailto:l.r...@griensu.com>>: Hi, I'm lookig for a fast-small JPEG/BMP image viewer with Zoom, Pan, and Print (if possible), to be launched from my application a

[Lazarus] OT: Fast image viewer

2014-11-05 Thread Leonardo M. Ramé
Hi, I'm lookig for a fast-small JPEG/BMP image viewer with Zoom, Pan, and Print (if possible), to be launched from my application and passing a File param or better a Stream to be opened. Can anyone recommend such viewer?. I need it for Windows. Regards, -- Leonardo M. Ramé Medic

Re: [Lazarus] TAChart cannot zoom

2014-10-22 Thread Leonardo M. Ramé
/TAChart_Tutorial:_Function_Series * http://wiki.lazarus.freepascal.org/TAChart_Tutorial:_ColorMapSeries,_Zooming Thanks Werner, I'll take a look at it. -- Leonardo M. Ramé Medical IT - Griensu S.A. Av. Colón 636 - Piso 8 Of. A X5000EPT -- Córdoba Tel.: +54(351)4246924 +54(351)4247788 +54(351)42

[Lazarus] TAChart cannot zoom

2014-10-21 Thread Leonardo M. Ramé
terPaint = CandleStickChartAfterPaint Align = alClient Color = clBlack ParentColor = False ParentShowHint = False OnMouseMove = CandleStickChartMouseMove end Regards, -- Leonardo M. Ramé Medical IT - Griensu S.A. Av. Colón 636 - Piso 8 Of. A X5000EPT -- Córdoba Tel.: +54(351)424692

Re: [Lazarus] TProcess.Input hangs

2014-10-19 Thread Leonardo M. Ramé
On 17/10/14 20:54, Andrew Haines wrote: On 10/17/14 11:46, "Leonardo M. Ramé" wrote: Hi, I'm using this code to convert WAV files to MP3 on the fly, using lame. It was working great until today. It looks like this code has problems with large files sent to stdin. lProcess :=

[Lazarus] TProcess.Input hangs

2014-10-17 Thread Leonardo M. Ramé
also tried using this: repeat lReadCount := lProcess.Input.Write(lWav.Memory^, 500); if lReadCount < 500 then lReadCount := 0; until lReadCount = 0; But also hangs before lReadCount < 500. Any hint? -- Leonardo M. Ramé Medical IT - Griensu S.A. Av. Colón 636 - Piso 8 Of. A X5000EPT --

Re: [Lazarus] Alt + tab IDE Windows

2014-09-26 Thread Leonardo M. Ramé
El 26/09/14 a las 10:52, William Ferreira escibió: On IDE Options, try to enable 'Show single button in TaskBar'. Maybe could help... Yes, I tried that before asking, but sadly it does exactly the same. -- Leonardo M. Ramé http://leonardorame.bl

[Lazarus] Alt + tab IDE Windows

2014-09-26 Thread Leonardo M. Ramé
they work as one app, instead of separated windows?. Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Anchordocking

2014-09-25 Thread Leonardo M. Ramé
El 25/09/14 a las 13:07, Juha Manninen escibió: On Thursday, September 25, 2014, "Leonardo M. Ramé" mailto:l.r...@griensu.com>> wrote: I also wouldn't care about docked windows if at least the ide could remember window position. Is it possible to save the window

Re: [Lazarus] Anchordocking

2014-09-25 Thread Leonardo M. Ramé
El 25/09/14 a las 11:12, Juha Manninen escibió: On Thursday, September 25, 2014, "Leonardo M. Ramé" mailto:l.r...@griensu.com>> wrote: Hi, from time to time I check this bug request: http://mantis.freepascal.org/__view.php?id=26646 <http://mantis.freepascal.or

[Lazarus] Anchordocking

2014-09-25 Thread Leonardo M. Ramé
r opening Lazarus. -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] TAChart DataPointCrossHairTool

2014-09-21 Thread Leonardo M. Ramé
int, as you can see, the "19.60" with yellow background refers to the last point in my series, and is drawn exactly at the same position of the Close Y Point. For this I used GetYImgValue( Index of last point ) of the series. -- Leonardo M. Ramé http://leonardorame.blogspot.com -- __

Re: [Lazarus] TAChart DataPointCrossHairTool

2014-09-21 Thread Leonardo M. Ramé
nstead of 64 I want to display the correct value (approx. 3.95). -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] TAChart DataPointCrossHairTool

2014-09-21 Thread Leonardo M. Ramé
and 10, say 13 for example, the default behavior is displaying a line at 10 or 20, but what if I want to display the line just at 13?. Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.free

Re: [Lazarus] Hint as text over TAChart

2014-09-21 Thread Leonardo M. Ramé
Great!, I used the onAfterDrawBackwll's rect. -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] TAchart frame left and top values

2014-09-20 Thread Leonardo M. Ramé
I need to draw text just at the top left corner of a chart, is there a property to allow me to know the top, left (and of course right and bottom) points of the frame containing the chart?. I attached a screenshot showing what I'm looking for. -- Leonardo M. Ramé

Re: [Lazarus] Hint as text over TAChart

2014-09-20 Thread Leonardo M. Ramé
alChart.ClientToScreen(APoint); end; Regarding your second question how to call "OnAfterPaint": Just call it like I call the OnHint event in above example. Great, calling onAfterPaint did the trick. Btw, thanks for the example. -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] Hint as text over TAChart

2014-09-20 Thread Leonardo M. Ramé
ot called after DataPointHintToolPosition, but on other events, such as Form.onResize. One question is, is this the correct way to display text over a TAChart?, I don't like to add a TLabel over the chart. The second question, how can I force a call to TAChart.onAftertPaint?. Regards, -- L

Re: [Lazarus] TAChart CandleStick Chart

2014-09-17 Thread Leonardo M. Ramé
inimum of the data - therefore, it is no longer necessary to calculate the minimum by yourself, just have a look at the code in the demo project. And, finally, I modified the AddXOHLC method such that it automatically initializes the size of the YCount of the chart source if the current size would not

Re: [Lazarus] TAChart CandleStick Chart

2014-09-15 Thread Leonardo M. Ramé
never saw thos top and bottom marks. Default UP can be clLime and Down clRed. P.S.: the next chart type is Heikin Ashi, a variation of CandleStick. -- Leonardo M. Ramé Medical IT - Griensu S.A. Av. Colón 636 - Piso 8 Of. A X5000EPT -- Córdoba Tel

Re: [Lazarus] TAChart CandleStick Chart

2014-09-15 Thread Leonardo M. Ramé
ottom horizontal lines and an horizontal line in the middle of the candle, maybe adding a couple of boolean properties like TopMark, BottomMark and MiddleMark to the Box/Whisker chart will let use it as a CandleStick chart. -- Leonardo M. Ramé http://leonardorame.blogspo

[Lazarus] TAChart CandleStick Chart

2014-09-14 Thread Leonardo M. Ramé
.Color; // set border black ADrawer.SetPenParams(p.Style, clBlack); DoLine(x, yhigh, x, ylow); DoRect(x - tw, yopen, x + tw, yclose); end; end; I attached a screenshot of the result. -- Leonardo M. Ramé http://leonardorame.blogsp

Re: [Lazarus] TAChart Date Axis Remove Weekends

2014-09-14 Thread Leonardo M. Ramé
On 14/09/14 08:35, "Leonardo M. Ramé" wrote: On 14/09/14 06:57, Werner Pamler wrote: Don't use the real date as x value. Instead, use a counter value that is incremented every time you add a value to the series. Don't add data if the "DayOfWeek" of their date is

Re: [Lazarus] TAChart Date Axis Remove Weekends

2014-09-14 Thread Leonardo M. Ramé
efault it starts on 0 (bottom left) and ends in the highest value of my data. How can I change the starting value, to the minimum value of the data source?. Currently all the data poins are displayed at the top part of the chart, and from 0 to 70 is empty. -- Leonardo M. Ramé ht

[Lazarus] TAChart Date Axis Remove Weekends

2014-09-13 Thread Leonardo M. Ramé
Hi, I'm using TAChart to plot OHLC Stock prices and would like to ignore weekends. Is it possible to do that?. -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] TAChart OHLC

2014-09-13 Thread Leonardo M. Ramé
) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus Thanks!, that did the trick. -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing

[Lazarus] TAChart OHLC

2014-09-13 Thread Leonardo M. Ramé
(lLine[2]); lLow := StrToFloat(lLine[3]); lClose := StrToFloat(lLine[4]); Chart1OpenHighLowCloseSeries1.AddXOHLC(I, lOpen, lHigh, lLow, lClose, DateToStr(lDate)); end; finally lLine.Free; lCSV.Free; end; end; end. Also I attached the file "aapl.csv" I'

[Lazarus] StrToDate and DefaultFormatSettings

2014-09-12 Thread Leonardo M. Ramé
s[11] := 'Nov'; DefaultFormatSettings.ShortMonthNames[12] := 'Dec'; lStr := DateToStr(now); // This works Ok. lDate := StrToDate(lStr); // Here I get EConvert exception. Am I missing something?. -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Anchordocking on Lazarus 1.3

2014-08-29 Thread Leonardo M. Ramé
El 29/08/14 a las 09:46, Mattias Gaertner escibió: On Fri, 29 Aug 2014 09:11:07 -0300 "Leonardo M. Ramé" wrote: El 29/08/14 a las 06:36, Mattias Gaertner escibió: On Thu, 28 Aug 2014 14:45:36 -0300 "Leonardo M. Ramé" wrote: Hi, since a couple of months ago I noted

Re: [Lazarus] Anchordocking on Lazarus 1.3

2014-08-29 Thread Leonardo M. Ramé
El 29/08/14 a las 06:36, Mattias Gaertner escibió: On Thu, 28 Aug 2014 14:45:36 -0300 "Leonardo M. Ramé" wrote: Hi, since a couple of months ago I noted Anchordocking is not working as expected. I can arrange a nice layout, and save it as my default layout, but when I start Lazarus

[Lazarus] Anchordocking on Lazarus 1.3

2014-08-28 Thread Leonardo M. Ramé
Hi, since a couple of months ago I noted Anchordocking is not working as expected. I can arrange a nice layout, and save it as my default layout, but when I start Lazarus again, it was commpletely messed up. Does anyone faced the same issue?. Regards, -- Leonardo M. Ramé http

Re: [Lazarus] Translating php://input into fcl-web

2014-08-24 Thread Leonardo M. Ramé
On 24/08/14 07:31, "Leonardo M. Ramé" wrote: On 24/08/14 00:08, silvioprog wrote: Oops, On Sun, Aug 24, 2014 at 12:02 AM, silvioprog mailto:silviop...@gmail.com>> wrote: On Sat, Aug 23, 2014 at 9:07 PM, "Leonardo M. Ramé" mailto:l.r...@griensu.com>> wro

Re: [Lazarus] Translating php://input into fcl-web

2014-08-24 Thread Leonardo M. Ramé
On 24/08/14 00:08, silvioprog wrote: Oops, On Sun, Aug 24, 2014 at 12:02 AM, silvioprog mailto:silviop...@gmail.com>> wrote: On Sat, Aug 23, 2014 at 9:07 PM, "Leonardo M. Ramé" mailto:l.r...@griensu.com>> wrote: [...] Thank you very much Silvio fo

Re: [Lazarus] Translating php://input into fcl-web

2014-08-23 Thread Leonardo M. Ramé
On 23/08/14 20:54, silvioprog wrote: On Sat, Aug 23, 2014 at 8:09 PM, "Leonardo M. Ramé" mailto:l.r...@griensu.com>> wrote: > I made an example using fcl-web (without Brook) and the problem persists. [...] Strange. I made some changes to work here in my PC and it

Re: [Lazarus] Translating php://input into fcl-web

2014-08-23 Thread Leonardo M. Ramé
On 23/08/14 18:40, "Leonardo M. Ramé" wrote: On 23/08/14 17:18, silvioprog wrote: On Sat, Aug 23, 2014 at 3:12 PM, "Leonardo M. Ramé" mailto:l.r...@griensu.com>> wrote: Hi, I'm trying to translate this PHP code to fcl-web (actually brookframework):

Re: [Lazarus] Translating php://input into fcl-web

2014-08-23 Thread Leonardo M. Ramé
On 23/08/14 18:40, "Leonardo M. Ramé" wrote: On 23/08/14 17:18, silvioprog wrote: On Sat, Aug 23, 2014 at 3:12 PM, "Leonardo M. Ramé" mailto:l.r...@griensu.com>> wrote: Hi, I'm trying to translate this PHP code to fcl-web (actually brookframework):

Re: [Lazarus] Translating php://input into fcl-web

2014-08-23 Thread Leonardo M. Ramé
On 23/08/14 17:18, silvioprog wrote: On Sat, Aug 23, 2014 at 3:12 PM, "Leonardo M. Ramé" mailto:l.r...@griensu.com>> wrote: Hi, I'm trying to translate this PHP code to fcl-web (actually brookframework): The difficult part is the line with &q

[Lazarus] Translating php://input into fcl-web

2014-08-23 Thread Leonardo M. Ramé
ne is correct. Any hint?. Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Cannot find -lpthread

2014-08-21 Thread Leonardo M. Ramé
... Yes I have installed libpthread-stubs0-dev (libpthread-dev does not exists here), but the error persists. I need to know what is that "something similar" package needed by fpc... -- Leonardo M. Ramé http://leonardorame.blogspot.com -- _

Re: [Lazarus] Cannot find -lpthread

2014-08-21 Thread Leonardo M. Ramé
El 21/08/14 a las 12:34, Henry Vermaak escibió: On Thu, Aug 21, 2014 at 12:22:45PM -0300, "Leonardo M. Ramé" wrote: Hi, I'm trying to build fpc and lazarus from sources in XUbuntu 14.04. While trying to link fpc I get this: /usr/bin/ld: aviso: link.res contiene secciones de sal

[Lazarus] Cannot find -lpthread

2014-08-21 Thread Leonardo M. Ramé
puede encontrar -lc fpmake.pp(44,1) Error: Error while linking Does anyone know which package I'm missing? I've installed build-essential and libpthread-stubs0, but it still cannot find pthread... Regards, -- Leonardo M. Ramé http://leonardora

Re: [Lazarus] CGI Response.ContentStream client break

2014-07-04 Thread Leonardo M . Ramé
On 2014-07-04 08:22:30 +0200, Michael Van Canneyt wrote: > > > On Thu, 3 Jul 2014, silvioprog wrote: > > >2014-07-03 17:33 GMT-03:00 Leonardo M. Ramé : > >[...] > > Mmm, no, too fast. > > > > Maybe the problem is on the client side. I'

Re: [Lazarus] CGI Response.ContentStream client break

2014-07-03 Thread Leonardo M . Ramé
On 2014-07-03 17:28:41 -0300, Leonardo M. Ramé wrote: > On 2014-07-03 17:20:53 -0300, silvioprog wrote: > > 2014-07-03 16:51 GMT-03:00 Leonardo M. Ramé : > > > > > Hi, I have a CGI program that serves some files using this code in an > > > action: &g

Re: [Lazarus] CGI Response.ContentStream client break

2014-07-03 Thread Leonardo M . Ramé
On 2014-07-03 17:20:53 -0300, silvioprog wrote: > 2014-07-03 16:51 GMT-03:00 Leonardo M. Ramé : > > > Hi, I have a CGI program that serves some files using this code in an > > action: > > > > AResponse.ContentStream := TFileStream.Create(lImagePath, fmOpenRead); >

[Lazarus] CGI Response.ContentStream client break

2014-07-03 Thread Leonardo M . Ramé
es to download the file again, a code 500 is returned. Is there a way to detect the connection break and destroy the stream gracefully?. Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list La

Re: [Lazarus] Errors while linking

2014-06-19 Thread Leonardo M . Ramé
On 2014-06-19 17:32:00 +0200, Reinier Olislagers wrote: > On 19/06/2014 16:49, Leonardo M. Ramé wrote: > > I'm using Lazarus and FPC from trunk (updated today) on a Ubuntu 12.04 > > 64bit machine. > > > > Here's the output with errors: > > > >

Re: [Lazarus] Errors while linking

2014-06-19 Thread Leonardo M . Ramé
On 2014-06-19 17:26:40 +0200, Mattias Gaertner wrote: > On Thu, 19 Jun 2014 11:49:46 -0300 > Leonardo M. Ramé wrote: > > > Hi People, while trying to compile an app that uses BGRabitmap I've got > > many linking errors when compiling with debugging information enabled.

[Lazarus] Errors while linking

2014-06-19 Thread Leonardo M . Ramé
a1': dlglayout.pas:(.debug_info+0xa3): undefined reference to `DBG2_$FORMS_$$_TForm' dlglayout.pas:(.debug_info+0xb9): undefined reference to `DBG_$BUTTONPANEL_$$_TButtonPanel' dlglayout.pas:(.debug_info+0xcb): undefined reference to `DBG_$STDCTRLS_$$_TGroupBox' dlglayout.pas:(.d

Re: [Lazarus] Run command disabled

2014-06-11 Thread Leonardo M . Ramé
On 2014-06-11 09:27:14 -0300, silvioprog wrote: > 2014-06-11 9:06 GMT-03:00 Leonardo M. Ramé : > > > Hi people, I don't know what I did but the Run command (F9) is disabled > > in my program. Do you know how can I enable it again?. > > > Shift+Ctrl+F11; Proj

[Lazarus] Run command disabled

2014-06-11 Thread Leonardo M . Ramé
Hi people, I don't know what I did but the Run command (F9) is disabled in my program. Do you know how can I enable it again?. Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list La

Re: [Lazarus] [ANN] Brook 3.0.0 release!

2014-05-22 Thread Leonardo M . Ramé
On 2014-05-18 23:45:23 -0300, silvioprog wrote: > 2014-05-15 8:45 GMT-03:00 Leonardo M. Ramé : > > > On 2014-05-13 20:10:20 -0300, silvioprog wrote: > > > The Brook team is glad to announce the release 3.0.0. > > > > > > This version was compiled and tes

Re: [Lazarus] [ANN] Brook 3.0.0 release!

2014-05-15 Thread Leonardo M . Ramé
for the new release. I'm using it on one of my apps, and it's fantastic!. Can you add a "What's new" item in the home page or in the Wiki?. I know we are programmers and shouldn't have problems reading the git diff, but I'll be easy for

  1   2   3   4   5   6   >