Re: [Lazarus] fpspreadsheet - automatic column width

2016-03-23 Thread Roberto P.
TOP !! Thanks, Roberto 2016-03-22 17:24 GMT+01:00 Werner Pamler : > > Am 22.03.2016 um 16:16 schrieb Roberto P.: > >> To make it work well enough, I am still missing one point: is there a way >> to detect which is the last used row in a column or the last used column in

Re: [Lazarus] fpspreadsheet - automatic column width

2016-03-22 Thread Roberto P.
oint: is there a way to detect which is the last used row in a column or the last used column in a row? A single cell is "not enough". Thanksgreat library !! Roberto 2016-03-22 14:28 GMT+01:00 Werner Pamler : > Am 22.03.2016 um 11:12 schrieb Roberto P.: > >> Dear List,

[Lazarus] fpspreadsheet - automatic column width

2016-03-22 Thread Roberto P.
Dear List, in (the great) fpspreadsheet library, is there a method to calculate the minimum / optimum column width to fit its contents? Or, can anyone suggest me how to write such method? I have found the CalcAutoRowHeight , but that's different: it compares the font height with the cell height.

Re: [Lazarus] PDF generator

2016-03-05 Thread Roberto P.
Great! Are metadata included ? Thanks, R. 2016-03-05 18:27 GMT+01:00 Michael Van Canneyt : > Hi, > > I have committed a PDF generator to FPC Subversion: fcl-pdf. > > Why a new pascal PDF generator ? Mainly because the existing ones written > in Object Pascal suffer from > several disadvantages

Re: [Lazarus] Do we really need a PaintSwastika procedure?

2016-01-07 Thread Roberto P.
My 2 cents: 1) a program routine is just a program routine, like pencils or a paintbrush; neither of them is symbol. If you are not comfortable with that symbol (any symbol that can be offensive to anyone), you just have not to paint it and not to call the routine. Think about the difference! (Exa

Re: [Lazarus] very small addition to multilog package

2015-02-21 Thread Roberto P.
? > > Luiz > > 2015-02-20 15:03 GMT-03:00 Roberto P. : > >> I've been using for long the great multilog package to do selective >> logging to file and an IPC listener.Recently I needed to setup a little >> more complicate IPC based system, for which I took adv

[Lazarus] very small addition to multilog package

2015-02-20 Thread Roberto P.
I've been using for long the great multilog package to do selective logging to file and an IPC listener.Recently I needed to setup a little more complicate IPC based system, for which I took advantage of all of that good work. In order to have a multiple agent bi-directional communication was to be

Re: [Lazarus] TAChart with transparent background

2014-09-15 Thread Roberto P.
The image is a 30KB png, not much. It is smaller than the area, so it gets actually stretched. Can I use Draw instead of StretchDraw if I make the image exactly the size I need? I can force the form size. I think that tens of milliseconds can be actually relevant, because I am plotting data receiv

Re: [Lazarus] TAChart with transparent background

2014-09-15 Thread Roberto P.
# 2014-09-04 1:08 GMT+02:00 Roberto P. : > Thank you very much. > I need a background image, therefore as soon as I am back at the office > I'll try your code. > Thank you again! > > R# > > > 2014-09-02 18:18 GMT+02:00 Werner Pamler : > >> It is not fully c

Re: [Lazarus] TAChart with transparent background

2014-09-03 Thread Roberto P.
Thank you very much. I need a background image, therefore as soon as I am back at the office I'll try your code. Thank you again! R# 2014-09-02 18:18 GMT+02:00 Werner Pamler : > It is not fully clear to me what you mean by "a chart with transparent > background". Do you want to see the form un

[Lazarus] TAChart with transparent background

2014-09-02 Thread Roberto P.
Dear List, is it possible to have a chart with transparent background, so that a picture behind the plot is visible? >From the wiki I understand that TAChart does not support BackImage property as in Delphi, which would fit the purpouse. However I read thay using BGRAbitmap as a back-end it is po

Re: [Lazarus] [LAZARUS] Any Free/Cheap Async Serial Port Component

2014-04-03 Thread Roberto P.
I don't know AsyncPro, but a quick overview of CPortLaz code reveals the usage of a TThread and WaitForMultipleObjects which is very Windows-centric. R#û 2014-04-03 11:14 GMT+02:00 Michael Schnell : > On 04/02/2014 10:53 PM, Roberto P. wrote: > >> I'd like to poin

Re: [Lazarus] [LAZARUS] Any Free/Cheap Async Serial Port Component

2014-04-03 Thread Roberto P.
Unfortunately I've never tried it on anything other than Win2000-XP-7; I could support you only on these platforms with some examples. If you discover anything interesting on Win CE, please share it! R# 2014-04-03 0:23 GMT+02:00 Martin Gomez : > > On 02/04/2014 05:53 p.m., Rober

Re: [Lazarus] [LAZARUS] Any Free/Cheap Async Serial Port Component

2014-04-02 Thread Roberto P.
I'd like to point out that CPortLaz is multithreaded and that it has both a COM port object and a Packet object. The first one is used to setup, open and close the port; the second one connects to the first one and makes packet handling as simple as: - define what is a packet: Packet.Startstring

Re: [Lazarus] [LAZARUS] Any Free/Cheap Async Serial Port Component

2014-04-02 Thread Roberto P.
we currently use this one: http://sourceforge.net/projects/cportlaz/files/cportlaz/ R# 2014-04-02 8:32 GMT+02:00 Bob Axtell : > This newbie is familiar with COMPORT from WINSOFT from my olden Delphi > days, but I can no longer afford it for one program. > > Does anybody know of a free/cheap co

Re: [Lazarus] First use of Lazarus and lpr file

2014-03-09 Thread Roberto P.
It is automatically created. Save the project and the unit containing the form, then look for a file project_name.lpr in the project folder. So, you don't need to add it...but you can open it and have a look at the surprisingly short content. R# 2014-03-09 21:24 GMT+01:00 Didier BRETIN : > Hell

Re: [Lazarus] potential Dec2Numb bug

2013-06-14 Thread Roberto P.
oops, reposted. 2013/6/14 Reinier Olislagers > On 14-6-2013 12:39, Roberto P. wrote: > > Dear List, > > > > I recently had some crashes in a program of mine, whose cause I was able > > to identify in a potential bug of the Dec2Numb functionor at least, >

[Lazarus] potential Dec2Numb bug

2013-06-14 Thread Roberto P.
Dear List, I recently had some crashes in a program of mine, whose cause I was able to identify in a potential bug of the Dec2Numb functionor at least, in an undocumented feature. Specifically, if Dec2Numb is passed a negative number, it returns an empty string. It sounds somehow illogical t

Re: [Lazarus] TForm BorderIcons

2012-09-07 Thread Roberto P.
2012/9/7 Vincent Snijders > Confirmed in the msdn: > > http://msdn.microsoft.com/en-us/library/windows/desktop/ff700543%28v=vs.85%29.aspx > WS_EX_CONTEXTHELP cannot be used with the WS_MAXIMIZEBOX or > WS_MINIMIZEBOX styles. > > Vincent > > ...I should have save my email as a draft, then updated

Re: [Lazarus] TForm BorderIcons

2012-09-06 Thread Roberto P.
2012/9/6 Mattias Gaertner > On Thu, 6 Sep 2012 16:15:03 +0200 > "Roberto P." wrote: > > > Hi, > > > > I can see the option biHelp among the other TForm.BorderIcons properties. > > What shall I do to have the form display the "?" button?

[Lazarus] TForm BorderIcons

2012-09-06 Thread Roberto P.
Hi, I can see the option biHelp among the other TForm.BorderIcons properties. What shall I do to have the form display the "?" button? It seems that setting the property to true is not enough. Anyone has an example on how to handle it ? Thanks, R# -- ___

Re: [Lazarus] Charset in TSdfDataSet

2012-09-06 Thread Roberto P.
2012/9/6 GLBX > ** > Right ! > > with Textout, I get accents correctly > > but... when I post the changes, now, I get the problem > > Originally DAMMANS > > Changed to DéMMANS > > Display after editing > DéMMANS (coorect) > > Saved in the CSV file as ! > DéMMANS > and... > > when I display a

Re: [Lazarus] Charset in TSdfDataSet

2012-09-06 Thread Roberto P.
Hi, I have recently dealt with a CSV file and accents. I concluded that the TSdfDataSet had no problem with reading the file; I was using a TMemo to show the strings and to see them correctly I had to write something like this: Memo.Lines.Text := UTF8Encode(SdfDataSet.Fields[0].AsString) I'm

Re: [Lazarus] Looking for a general text editor

2012-02-14 Thread Roberto P.
Hi Graeme, I'll go straight to the point without any shame: may I have your calculator and, eventually, the installer program? Unfortunately I've little to share, because I'm an hw engineer and my sw has very little or no "public" utility. The only one vaguely useful (http://sourceforge.net/projec

Re: [Lazarus] moving a project and its files

2012-01-25 Thread Roberto P.
2012/1/25 Hans-Peter Diettrich > Roberto P. schrieb: > > > What are the files that have to be added to our versioning system to be >> able to chekout a copy somewhere else? Or, which files are automatically >> generated by lazarus? >> > > I don't remem

Re: [Lazarus] moving a project and its files

2012-01-25 Thread Roberto P.
2012/1/25 Mattias Gaertner > On Wed, 25 Jan 2012 12:20:50 +0100 > "Roberto P." wrote: > > > 2012/1/25 Mattias Gaertner > > > > > On Wed, 25 Jan 2012 09:14:00 +0100 > > > "Roberto P." wrote: > > > > > > > H

Re: [Lazarus] moving a project and its files

2012-01-25 Thread Roberto P.
2012/1/25 Mattias Gaertner > On Wed, 25 Jan 2012 09:14:00 +0100 > "Roberto P." wrote: > > > Hi List, > > > > I need to move a project from a folder to another one; > > Use your favorite file browser and copy/move the folder. > > Ok, I wasn

[Lazarus] moving a project and its files

2012-01-25 Thread Roberto P.
Hi List, I need to move a project from a folder to another one; I tried using "publish project", but not all files belonging to it were moved. Also the hierarchy was lost; my projects always have the following folder structure: project_folder \--- project.lpi \--- p

Re: [Lazarus] Memory need on ARM

2011-07-14 Thread Roberto P.
2011/7/14 Michael Schnell : > Hi Experts, > > We are designing a controller PCB using Linux on an ARM CPU. > > We would like to run Lazarus generated programs with a GUI on this hardware. > > Now we would like to know how much RAM is necessary (besides the "Business > Logic" variables the program u

Re: [Lazarus] error compiling latest SVN laz...

2011-06-02 Thread Roberto P.
2011/6/2 waldo kitty : > >> If this does not work: try another version of fpc. > Yesterday I succesfully built lazarus 0.9.31 (r30999) with fpc 2.5.1 built from svn r17599. Roberto -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http: