Re: [Lazarus] Release Candidate 1 of Lazarus 1.6

2015-12-09 Thread Luca Olivetti
El 09/12/15 a les 17:07, Bart ha escrit: On 12/9/15, Luca Olivetti wrote: Yes, most probably the bug is in fpc, but note that lazarus 1.4.x had its own implementation instead of relying on sysutils. No, it did not. It also called SysUtils.ExpandUncFilename(). Your bugreport says that it

Re: [Lazarus] Release Candidate 1 of Lazarus 1.6

2015-12-09 Thread Luca Olivetti
El 09/12/15 a les 13:53, Bart ha escrit: On 12/9/15, Luca Olivetti wrote: this isn't a lazarus bug but most probably a problem with fpc: ExpandUnCFileNameUTF8 (which in turns calls SystUtils.ExpandUNCFileName) returns '\' when called with That's odd, because this i

Re: [Lazarus] Release Candidate 1 of Lazarus 1.6

2015-12-09 Thread Luca Olivetti
El 09/12/15 a les 13:21, Mattias Gaertner ha escrit: On Wed, 9 Dec 2015 12:33:08 +0100 Luca Olivetti wrote: [...] this isn't a lazarus bug but most probably a problem with fpc: ExpandUnCFileNameUTF8 (which in turns calls SystUtils.ExpandUNCFileName) returns '\' when called wi

Re: [Lazarus] Release Candidate 1 of Lazarus 1.6

2015-12-09 Thread Luca Olivetti
eowall\datos\') I's *not* the '..' that's confusing it, it's the mapped drive. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 -- ___ La

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-11 Thread Luca Olivetti
El 11/11/15 a les 10:28, Graeme Geldenhuys ha escrit: On 2015-11-11 09:16, Luca Olivetti wrote: Try the attached project. LCL inconsistency strikes again. WindowState:=wsMaximized; The above line of code has no affect under FreeBSD with LCL-GTK2. I see a small borderless window with a

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-11 Thread Luca Olivetti
El 11/11/15 a les 10:26, Luca Olivetti ha escrit: El 11/11/15 a les 10:16, Luca Olivetti ha escrit: El 11/11/15 a les 09:28, Luca Olivetti ha escrit: That at least explains the timing differences (but not the unresponsiveness of the full screen application under windows 7) TextRect! Try

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-11 Thread Luca Olivetti
El 11/11/15 a les 10:16, Luca Olivetti ha escrit: El 11/11/15 a les 09:28, Luca Olivetti ha escrit: That at least explains the timing differences (but not the unresponsiveness of the full screen application under windows 7) TextRect! Try the attached project. Under windows XP the TextRect

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-11 Thread Luca Olivetti
El 11/11/15 a les 01:21, Luca Olivetti ha escrit: El 10/11/15 a les 23:37, Graeme Geldenhuys ha escrit: On 2015-11-10 21:09, Luca Olivetti wrote: But in the end I have to render it on the LCL canvas Via a single BitBlt which should be more than fast enough for what you described. Unless LCL

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-10 Thread Luca Olivetti
El 10/11/15 a les 23:37, Graeme Geldenhuys ha escrit: On 2015-11-10 21:09, Luca Olivetti wrote: But in the end I have to render it on the LCL canvas Via a single BitBlt which should be more than fast enough for what you described. Unless LCL is seriously broken. I don't know if it

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-10 Thread Luca Olivetti
the other. Tomorrow I'll see if I can create a simple application that reproduces the problem using it. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 unit scrollinglabel; {$mode objfpc}{$H+} interface uses Cl

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-10 Thread Luca Olivetti
El 10/11/15 a les 18:47, Graeme Geldenhuys ha escrit: On 2015-11-10 16:43, Luca Olivetti wrote: Impressive, but I looked at the source and it uses its own kind of application. Don't let the demos confuse you. The demos were implemented to be cross-platform in their own way, with it

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-10 Thread Luca Olivetti
El 10/11/15 a les 16:55, Graeme Geldenhuys ha escrit: On 2015-11-10 12:28, Luca Olivetti wrote: I guess codebot needs a newer fpc, it doesn't compile with 2.6.4. You can also take a look at AggPas, which can easily accomplish what you ask for - with out 0-1% CPU load (tested previously

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-10 Thread Luca Olivetti
orials for BGRABitmap to see if it's easy enough to add it to my project. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.free

[Lazarus] Smooth scrolling label (marquee)

2015-11-10 Thread Luca Olivetti
croll more than 2 pixels every 50ms the scrolling isn't smooth enough, but the required speed should be 6 or 7 pixels, and that's very unpleasant to the eye. Any suggestion? -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010)

Re: [Lazarus] Extending TRect breaks Lazarus

2015-11-06 Thread Luca Olivetti
now I cannot find it. It is definitely more than 20 years old (and more than 30 ;-): http://www.computinghistory.org.uk/det/11554/TI-990-System/ Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004

Re: [Lazarus] Test This Please

2015-11-06 Thread Luca Olivetti
the graph moving) and it has black corners, as well a a black background in the slider. Everything is fine with compositing enabled, but I usually leave it disabled. The hotkey works, $XDG_CURRENT_DESKTOP is KDE. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34

Re: [Lazarus] TTabcontrol color strangeness

2015-11-05 Thread Luca Olivetti
El 09/10/15 a les 09:23, Luca Olivetti ha escrit: Hello, If I use a TTabControl in windows xp with the classic theme, the color is the same as the solid color of the desktop and there's no property to change it. Shouldn't at least be the color of a normal window? This doesn't

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

2015-11-02 Thread Luca Olivetti
El 03/11/15 a les 00:58, Leonardo M. Ramé ha escrit: What I don't get is what's the purpouse of TBookmark, I thought it was made for solving the problem I had. Yes, but only if you leave the dataset open. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ T

Re: [Lazarus] Increasingly frustrated with DbGrids

2015-11-02 Thread Luca Olivetti
es the old class, but the unit (and the grid) will see the new one. It's a hack, really, which will probably bite me in the rear somewhere in the future, but I have to ship the programme now :-( Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.30

Re: [Lazarus] Increasingly frustrated with DbGrids

2015-11-02 Thread Luca Olivetti
last week I asked here how to remove the border in a TPageControl), and I'll probably follow your advice here, still, I think that if the TDbGrid allows for a custom editor, it should work without this kind of hack. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel

Re: [Lazarus] Increasingly frustrated with DbGrids

2015-11-02 Thread Luca Olivetti
El 02/11/15 a les 11:12, Luca Olivetti ha escrit: Hello, I constantly stumble with the behaviour of the TDBGrid. I understand that it's a complex component, but every time I find an issue an Luiz fixes it, two more pop up (or an older one resurfaces). The latest episode of the saga i

[Lazarus] Increasingly frustrated with DbGrids

2015-11-02 Thread Luca Olivetti
ork for the editors defined in Grids.pas. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.fre

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

2015-11-01 Thread Luca Olivetti
e query is opened, buy you close it between getting the bookmark and setting it. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.free

Re: [Lazarus] Too much space between TPageControl and its tabs

2015-10-29 Thread Luca Olivetti
should be possible as well. It works, but it introduces a dependency on the windows unit. I need it on windows, so it isn't a big concern, but I don't like it 100%. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010)

[Lazarus] Too much space between TPageControl and its tabs

2015-10-29 Thread Luca Olivetti
er. Am I wrong? Is there an alternative component that I could use? For the time being, I use a panel and create the different controls at runtime, but this is possible only in simple cases, not for complex designs (well, of course it's possible but it's something I'd prefer t

Re: [Lazarus] Patch for TTrayIcon on Ubuntu's Unity

2015-10-18 Thread Luca Olivetti
k/blog/xembed_back (from https://lists.debian.org/debian-kde/2015/10/msg00047.html) Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 -- ___ Lazarus mailing list Lazarus@lists.la

Re: [Lazarus] Patch for TTrayIcon on Ubuntu's Unity

2015-10-12 Thread Luca Olivetti
icon (note that its normal value is KDE). Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Patch for TTrayIcon on Ubuntu's Unity

2015-10-12 Thread Luca Olivetti
zarus with the gtk2 widgetset but do work with the qt one. Disclaimer: I don't usually need tryicons, but the various threads on them piqued my curiosity. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax

[Lazarus] TTabcontrol color strangeness

2015-10-09 Thread Luca Olivetti
s a light gray instead of the desktop color, but still isn't the normal color of a window.) Note that if I set a background image, the color of the TTabControl is still the solid color, i.e., it is not transparent. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel.

Re: [Lazarus] Tray icon not working on Ubunut

2015-10-07 Thread Luca Olivetti
El 07/10/15 a les 17:08, Luca Olivetti ha escrit: El 07/10/15 a les 10:30, Michael Van Canneyt ha escrit: It works just fine on Kubuntu. But only with the qt widgetset No. I use the GTK 2 widgetset on Kubuntu. I've never used Qt yet. Really, it doesn't work here with the gtk2

Re: [Lazarus] Tray icon not working on Ubunut

2015-10-07 Thread Luca Olivetti
ith plasma 5.3.2 Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Tray icon not working on Ubunut

2015-10-06 Thread Luca Olivetti
it's been broken for years. It works just fine on Kubuntu. But only with the qt widgetset Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 -- ___ Lazarus maili

Re: [Lazarus] Strange interaction between combox and IniPropStorage

2015-10-06 Thread Luca Olivetti
El 13/08/15 a les 09:24, Luca Olivetti ha escrit: El 12/08/15 a les 16:37, Luca Olivetti ha escrit: Definitely a regression: I just had to modify an old program (where this feature worked) and it doesn't work anymore :-( At least the workaround seems to do the job. It's not a

Re: [Lazarus] Lazarus program files very big, why?

2015-10-03 Thread Luca Olivetti
El 04/10/15 a les 00:06, Bo Berglund ha escrit: Amazingly this little program is 24.5 Mbytes as shown: -rwxr-xr-x 1 root root 24493881 Oct 3 21:35 project1 http://bfy.tw/26s2 Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93

Re: [Lazarus] Strange interaction between combox and IniPropStorage

2015-08-13 Thread Luca Olivetti
El 12/08/15 a les 16:37, Luca Olivetti ha escrit: Definitely a regression: I just had to modify an old program (where this feature worked) and it doesn't work anymore :-( At least the workaround seems to do the job. It's not a regression, it's probably always been there,

Re: [Lazarus] Strange interaction between combox and IniPropStorage

2015-08-12 Thread Luca Olivetti
El 11/08/15 a les 12:22, Luca Olivetti ha escrit: El 11/08/15 a les 12:12, Luca Olivetti ha escrit: I just found a very strange bug: when I try to save the ItemIndex of a combobox through a TIniPropStorage, its value reverts to the value it had when the form was created. Every other value (I

Re: [Lazarus] Strange interaction between combox and IniPropStorage

2015-08-11 Thread Luca Olivetti
El 11/08/15 a les 12:12, Luca Olivetti ha escrit: I just found a very strange bug: when I try to save the ItemIndex of a combobox through a TIniPropStorage, its value reverts to the value it had when the form was created. Every other value (I use TEdit.Text and TSpinEdit.Value) is correctly

[Lazarus] Strange interaction between combox and IniPropStorage

2015-08-11 Thread Luca Olivetti
his before. Note that if you just create a new project and put the combobox and the inipropstorage on the main form, it works fine, maybe it has something to do with the ShowModal I'm using to show the form. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34

Re: [Lazarus] systemd

2015-06-27 Thread Luca Olivetti
#Linux_.28Fedora.29 Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-23 Thread Luca Olivetti
El 23/06/15 a les 20:38, Bo Berglund ha escrit: On Tue, 23 Jun 2015 18:30:46 +0200, Luca Olivetti wrote: El 23/06/15 a les 17:51, Bo Berglund ha escrit: The problem is most likely in the conversion because even the smallest test application throws an exception on the very first call into

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-23 Thread Luca Olivetti
://freepascal.org/docs-html/prog/progse22.html#x174-1770006.3 you can try and define the external as stdcall or if that fail try cdecl (though I'm not sure the default is different than delphi). Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fa

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-19 Thread Luca Olivetti
mat, but I cannot help you here. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.o

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-19 Thread Luca Olivetti
and what can I do? Either you use {$MODE DELPHI} or you prepend the method with @, i.e. FTimer.OnTimer := @OnCheckTimer See: http://wiki.freepascal.org/Code_Conversion_Guide Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883

[Lazarus] How to cleanly terminate "http server application"/"fastcgi application"?

2015-04-13 Thread Luca Olivetti
I couldn't find a built-in way to cleanly terminate them, so I had to install a signal handler to issue an Application.Terminate. Is there a provided way that I missed? BTW, also, they don't daemonize under Linux/run as service under windows. Maybe they aren't supposed to? Bye --

Re: [Lazarus] External SIGSEGV when trying to use data module components

2015-04-11 Thread Luca Olivetti
atamodule hasn't been created yet. Use OnShow instead. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Lazarus Release Candidate 1 of 1.4

2015-02-17 Thread Luca Olivetti
ms I cannot find a way to install the broken package, make useride just uses the good version now. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Lazarus Release Candidate 1 of 1.4

2015-02-17 Thread Luca Olivetti
El 17/02/15 a les 12:00, Luca Olivetti ha escrit: > El 16/02/15 a les 23:38, Mattias Gaertner ha escrit: > >> == How to test == >> >> Download and install the 1.4RC1. >> - On Windows you can install as a 2ndary install, that will not affect your >

Re: [Lazarus] Lazarus Release Candidate 1 of 1.4

2015-02-17 Thread Luca Olivetti
32 ERROR: Broken dependency: camviewpkg 0.0>camviewpkg 0.0 make: *** [useride] Error 3 I'll build a standard ide to see what happens, but the above procedure worked until now. Oh, and I have a one line patch to dbgrids.pas, but Jesus didn't acknowledge it yet: http://bugs.freepascal.or

Re: [Lazarus] Developing on Linux with files on Windows NTFS {Solved]

2015-02-07 Thread Luca Olivetti
ecessary, just set lib/$(TargetCPU)-$(TargetOS) in the "Unit output directory (-FU)", under Project->Project options->Compiler options->Paths (which should be the default). Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel.

Re: [Lazarus] New Get Lazarus Initiative

2015-02-04 Thread Luca Olivetti
El 04/02/15 a les 13:42, Luca Olivetti ha escrit: >> And let me know if it reads: >> >> 3.0.1 > > I'll try. With the updated setup.sh lazarus builds correctly and starts at the end of the build process. Bye -- Luca Olivetti Wetron Automation Technology http://www

Re: [Lazarus] New Get Lazarus Initiative

2015-02-04 Thread Luca Olivetti
-o setup.sh > sh setup.sh > > After setup is complete try: > > OLD_PATH=$PATH > export PATH=/home/luca/Development/FreePascal/fpc/bin/:$PATH > export PPC_CONFIG_PATH=/home/luca/Development/FreePascal/fpc/bin > fpc -iV > PATH=$OLD_PATH > > And let me know

Re: [Lazarus] New Get Lazarus Initiative

2015-02-04 Thread Luca Olivetti
tal fichero strip: 'lazbuild': No hay tal fichero strip: 'startlazarus': No hay tal fichero Free Pascal and Lazarus install complete setup.sh: línea 239: ./lazarus: El fitxer o directori no existeix Bye -- Luca Olivetti Wetron Automation Technology http://www.wet

Re: [Lazarus] Deleting a control in its OnClick event can cause a SIGSEV?

2014-12-31 Thread Luca Olivetti
El 31/12/14 a les 19:26, Bart ha escrit: > On 12/31/14, Luca Olivetti wrote: > >> It turns out that in the OnClick event I was calling a method that freed >> the control that generated the OnClick, so I supposed that was the cause >> of the sigsev. > > Probably you

Re: [Lazarus] Typecast set to byte in mode OBJFPC

2014-12-31 Thread Luca Olivetti
El 31/12/14 a les 17:33, Jürgen Hestermann ha escrit: >> Is this realy compiler mode dependent? >> I can't find any documentation about this. > Sorry, I meant that FlagSETType seems to be 4 bytes now. http://www.freepascal.org/docs-html/prog/progsu59.html#x66-650001.2.59 By

[Lazarus] Deleting a control in its OnClick event can cause a SIGSEV?

2014-12-31 Thread Luca Olivetti
nless the above hypothesis is true. Is it possible that destroying the control was the cause of the SIGSEV? TIA Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazarus maili

Re: [Lazarus] GetWindowSize misleading documentation or bug?

2014-09-27 Thread Luca Olivetti
El 27/09/14 14:32, zeljko ha escrit: > On 09/27/2014 12:26 PM, Luca Olivetti wrote: >> El 27/09/14 12:23, Luca Olivetti ha escrit: >>> El 27/09/14 12:09, Luca Olivetti ha escrit: >>>> >>>> I'm puzzled: with a test program I see no difference in the si

Re: [Lazarus] GetWindowSize misleading documentation or bug?

2014-09-27 Thread Luca Olivetti
El 27/09/14 12:23, Luca Olivetti ha escrit: > El 27/09/14 12:09, Luca Olivetti ha escrit: >> >> I'm puzzled: with a test program I see no difference in the size in both >> cases (right after showing the form and after pressing the button) *and* >> the size is the

Re: [Lazarus] GetWindowSize misleading documentation or bug?

2014-09-27 Thread Luca Olivetti
El 27/09/14 12:09, Luca Olivetti ha escrit: > > I'm puzzled: with a test program I see no difference in the size in both > cases (right after showing the form and after pressing the button) *and* > the size is the right one (in FormShow is always 1,1 btw). > I must be doing

Re: [Lazarus] GetWindowSize misleading documentation or bug?

2014-09-27 Thread Luca Olivetti
El 27/09/14 11:48, Hans-Peter Diettrich ha escrit: > Luca Olivetti schrieb: > >> Strange, on mageia 4, kde, lazarus 1.2.4 it doesn't work. What I'm >> trying to do is to tile windows one next to the other. Using >> GetWindowRect under windows I can do i

Re: [Lazarus] GetWindowSize misleading documentation or bug?

2014-09-27 Thread Luca Olivetti
El 27/09/14 00:05, Giuliano Colla ha escrit: > > Il 26/09/2014 22:47, Luca Olivetti ha scritto: >> El 26/09/14 22:45, Luca Olivetti ha escrit: >>> Strange, on mageia 4, kde, lazarus 1.2.4 it doesn't work. What I'm >>> trying to do is to tile windows one ne

Re: [Lazarus] GetWindowSize misleading documentation or bug?

2014-09-26 Thread Luca Olivetti
El 26/09/14 22:45, Luca Olivetti ha escrit: > El 26/09/14 20:47, Giuliano Colla ha escrit: > >> I was too hasty in my reply. After some tests here are the results: > > Yes, I was puzzled when you said it didn't work in an xp vm, since > that's exa

Re: [Lazarus] GetWindowSize misleading documentation or bug?

2014-09-26 Thread Luca Olivetti
overlaps D and B overlaps E, the amount of overlap seems to be equal to the height of the title bar). > > Apparently the documentation isn't accurate, and there's a mix-up of the > two functions So in theory GetWindowRect is the "right" function while GetWindowSize

[Lazarus] GetWindowSize misleading documentation or bug?

2014-09-26 Thread Luca Olivetti
* the implementation (at least win32) actually removes the size of the borders and the caption. Is the documentation wrong or is it a bug? Btw: GetWindowRect returns the whole size in windows but not with gtk2. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34

Re: [Lazarus] Why lazchmhelp.pas sets InheritHandle conditionally on fpc version?

2014-09-02 Thread Luca Olivetti
El 02/09/14 11:19, Mattias Gaertner ha escrit: > On Tue, 02 Sep 2014 09:54:50 +0200 > Luca Olivetti wrote: > >> I saw in the 1.2.4 source this: >> >> {$if FPC_FULLVERSION<20604} >> Proc.InheritHandles := false; >> {$endif} >> >> >&

[Lazarus] Why lazchmhelp.pas sets InheritHandle conditionally on fpc version?

2014-09-02 Thread Luca Olivetti
il); try + BrowserProcess.InheritHandles:=false; BrowserProcess.CommandLine:=CommandLine; BrowserProcess.Execute; finally Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- __

Re: [Lazarus] Grey windows in Lazarus IDE with GTK2 in Mint 17 + KDE

2014-08-18 Thread Luca Olivetti
still remain grey although they work OK. > Only minimizing and then restoring the IDE helps bring the normal color back. Yes, same here with mageia 4 (x86_64), kde desktop, lazarus 1.2.4. gtk is 2.24.22. It didn't happen with mageia 3 (gtk 2.24.17). Bye -- Luca Olivetti Wetron

Re: [Lazarus] Memory leak hunt request

2014-05-04 Thread Luca Olivetti
his? http://bugs.freepascal.org/view.php?id=12528 Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.or

Re: [Lazarus] Now function - returning UTC?

2014-04-19 Thread Luca Olivetti
El 19/04/14 20:55, Luca Olivetti ha escrit: > El 19/04/14 17:37, David Taylor ha escrit: > >> Can anyone help with this apparently simple problem? > > lazutf8sysutils has a NowUTC function already defined BTW, the name of the unit isn't really meaningful (NowUTC and Get

Re: [Lazarus] Now function - returning UTC?

2014-04-19 Thread Luca Olivetti
El 19/04/14 17:37, David Taylor ha escrit: > Can anyone help with this apparently simple problem? lazutf8sysutils has a NowUTC function already defined Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883

Re: [Lazarus] about raised exception class 'External: SIGSEGV'

2014-04-14 Thread Luca Olivetti
sually means that you cannot rely on the contents of memory, so recovery is probably impossible. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazarus mailing list Lazarus@lists.laz

Re: [Lazarus] about raised exception class 'External: SIGSEGV'

2014-04-14 Thread Luca Olivetti
rently it doesn't :-( Note that in most cases when hitting such an error the only sensible option would be to terminate the program, but I'd like to intercept the exception and log it to a file before terminating the program, so I can do a post-mortem and see where the SIGSEV occurred.

Re: [Lazarus] Always On Top (Linux) ZVDatetimeCtrls doesn't show up(Bug?)

2014-04-14 Thread Luca Olivetti
El 14/04/14 09:32, Luca Olivetti ha escrit: > El 14/04/14 08:37, Juha Manninen ha escrit: >> ZVDatetimeCtrls is now included in Lazarus trunk sources and the >> component names are identical with Delphi component names. >> The report and possible example code should be

Re: [Lazarus] Always On Top (Linux) ZVDatetimeCtrls doesn't show up(Bug?)

2014-04-14 Thread Luca Olivetti
rus 1.2.0/gtk). Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Better implementation of GetTickcount using clock_gettime

2014-04-02 Thread Luca Olivetti
El 02/04/14 14:29, Marco van de Voort ha escrit: > On Wed, Apr 02, 2014 at 01:19:39PM +0200, Luca Olivetti wrote: >>> CLOCK_MONOTONIC_RAW would better emulate the WinAPI >>> function GetTickCount. >> >> Well, yes, isn't that the function we're tryin

Re: [Lazarus] Better implementation of GetTickcount using clock_gettime

2014-04-02 Thread Luca Olivetti
ad (I think on stackoverflow but I cannot find the page right now), that one doesn't take into account the time during a suspension while the other does (I don't remember which is which) and that's an important difference depending on the application. Bye -- Luca Olivetti Wetr

Re: [Lazarus] Better implementation of GetTickcount using clock_gettime

2014-04-02 Thread Luca Olivetti
probably be more than enough). Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Better implementation of GetTickcount using clock_gettime

2014-04-02 Thread Luca Olivetti
El 02/04/14 10:01, Mattias Gaertner ha escrit: > On Wed, 02 Apr 2014 09:47:45 +0200 > Luca Olivetti wrote: > >> [...] >> Btw, in theory CLOCK_MONOTONIC_RAW should be even better, though it's >> only available from linux 2.6.28 > > CLOCK_MONOTONIC_RAW

Re: [Lazarus] Better implementation of GetTickcount using clock_gettime

2014-04-02 Thread Luca Olivetti
El 02/04/14 09:47, Luca Olivetti ha escrit: > El 02/04/14 09:08, Michael Van Canneyt ha escrit: >> >> >> On Tue, 1 Apr 2014, Mattias Gaertner wrote: >> >>> On Tue, 01 Apr 2014 12:20:53 +0200 >>> Luca Olivetti wrote: >>> >>>> [...]

Re: [Lazarus] Better implementation of GetTickcount using clock_gettime

2014-04-02 Thread Luca Olivetti
El 02/04/14 09:08, Michael Van Canneyt ha escrit: > > > On Tue, 1 Apr 2014, Mattias Gaertner wrote: > >> On Tue, 01 Apr 2014 12:20:53 +0200 >> Luca Olivetti wrote: >> >>> [...] >>> function GetTickCount64: QWord; >>> var >>>

Re: [Lazarus] Better implementation of GetTickcount using clock_gettime

2014-04-01 Thread Luca Olivetti
El 01/04/14 20:03, Mattias Gaertner ha escrit: > On Tue, 01 Apr 2014 12:20:53 +0200 > Luca Olivetti wrote: > >> [...] >> function GetTickCount64: QWord; >> var >> tp: timespec; >> begin >> clock_gettime(CLOCK_MONOTONIC, @tp); >> Result :=

[Lazarus] Better implementation of GetTickcount using clock_gettime

2014-04-01 Thread Luca Olivetti
tml Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Confused by help

2014-03-23 Thread Luca Olivetti
El 23/03/14 19:06, Graeme Geldenhuys ha escrit: > On 2014-03-22 19:35, Luca Olivetti wrote: >> You just have to create a class derived from THelmManager (in unit >> HelpIntfs). > > > Thanks for that info. > > > On a side note: > I see the Lazarus team

Re: [Lazarus] Confused by help

2014-03-22 Thread Luca Olivetti
ve to create a class derived from THelmManager (in unit HelpIntfs). I use it to invoke a pdf reader (sumatrapdf, since it accepts a keyword as a command line parameter). Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax

Re: [Lazarus] How to access C and C++ libraries?

2014-03-06 Thread Luca Olivetti
/Free Pascal (on Linux and maybe Windows) or good > guides? Take a look here ftp://ftp.freepascal.org/fpc/docs-pdf/CinFreePascal.pdf and here http://wiki.lazarus.freepascal.org/Creating_bindings_for_C_libraries Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935

Re: [Lazarus] Lazarus Second Release Candidate, 1.2RC2

2014-02-14 Thread Luca Olivetti
El 14/02/14 00:21, Mattias Gaertner ha escrit: > On Thu, 13 Feb 2014 20:17:31 +0100 > Luca Olivetti wrote: > >> [...] >> TBuildManager.DoCheckIfProjectNeedsCompilation icon has changed Project >> "/home/luca/Datos/1354_vision_dot/programas_pc/test_plc/project1.ico

Re: [Lazarus] Lazarus Second Release Candidate, 1.2RC2

2014-02-13 Thread Luca Olivetti
co" don't know why (I didn't change it but the date changes every time I try to run the project). Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___

Re: [Lazarus] Lazarus Second Release Candidate, 1.2RC2

2014-02-13 Thread Luca Olivetti
_64-linux/project1.or Linking project1 /usr/bin/ld: aviso: link.res contiene secciones de salida. ¿Olvidó -T? 20 lines compiled, 1.4 sec 5 hint(s) issued Project "project1" successfully built Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935

Re: [Lazarus] CopyFile in Windows

2013-11-11 Thread Luca Olivetti
dows CopyFile function (which returns an error code), FileUtil.CopyFile will throw an exception in case of error. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazaru

Re: [Lazarus] Lazarus Release Candidate 1 of 1.2

2013-11-07 Thread Luca Olivetti
xed it. It is probably a > copy-paste bug, because the value is set to true in the constructor. Thank you. Will it be backported to 2.6.4? Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- _

Re: [Lazarus] Lazarus Release Candidate 1 of 1.2

2013-11-07 Thread Luca Olivetti
s.freepascal.org/view.php?id=22271 I don't think the spawned browser needs to inherit the handles of the calling process. In fact InheritHandles true caused me serious problems in the past. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 9358830

Re: [Lazarus] WriteLn back to the GUI

2013-10-23 Thread Luca Olivetti
u already did that and it works, right? So what's the problem? > > Plus, I keep getting segfaults when I close the application --something > is calling InOutFunc when the app closes and still tries to write to a > destroyed TMemo. add a call to CloseFile(Output) to the form OnDe

Re: [Lazarus] Lazarus 1.1.99 Pre Release

2013-09-23 Thread Luca Olivetti
Al 18/09/13 09:20, En/na Mattias Gaertner ha escrit: > We would like to invite people to test the Lazarus 1.1.99 pre-release. http://bugs.freepascal.org/view.php?id=24412 I provided a patch for this bug last May, just tested and the bug is still present in 1.1.99Pre Bye -- Luca Olive

Re: [Lazarus] Lazarus, Jedi etc.

2013-07-15 Thread Luca Olivetti
Al 15/07/13 15:12, En/na Mark Morgan Lloyd ha escrit: > There was also a requirement to interface to PLCs etc. (using, I'm told, > the nodave library) For the record, libnodave works wonderfully with fpc. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +3

Re: [Lazarus] Regressions in GTK2 interface ?

2013-06-12 Thread Luca Olivetti
nly there with oxygen-gtk. The only problem is that the Raleigh theme is hideous :-/ especially in a kde desktop. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazarus mailing list Lazarus@l

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Luca Olivetti
Al 13/05/13 14:04, En/na Paul Ishenin ha escrit: > 13.05.13, 17:52, Luca Olivetti пишет: > >> Yes, I remembered something similar, that's why I added it. However, >> even with the default setting (sbgAlways) the menu glyphs aren't shown >> (glyphs in button

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Luca Olivetti
;> Anyone else saw these lines in stderr : >> >> (lazarus:10785): Gdk-WARNING **: Attempt to draw a drawable with >> depth 24 to a drawable with depth 32 >> >> They show in the same console you started Lazarus from. > > I can confirm that I also get this message Me to

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Luca Olivetti
Al 13/05/13 11:37, En/na Juha Manninen ha escrit: > I guess this happens only with KDE 4.10.x. I updated my Mint 14 for > KDE 4.10 and the problem may have started then. It is not dependent on > Lazarus revision. > Can others confirm to have KDE 4.10? kde 4.8.5 in mageia 2.

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Luca Olivetti
Al 13/05/13 11:34, En/na Paul Ishenin ha escrit: > 13.05.2013 17:04, Luca Olivetti пишет: > >> I added a TApplicationProperties to the form, set ShowMenuGlyphs to >> sbgSystem, now GetOption is called and the result is 1, however no >> glyphs are shown. > > Maybe

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Luca Olivetti
Al 13/05/13 10:51, En/na Luca Olivetti ha escrit: > Al 13/05/13 10:35, En/na Mattias Gaertner ha escrit: > >> >> For those who think that their gtk settings is treated wrong by the >> LCL and want to debug it: >> >> The code is in >> lcl/int

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Luca Olivetti
procedure MenuImagesChange I created an application with a menu, put a breakpoint on those functions and they are not called. Just to be sure breakpoints are working, I also put one in InitThemes and it stops there as it should. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.

  1   2   3   >