Re: [Lazarus] data export components

2009-05-26 Thread Andrea Mauri
I have few questions about the Data Export components, (e.g. TCSVExporter). I create a database at runtime, then I create queries and I would like to save the resulting datasets. Is it possible to save the datasets using as field headers something different than the field names? Have I to use

Re: [Lazarus] data export components

2009-05-26 Thread Andrea Mauri
Dear Michael, I entered a bug report (ID 0013837 [Packages] Database). How can I assign it to you? Another question related to the exporter, both demoes do not work. I get these error messages: C:\Programmi\Lazarus_svn\components\dbexport\demo\gendata.pp(127,32) Error: Identifier not found

[Lazarus] copy from topenglcontrol

2009-07-08 Thread Andrea Mauri
Dear All, there is a way to copy to clipboard or to save an image from a TOpenGLControl? Thanks, Andrea -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] opengl and compiz

2009-08-18 Thread Andrea Mauri
the glscene developers? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Dr. Andrea Mauri, PhD Milano Chemometrics and QSAR Research Group Department of Environmental

[Lazarus] sqlite3connection events

2009-09-07 Thread Andrea Mauri
Dear all, I have some problems with sqlite3connection. I put a sqlite3connection on a form and then double click on afterconnect event in the object inspector (or beforeconnect or afterdisconnect etc.), lazarus correctly creates in the editor the afterconnect procedure and put the cursor in it.

Re: [Lazarus] sqlite3connection events

2009-09-09 Thread Andrea Mauri
anyone can help me? Andrea Mauri ha scritto: Dear all, I have some problems with sqlite3connection. I put a sqlite3connection on a form and then double click on afterconnect event in the object inspector (or beforeconnect or afterdisconnect etc.), lazarus correctly creates in the editor

Re: [Lazarus] sqlite3connection events

2009-09-10 Thread Andrea Mauri
Dear Mattias, thanks, now it works. May I ask you what was the problem? I would like to contribute as much as possible in this project, more I understand more I can help. Thanks, Andrea Mattias Gaertner ha scritto: On Wed, 09 Sep 2009 19:30:49 +0200 Andrea Mauri andrea.mauri...@gmail.com

[Lazarus] startlazarus splash

2009-09-17 Thread Andrea Mauri
Dear all, I use last lazarus svn. When I launch lazarus using startlazarus.exe in ther splash screen it appears 0.9.27 version in the bottom left while if I launch lazarus.exe in the splash screen the correct 0.9.29 version is shown. andrea -- ___

Re: [Lazarus] startlazarus splash

2009-09-17 Thread Andrea Mauri
I rebuilded startlazarus, in the caption of the main form there is the correct 0.9.29 version. What do you mean with make starter? andrea Paul Ishenin ha scritto: Andrea Mauri wrote: I use last lazarus svn. When I launch lazarus using startlazarus.exe in ther splash screen it appears 0.9.27

Re: [Lazarus] startlazarus splash

2009-09-17 Thread Andrea Mauri
Andrea Mauri andrea.mauri...@gmail.com: Free Pascal Compiler version 2.2.2 [2008/08/03] for i386 Copyright (c) 1993-2008 by Florian Klaempfl Target OS: Win32 for i386 Compiling startlazarus.lpr PPU Loading C:\Programmi\Lazarus_svn\lcl\units\i386-win32\win32\interfaces.ppu PPU Invalid Version 91

[Lazarus] DBGrid.OnDrawColumnCell

2009-09-17 Thread Andrea Mauri
Dear all, in my application I need to change the cell color of some cells in a DBGrid. I use the OnDrawColumnCell event. My DBGrid name is dbgLoadings here the OnDrawColumnCell event: procedure TfrmPCA.dbgLoadingsDrawColumnCell(Sender: TObject; const Rect: TRect; DataCol: Integer; Column:

Re: [Lazarus] DBGrid.OnDrawColumnCell

2009-09-17 Thread Andrea Mauri
it works, thanks! andrea Luca Olivetti ha scritto: En/na Andrea Mauri ha escrit: Dear all, in my application I need to change the cell color of some cells in a DBGrid. I use the OnDrawColumnCell event. My DBGrid name is dbgLoadings here the OnDrawColumnCell event: procedure

[Lazarus] TAChart marks on mouseoverpoint

2009-09-21 Thread Andrea Mauri
Dear all, I am using TAChart and I would like to see the mark of a point when the point is clicked or the mouse is over it. Actually I do it using tchart.hint, TChartMouseMove event and GetNearestPoint function. In this way I show an hint any time the mouse pass over a point. Is it possible to

[Lazarus] enablecontrols and disablecontrols

2009-09-21 Thread Andrea Mauri
Dear all, I have a question regarding DisableControls and EnableControls procedures of TDataSet. Is it correct that if I call 2 times disablecontrols I have to call 2 times enablecontrols in order to enable again the controls associated to the dataset? Here an example: I put a DBGrid

Re: [Lazarus] enablecontrols and disablecontrols

2009-09-21 Thread Andrea Mauri
thanks, i used ctrl-click but I didn't know about ctrl-shift-down. a. Are you using Lazarus? ctrl-click on TDataset.EnableControls. Then use ctrl-shift-down and you'll see... ;) Offcourse, documentation is also usefull. But there is this easy alternative. (It doesn't work in more difficult

Re: [Lazarus] TAChart marks on mouseoverpoint

2009-09-21 Thread Andrea Mauri
I use trunk version of lazarus so I will check it. thanks, andrea Alexander Klenin ha scritto: On Mon, Sep 21, 2009 at 23:39, Andrea Mauri andrea.mauri...@gmail.com wrote: Dear all, I am using TAChart and I would like to see the mark of a point when the point is clicked or the mouse is over

Re: [Lazarus] TAChart marks on mouseoverpoint

2009-09-22 Thread Andrea Mauri
and then it immediately disappears. So how can I draw shapes on a chart? I have to put unitary circle but also other things, such as rays from the origin of the chart (0, 0) to all the points in a serie. Could you help me? regards, andrea Andrea Mauri ha scritto: I use trunk version of lazarus so I

[Lazarus] TAChart borderspacing

2009-09-22 Thread Andrea Mauri
dear all, I have a question about BorderSpacing in TAChart. At design time I can anchor the chart and set the Border (Around) using the anchors editor. I can see the effect on the form at design time but if I run the project the effect of the around border disappears (like if Around border is

Re: [Lazarus] TAChart borderspacing

2009-09-23 Thread Andrea Mauri
wow. fast! Alexander Klenin ha scritto: On Tue, Sep 22, 2009 at 23:11, Andrea Mauri andrea.mauri...@gmail.com wrote: dear all, I have a question about BorderSpacing in TAChart. At design time I can anchor the chart and set the Border (Around) using the anchors editor. I can see the effect

Re: [Lazarus] TAChart marks on mouseoverpoint

2009-09-24 Thread Andrea Mauri
Currently, they are drawn below points with negative Y and above others. This is intended to reduce clutter, and is absolutely required for bar series -- but maybe it was not a good idea for line series, I am not sure. I was misunderstood. With below I intend that marks are drawn back the

Re: [Lazarus] TAChart marks on mouseoverpoint

2009-09-24 Thread Andrea Mauri
I see. This is a borderline case, probably too exotic to be included in the general component. Still, if you have inclination to work on a patch, I would suggest to change TLineSeries.ShowLines property from boolean to enumeration (slNone, slFromPrevious, slFromOrigin). I created a patch

[Lazarus] tachart add point

2009-12-23 Thread Andrea Mauri
Dear all, dear Alexander, I saw in tachart source code that adding points to a serie they are kept ordered by X coordinate. There is any reason for that? Taken from source: // We keep data points ordered by X coordinate. // Note that this leads to O(N^2) time except // for the case of

[Lazarus] how to disable xp manifest

2010-01-12 Thread Andrea Mauri
dear all, how can I disable the xp manifest? I use Lazarus 0.9.29 r23425 FPC 2.4.0 i386-win32-win32/win64. In Project Options if I uncheck the checkbox that enable the manifest nothing happens and the manifest is still enabled. In order to reproduce it open a new project put a button on a form

[Lazarus] tchart copy or save problems with clipped = False

2010-01-12 Thread Andrea Mauri
Hi, I have some problems in copying/saving charts when the clipped property of a serie (Marks.Clipped) is set to False. I am sending 3 mails in order to show you the tchart behaviour. In the first mail I attached the chart copied without marks, in the second is the same chart with

Re: [Lazarus] tchart copy or save problems with clipped = False

2010-01-12 Thread Andrea Mauri
the second image Il 12/01/2010 12.53, Andrea Mauri ha scritto: Hi, I have some problems in copying/saving charts when the clipped property of a serie (Marks.Clipped) is set to False. I am sending 3 mails in order to show you the tchart behaviour. In the first mail I attached the chart copied

Re: [Lazarus] tchart copy or save problems with clipped = False

2010-01-12 Thread Andrea Mauri
the third image Il 12/01/2010 12.55, Andrea Mauri ha scritto: the second image Il 12/01/2010 12.53, Andrea Mauri ha scritto: Hi, I have some problems in copying/saving charts when the clipped property of a serie (Marks.Clipped) is set to False. I am sending 3 mails in order to show you

Re: [Lazarus] tchart copy or save problems with clipped = False

2010-01-13 Thread Andrea Mauri
Found it -- it was a TChart bug after all. Fixed in r23433 Thanks, it works! -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] tchart repaint on mouseclick

2010-01-14 Thread Andrea Mauri
why if I left click on a TChart the series on that TChart are repainted also if I do not do anything else then click on the chart? andrea -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] tchart repaint on mouseclick

2010-01-15 Thread Andrea Mauri
Il 15/01/2010 6.28, Alexander Klenin ha scritto: On Thu, Jan 14, 2010 at 23:32, Andrea Mauriandrea.mauri...@gmail.com wrote: why if I left click on a TChart the series on that TChart are repainted also if I do not do anything else then click on the chart? You can set AllowZoom property to

Re: [Lazarus] tchart repaint on mouseclick

2010-01-15 Thread Andrea Mauri
Il 15/01/2010 14.28, Alexander Klenin ha scritto: On Fri, Jan 15, 2010 at 19:59, Andrea Mauriandrea.mauri...@gmail.com wrote: Il 15/01/2010 6.28, Alexander Klenin ha scritto: why if I left click on a TChart the series on that TChart are repainted also if I do not do anything else then click

Re: [Lazarus] DBGrid highlighting certain cells

2010-01-22 Thread Andrea Mauri
Il 22/01/2010 8.34, Jesus Reyes ha scritto: Using OnPrepareCanvas you don't have to draw anything, you get the column:tcolumn which is being painted as an argument and from there you get the field and can take decisions based on fields value, then you change dbgrid's canvas properties, for

[Lazarus] bug 0013235 openglcontrol

2010-02-01 Thread Andrea Mauri
I was monitoring bug 0013235 related to openglcontrol that was recently closed. I tested it on Lazarus 0.9.29 r23608 FPC 2.4.0 i386-win32-win32/win64 and the bug is not resolved. If I run the openglcontrol_demo it works if the xp manifest is disabled otherwise the demo does not work properly.

Re: [Lazarus] TButtonedEdit

2010-02-11 Thread Andrea Mauri
TEditButton ? (on misc component palette) not exactly, it is a TEdit that can include two glyphs/buttons, one on the right and one on the left, both inside the Tedit. http://dn.codegear.com/article/images/38757/030E.png -- ___ Lazarus mailing

[Lazarus] xml reading problem

2010-02-15 Thread Andrea Mauri
dear all, I have some problems reading xml files. If I read xml files using ReadXMLFile it works only if I use: 1. procedure ReadXMLFile(out ADoc: TXMLDocument; const AFilename: String); overload; while if I use 2. procedure ReadXMLFile(out ADoc: TXMLDocument; var f: Text); overload; the

Re: [Lazarus] xml reading problem

2010-02-15 Thread Andrea Mauri
Please convert the examples to working console programs, and attach them to a bugreport in Mantis. (and the acetyl* files as well) ok, but I have to report it as a bug for fpc category FCL? thanks, andrea -- ___ Lazarus mailing list

Re: [Lazarus] xml reading problem

2010-02-15 Thread Andrea Mauri
Il 15/02/2010 16.31, Andrea Mauri ha scritto: Please convert the examples to working console programs, and attach them to a bugreport in Mantis. (and the acetyl* files as well) I reported it as Bug 0015776 [FPC] FCL Thanks, andrea

[Lazarus] dropdown button

2010-02-26 Thread Andrea Mauri
Hi, there is a component like a dropdown button? I mean a tbutton like a ttoolbutton with style = tbsDropDown Andrea -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] tchart reticule mode

2010-03-01 Thread Andrea Mauri
dear Alexander, using the last svn I have problems with reticulemode property. If I set it to True every time I click on a chart the reticule is drawn and does not disappear. To reproduce it just enable reticule mode on a chart with at least one serie and click on the chart. Andrea --

[Lazarus] tchart series zorder

2010-03-01 Thread Andrea Mauri
Dear all, I would like to know how can I decide the zorder of the series on a chart. I have a chart with more than one serie, but I want that some series are always visible while others are drawn back. How can I do that? Andrea -- ___ Lazarus

[Lazarus] dbl click on a grid

2010-03-01 Thread Andrea Mauri
dear all, in my application I have some grids (TStringGrid) where the dblclick should fire some events related to the selected row. I would like that the dblclick events will be raised only if the dblclick is performed on non-fixed rows. How can I do that? andrea --

Re: [Lazarus] tchart series zorder

2010-03-02 Thread Andrea Mauri
Il 02/03/2010 6.45, Alexander Klenin ha scritto: Use Series.ZPosition property. ZPosition is not what I'm looking for. Put a chart on a form then add a TLine serie. If you change the zposition the line is moved. I don't wanto to move the line I just want to see the line also if there is a

Re: [Lazarus] dbl click on a grid

2010-03-02 Thread Andrea Mauri
Il 01/03/2010 22.03, Hans-Peter Diettrich ha scritto: Check the clicked row in your event handler. If row = 3 and I click on a fixedrow the row property still remains 3. So how can I check that the dblclick is performed on a fixed row? My problem is that if the user click on the fixed row the

Re: [Lazarus] tchart series zorder

2010-03-04 Thread Andrea Mauri
Il 04/03/2010 1.50, Alexander Klenin ha scritto: On Tue, Mar 2, 2010 at 19:30, Andrea Mauriandrea.mauri...@gmail.com wrote: Il 02/03/2010 6.45, Alexander Klenin ha scritto: Use Series.ZPosition property. ZPosition is not what I'm looking for. Put a chart on a form then add a TLine serie.

[Lazarus] dbgrid selectedindex

2010-03-04 Thread Andrea Mauri
in the help I found that: Selected index - number of the row selected for viewing or editing but in the SetSelectedIndex method the code is related to the columns, not rows: procedure TCustomDBGrid.SetSelectedIndex(const AValue: Integer); begin Col := FirstGridColumn + AValue; end; where

[Lazarus] last svn error

2010-03-05 Thread Andrea Mauri
in the last svn (Lazarus 0.9.29 r23841 FPC 2.4.0 i386-win32-win32/win64) I got the following error during rebuild: C:\lazarus_svn\components\opengl\glwin32wglcontext.pas(267,3) Error: Wrong number of parameters specified for call to PrepareCreateWindow what can I do? --

Re: [Lazarus] last svn error

2010-03-05 Thread Andrea Mauri
Il 05/03/2010 13.27, Andrea Mauri ha scritto: C:\lazarus_svn\components\opengl\glwin32wglcontext.pas(267,3) Error: Wrong number of parameters specified for call to PrepareCreateWindow I think is related to revision 23840: lcl: change use of CreateParams: - move TForm.PopupParent handling

Re: [Lazarus] last svn error

2010-03-05 Thread Andrea Mauri
Il 05/03/2010 13.54, Mattias Gärtner ha scritto: I don't have windows here at the moment. Can you create a fix? sorry but I don't know what to do. I don't know why the patch that introduce the error was submitted and what those function do. andrea --

Re: [Lazarus] last svn error

2010-03-05 Thread Andrea Mauri
Il 05/03/2010 17.42, Paul Ishenin ha scritto: Please update and retest. ok it works. andrea -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] format problem

2010-03-11 Thread Andrea Mauri
I have problems with format function. If I set: f:= -0.0002; and then I do: Edit1.Text:= FormatFloat('0.000', f); Edit2.Text:= format('%.0f', [f]); Edit3.Text:= format('%.3f', [f]); The results I obtain are: -0.000 -0 -0.000 While they should be: 0.000 0 0.000 I have to report a bug to

Re: [Lazarus] format problem

2010-03-11 Thread Andrea Mauri
Il 11/03/2010 10.00, Michael Van Canneyt ha scritto: Yes, although I think there is still a related bug open in FPC/rtl. Please search first. I found some bugs related to formatfloat but not this specific bug. I submitted it as 0015957 -- ___

Re: [Lazarus] dbl click on a grid

2010-03-11 Thread Andrea Mauri
Il 02/03/2010 10.56, Andrea Mauri ha scritto: I also noticed that the click event is not raised if I click on a fixed row/column while the dblclick is raised also if performed on a fixed row/column. Is it a possibility to introduce a headerdblclick event like the headerclickevent? andrea

Re: [Lazarus] format problem

2010-03-11 Thread Andrea Mauri
Il 11/03/2010 12.32, zeljko ha scritto: no, it's already reported by me http://bugs.freepascal.org/view.php?id=13722 I already submitted, so the 0015957 and 0015958 bugreports should be removed. Andrea -- ___ Lazarus mailing list

Re: [Lazarus] format problem

2010-03-11 Thread Andrea Mauri
Il 11/03/2010 20.15, Andrea Mauri ha scritto: how can I test the fixes to 2.4.0? I have to dowload the sources of fpc from svn (/branches/fixes_2_4)? Is it enough to change the fpc sources directory in lazarus options? maybe these questions are trivial, sorry. thanks, andrea

Re: [Lazarus] format problem

2010-03-12 Thread Andrea Mauri
Il 11/03/2010 20.15, Andrea Mauri ha scritto: how can I test the fixes to 2.4.0? any suggestion on how to check the fixes? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] format problem

2010-03-15 Thread Andrea Mauri
Il 12/03/2010 23.22, Maxim Ganetsky ha scritto: Use compiler from this branch: http://svn.freepascal.org/svn/fpc/branches/fixes_2_4 I supposed it. I have two questions: 1. once downloaded the fixes, I have to compile it and use it? How can I do that? 2. Is the fixes branch stable? Can I use

[Lazarus] helphtml example

2010-03-16 Thread Andrea Mauri
I would like to add help to my application, I checked the wiki and the example in examples\helphtml (htmlhelp.lpi) but when I run it I got an error: Unable to find html browser. Lazarus 0.9.29 r23882 FPC 2.4.0 i386-win32-win32/win64 Hints? Andrea --

Re: [Lazarus] tachart on mousemove

2010-04-27 Thread Andrea Mauri
Il 27/04/2010 15.51, Alexander Klenin ha scritto: Indeed. This is related to the new toolset code. Please try r25005. ok, it works. thanks. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] spinedit on linux

2010-05-05 Thread Andrea Mauri
Il 05/05/2010 16.10, Paul Ishenin ha scritto: Try to compare with any default gtk2 application. If there spinedit behave the same as in lazarus then it is ok - this is system behavior in other case this is a bug which needs to be fixed. I tried, actually I didn't find an application with

Re: [Lazarus] spinedit on linux

2010-05-05 Thread Andrea Mauri
Il 05/05/2010 16.40, Graeme Geldenhuys ha scritto: This does not happen for me. Using r25169 and IDE compiled with GTK2. It works for me like he described it does under Windows. I tested it again (lazarus last svn fpc 2.4.0 on ubuntu 10.04), on TSpinedit I have always IBeam cursor, on win I

[Lazarus] checklistbox itemenabled

2010-05-13 Thread Andrea Mauri
I am trying to use ItemEnabled property of CheckListBox and I found some problems using it. Put a TCheckListBox on a form and on Create put this code: procedure TForm1.FormCreate(Sender: TObject); var i: integer; begin for i:= 0 to 49 do begin CheckListBox1.Items.Append(Format('%d

Re: [Lazarus] checklistbox itemenabled

2010-05-13 Thread Andrea Mauri
Il 13/05/2010 12.21, Mattias Gaertner ha scritto: Fixed in svn revision 25352. checked. thanks. andrea -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] stringgrid copytoclipboard

2010-05-19 Thread Andrea Mauri
Il 18/05/2010 23.24, Jesus Reyes ha scritto: not necesary to submit report, fixed in r 25502 tested. ok. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] striggrid colmoving

2010-05-19 Thread Andrea Mauri
Il 18/05/2010 22.43, Jesus Reyes ha scritto: fixed in r25501 tested. ok. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] glscene error

2012-02-07 Thread Andrea Mauri
With the last svn and fpc 2.6.0 I cannot install glscene packages, I got this error: C:\lazarus_svn\components\glscene\Source\base\vectorgeometry.pas(3789,32) Error: Can't determine which overloaded function to call Andrea Mauri -- ___ Lazarus

Re: [Lazarus] glscene error

2012-02-08 Thread Andrea Mauri
Yes, but glscene has not been changed, it worked before. I just updated lazarus and fpc. Any hints? Otherwise I will check with glscene mailing list or similar. Andrea Il 07/02/2012 21:15, Felipe Monteiro de Carvalho ha scritto: Hello, You should report this in a glscene mailling list, bug

[Lazarus] savedialog issue

2012-07-02 Thread Andrea Mauri
). I don't know why. I would like to know where/what I have to check in order to understand this behaviour. Anyone can help? Any suggestion? I use: Lazarus 0.9.31 r37846M FPC 2.6.0 i386-win32-win32/win64 Best regards, Andrea Mauri -- ___ Lazarus

Re: [Lazarus] savedialog issue

2012-07-03 Thread Andrea Mauri
Il 02/07/2012 15:56, Martin ha scritto: I don't know anything about the issue itself, but have you tried setting a watchpoint (context menu in watches list). (Scope = global / Acess write) Set the watchpoint after TCommonDialog.DoExecute has initialized the value. The watchpoint should stop

Re: [Lazarus] savedialog is not shown

2012-07-06 Thread Andrea Mauri
. Let me know, Andrea Il 03/07/2012 10:28, Andrea Mauri ha scritto: Il 02/07/2012 15:56, Martin ha scritto: I don't know anything about the issue itself, but have you tried setting a watchpoint (context menu in watches list). (Scope = global / Acess write) Set the watchpoint after

Re: [Lazarus] savedialog is not shown

2012-07-09 Thread Andrea Mauri
Il 06/07/2012 13:45, Mattias Gaertner ha scritto: If there is an out of memory exception many things can go wrong. Make sure the out of memory exception only occurs within your function and only because you allocated a big chunk of memory. There must always be enough memory for the error

Re: [Lazarus] savedialog is not shown

2012-07-11 Thread Andrea Mauri
Il 11/07/2012 11:21, Mattias Gaertner ha scritto: Can you test if a savedialog can be shown before calling the function? Maybe it has nothing to do with this function. Yes, the savedialog is always shown. In order to be clearer, the software is this

[Lazarus] timer in a console application

2012-08-10 Thread Andrea Mauri
Dear all, I have a console application that performs calculations iteratively on different objects. I would like to set a time limit for the calculation on a single object. i.e. calculation starts on object 1, in order to start calculation on object 2 the calculations on object 1 must be

Re: [Lazarus] timer in a console application

2012-08-10 Thread Andrea Mauri
Il 10/08/2012 14:59, Sven Barth ha scritto: while not fStopExecution do begin CheckSynchronize; inc(i); end; This results in 100 % CPU (in a single CPU system) so not a very good idea IMHO. (Even the timer thread is crippled by the main thread.) If you can live with some

[Lazarus] comment/uncomment/toggle comment selection

2011-02-02 Thread Andrea Mauri
Dear all, in my last lazarus svn version (Lazarus 0.9.31 r29326 FPC 2.4.2 i386-win32-win32/win64) the comment selection features (menu ide -- modify) does not work anymore. andrea -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] comment/uncomment/toggle comment selection

2011-02-02 Thread Andrea Mauri
Il 02/02/2011 12:15, Alexander Klenin ha scritto: On Wed, Feb 2, 2011 at 20:53, Andrea Mauriandrea.mauri...@gmail.com wrote: Dear all, in my last lazarus svn version (Lazarus 0.9.31 r29326 FPC 2.4.2 i386-win32-win32/win64) the comment selection features (menu ide -- modify) does not work

[Lazarus] exception handling

2011-03-09 Thread Andrea Mauri
Dear all, I developed an application that perform some calculations. This application has a gui version and a console version, it runs on windows and linux. Both apps use the same units for calculation, only the interface units are different. I have some problems in the exception handling.

Re: [Lazarus] exception handling

2011-03-09 Thread Andrea Mauri
Il 09/03/2011 12:49, Hans-Peter Diettrich ha scritto: I'd check this just before the operation, then you won't get an exception at all. You can wrap that in a MyLn function, if you need ln() more often. ok. I know. but my question is more general and it is: The gui app handles this operation

Re: [Lazarus] exception handling

2011-03-09 Thread Andrea Mauri
Il 09/03/2011 17:29, Mattias Gaertner ha scritto: Some LCL widgetsets use this: {$if defined(cpui386) or defined(cpux86_64)} {$IFDEF windows} Set8087CW($133F); {$ELSE} SetExceptionMask(GetExceptionMask + [exZeroDivide,exInvalidOp]); {$ENDIF} {$ifend} thanks!

[Lazarus] Lazarus application invalid on ubuntu 64

2011-03-31 Thread Andrea Mauri
Dear all, I loaded a lazarus project on my new Ubuntu 10.10 intel64 (lazarus 0.9.31 r30096 FPC 2.4.2 x86_64-linux-gtk 2). The application is compiled correctly but it won't run. Lazarus give me this message: Caption: Lazarus application invalid Text: The launching application path/exename does

Re: [Lazarus] Lazarus application invalid on ubuntu 64

2011-04-01 Thread Andrea Mauri
foo at bar in ~ ○ file /bin/bash /bin/bash: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for

[Lazarus] tbuttonededit

2011-08-31 Thread Andrea Mauri
it be included in the lazarus components? Let me know, Andrea Mauri tbuttonededit.rar Description: Binary data -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] object streams

2011-09-20 Thread Andrea Mauri
I am looking if in fpc/lazarus there are functions for object streaming (not components but objects) similar to http://download.oracle.com/javase/tutorial/essential/io/objectstreams.html andrea -- ___ Lazarus mailing list

Re: [Lazarus] object streams

2011-09-21 Thread Andrea Mauri
Il 20/09/2011 19:35, Zaher Dirkey ha scritto: check this functions procedure XMLReadObjectStream(Instance: TObject; Stream: TStream); procedure XMLWriteObjectStream(Instance: TObject; Stream: TStream); I will take a look thanks -- ___ Lazarus

[Lazarus] fileutil unit dependencies

2010-05-27 Thread Andrea Mauri
Why FileUtil unit uses LCL? There is a comment in the unit: // For Smart Linking: Do not use the LCL! I would like to use some functions included in FileUtil (e.g. ExtractFileNameOnly) also in a Console Application without LCL dependencies, is it possible? Andrea --

[Lazarus] T*Edit align and anchors

2010-05-31 Thread Andrea Mauri
Dear all, I have some problems with TDirectoryEdit, TFileNameEdit etc when I try to align them. For example if I set align = alTop the edit is aligned and the button disappears. In the same way it seems that aligning and anchoring does not consider the button but only the edit. Lazarus 0.9.29

Re: [Lazarus] T*Edit align and anchors

2010-06-01 Thread Andrea Mauri
Il 31/05/2010 20.24, Luiz Americo Pereira Camara ha scritto: Try BorderSpacing.Right := 40 I already use a workaround in order to solve the align problem using anchors, I just would like to know if it is a known bug or if actually, as I understood, is it defined in this way by design.

Re: [Lazarus] T*Edit align and anchors

2010-06-03 Thread Andrea Mauri
Il 01/06/2010 21.01, Žilvinas Ledas ha scritto: What workaround did you use? I did not use the align property but anchors, so I can decide by myself where I want to anchor the component. -- ___ Lazarus mailing list

[Lazarus] watch window raise exception

2010-06-11 Thread Andrea Mauri
Lazarus 0.9.29 r26036 FPC 2.4.0 i386-win32-win32/win64 Open Lazarus -- View -- Debug Windows -- Watch -- Division By Zero -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] TLineSeries Bug

2010-06-11 Thread Andrea Mauri
Dear Alexander, I found a bug in TLineSeries that was introduced in: Revision: 25921 Author: ask Date: 17.06.46, sabato 5 giugno 2010 Message: TAChart: Pre-filter points outside of the current extent in TLineSeries.Draw Modified : /trunk/components/tachart/tasources.pas Modified :

Re: [Lazarus] TLineSeries Bug

2010-06-11 Thread Andrea Mauri
Il 11/06/2010 10.31, Andrea Mauri ha scritto: With this code not every point is drawn (see attached image where you can see the marks but not the corresponding points). It seems that the image was not attached.. attachment: scatter.jpg-- ___ Lazarus

[Lazarus] openglcontext gtk2

2010-06-11 Thread Andrea Mauri
I fund an error compiling last lazarus svn (Lazarus 0.9.29 r26037M FPC 2.4.0 i386-linux-gtk 2 (beta)) glgtkglxcontext.pas(28,14) Fatal: Can't find unit GtkDef used by GLGtkGlxContext -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] watch window raise exception

2010-06-11 Thread Andrea Mauri
Il 11/06/2010 10.45, Mattias Gärtner ha scritto: It works here. Can you create a backtrace? I tried but no significative output: C:\lazarus_svngdb startlazarus.exe GNU gdb 6.8 Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later

Re: [Lazarus] watch window raise exception

2010-06-11 Thread Andrea Mauri
Il 11/06/2010 11.55, Mattias Gaertner ha scritto: gdb lazarus.exe here the backtrace C:\lazarus_svngdb lazarus.exe GNU gdb 6.8 Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free

Re: [Lazarus] openglcontext gtk2

2010-06-11 Thread Andrea Mauri
Il 11/06/2010 11.54, Mattias Gaertner ha scritto: Fixed in svn. Tested. Fixed. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] watch window raise exception

2010-06-11 Thread Andrea Mauri
Il 11/06/2010 12.08, Mattias Gaertner ha scritto: Fixed in svn. Please test. tested. fixed. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] opengl and qt

2010-06-11 Thread Andrea Mauri
I would like to ask if openglcontext works with qt too. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] TLineSeries Bug

2010-06-11 Thread Andrea Mauri
Il 11/06/2010 12.42, Alexander Klenin ha scritto: On Fri, Jun 11, 2010 at 19:31, Andrea Mauriandrea.mauri...@gmail.com wrote: Dear Alexander, I found a bug in TLineSeries that was introduced in: Revision: 25921 Also, please update to a recent version -- this revision is in the middle of

Re: [Lazarus] TLineSeries Bug

2010-06-11 Thread Andrea Mauri
Il 11/06/2010 15.13, Alexander Klenin ha scritto: I have managed to reproduce it myself. Should be fixed in r26041. tested. fixed. thanks. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

[Lazarus] sqlite db as resource

2010-07-05 Thread Andrea Mauri
I would like to know if it is possible to access to a sqlite db file included in a lazarus application as resource. Thanks, Andrea -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] sqlite db as resource

2010-07-05 Thread Andrea Mauri
Il 05/07/2010 12.15, José Mejuto ha scritto: Resources are read only. SQLite by default needs a real file to access. You can configure recent SQLite modules to access non real files providing an abstraction layer to access to virtual files which in theory (I had never tested) will allow you to

[Lazarus] anchoring got invisible controls

2010-08-30 Thread Andrea Mauri
Lazarus 0.9.29 r27237 FPC 2.4.0 i386-win32-win32/win64 If I follow the example described in http://wiki.lazarus.freepascal.org/Anchor_Sides#Anchoring_to_invisible_controls it does not work. Instead of this: +---+ +---+ | A | | C | +---+ +---+ I get: +---+ +---+ | A | | C

  1   2   >