Re: [Lazarus] Example of TObjectList sorting

2016-05-23 Thread Richard Mace
On 22 May 2016 at 11:22, Ondrej Pokorny wrote: > You are using "procedure of object" where you need "procedure". > ​Thanks Ondrej, that sorted it :) ​ ​Thanks for everyone's help​ Richard -- ___ Lazarus mailing list

Re: [Lazarus] Example of TObjectList sorting

2016-05-22 Thread Richard Mace
Thanks Denis, I am now getting: inboundroutedestlist.pas(49,35) Error: Incompatible type for arg no. 1: Got "", expected "" Any ideas? Richard On 22 May 2016 at 07:30, Denis Kozlov <dez...@gmail.com> wrote: > > On 21 May 2016 at 13:49, Richard Mace <richard

Re: [Lazarus] Example of TObjectList sorting

2016-05-21 Thread Richard Mace
Hi Denis, Thanks for your reply. On 9 May 2016 at 13:24, Denis Kozlov <dez...@gmail.com> wrote: > On 9 May 2016 at 12:48, Richard Mace <richard.m...@gmail.com> wrote: > >> I have a TObjectList that contains many objects that have a property >> called "Positio

[Lazarus] Example of TObjectList sorting

2016-05-09 Thread Richard Mace
Hi All, I have a TObjectList that contains many objects that have a property called "Position" which is an integer. Could somebody show me an example of the code that I will need to create that will sort all of my Objects within the TObjectList so that they are in position order e.g. 1,2,3,4,5

Re: [Lazarus] Strange error with TValueListEditor

2016-03-31 Thread Richard Mace
On 31 March 2016 at 15:03, Bart wrote: > I see no real difference in the lfm structure (apart from the fact > that the problematic one has OnStringsChange = > vle11TrunkPropertiesStringsChange, which sould not raise the error you > mentioned) > > Does the form contain any

Re: [Lazarus] Strange error with TValueListEditor

2016-03-31 Thread Richard Mace
On 31 March 2016 at 14:39, Bart <bartjun...@gmail.com> wrote: > On 3/31/16, Richard Mace <richard.m...@gmail.com> wrote: > > > ​I've tested it in 1.6, in Ubuntu 14.04 and it comes up with the same > > error. > > Strange indeed. > Which fpc version?

Re: [Lazarus] Strange error with TValueListEditor

2016-03-31 Thread Richard Mace
On 31 March 2016 at 13:41, Bart <bartjun...@gmail.com> wrote: > On 3/31/16, Richard Mace <richard.m...@gmail.com> wrote: > > > Error: Identifier Strings is not published in class "TValueListStrings" > and > > it's highlighted a row that contain

[Lazarus] Strange error with TValueListEditor

2016-03-31 Thread Richard Mace
Hi all, I am getting the following error within Lazarus 1.4.4 On Windows 10 when loading my project: Fix LFM file: Error: Identifier Strings is not published in class "TValueListStrings" and it's highlighted a row that contains: Strings.Strings = ('') I have a button that says "Remove all

Re: [Lazarus] Stopping a service from within a service

2016-02-05 Thread Richard Mace
That works great thanks :) On 4 Feb 2016 22:53, "Jy V" <jyv...@gmail.com> wrote: > On Thu, Feb 4, 2016 at 8:57 PM, Richard Mace <richard.m...@gmail.com> > wrote: > >> On 4 February 2016 at 17:39, Jy V <jyv...@gmail.com> wrote: >> >>&g

[Lazarus] Stopping a service from within a service

2016-02-04 Thread Richard Mace
Hi, What's the best way of shutting down a service that is a service, having the same effect as the user clicking stop. Basically, I want my service to monitor a condition, which if met, it will stop itself. Windows Lazarus 1.4.4 Thanks Richard --

Re: [Lazarus] Stopping a service from within a service

2016-02-04 Thread Richard Mace
But what code would you out in the service to terminate itself? Effectively doing the same as calling close in a GUI app? Richard On 4 Feb 2016 19:11, <wkitt...@windstream.net> wrote: > On 02/04/2016 11:41 AM, Richard Mace wrote: > >> Hi, >> >> What's the best

Re: [Lazarus] Stopping a service from within a service

2016-02-04 Thread Richard Mace
On 4 February 2016 at 17:39, Jy V <jyv...@gmail.com> wrote: > > > On Thu, Feb 4, 2016 at 5:41 PM, Richard Mace <richard.m...@gmail.com> > wrote: > >> What's the best way of shutting down a service that is a service, having >> the same effect as the user

[Lazarus] Detecting when decompiler is running

2015-12-04 Thread Richard Mace
Hi All, I was wondering if there was a way where an application, written in Lazarus, could detect when a compiler is running, perhaps by it's mutex? My idea was, in my application, I could periodically check to see if a decompiler was running and then my app could perform an operation, such as

Re: [Lazarus] Detecting when decompiler is running

2015-12-04 Thread Richard Mace
Because this particular application of mine, is not open source. Richard On 4 Dec 2015 09:29, "Michael Schnell" <mschn...@lumino.de> wrote: > On 12/04/2015 09:29 AM, Richard Mace wrote: > > > My idea was, in my application, I could periodically check to see i

Re: [Lazarus] Detecting when decompiler is running

2015-12-04 Thread Richard Mace
On 4 Dec 2015 09:48, "Sven Barth" wrote: > Do you want to protect your whole application or only a specific part? (e.g. a specific algorithm you don't want to disclose or the license validation code) > > Regards, > Sven > Hi Sven, I guess just the license checking

Re: [Lazarus] Are you on Windows 10? Are you experiencing slow installs? Here's the deal...

2015-12-04 Thread Richard Mace
> > > My solution to this mess is simple, albeit not too forward thinking: Don't > use Windows 10 > ​The trouble is, that's not an option as if your coding for Windows, that will be the majority platform at some point. Richard​ -- ___ Lazarus mailing

Re: [Lazarus] Detecting when decompiler is running

2015-12-04 Thread Richard Mace
On 4 December 2015 at 11:01, Gabriele Cappelletto < cappellettogabri...@yahoo.it> wrote: > Even my project is not open source and if I see him I would be willing to > make a small donation to the project FreePascal / lazarus > > Gabriele > > ​I intend to make a contribution to FreePascal /

Re: [Lazarus] Google Docs for help documentation

2015-10-12 Thread Richard Mace
Sorry, no I was talking about a help file for my application itself. Richard On 11 October 2015 at 21:05, DougC <d...@moosemail.net> wrote: > On Sun, 11 Oct 2015 15:28:18 -0400 *Richard Mace > <richard.m...@gmail.com <richard.m...@gmail.com>>* wrote > >

[Lazarus] Google Docs for help documentation

2015-10-11 Thread Richard Mace
Hi All, I was wondering what people thought about using a Google Doc as a help file? It looks like you can have a contents, use anchors and obviously have pictures. Any thoughts? Richard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Sending secure smtp email via Synapse

2015-09-23 Thread Richard Mace
> > > I also include them with every XanaNews (news client written in Delphi) > release I make. But I get them from the [http://indy.fulgan.com/SSL/] > link, so that is your best bet. > > https://github.com/graemeg/xananews > > > Regards, > - Graeme - > ​Thanks Graeme, There seems to be lots

[Lazarus] Sending secure smtp email via Synapse

2015-09-23 Thread Richard Mace
Hi All, I am trying to send secure SMTP email by using Synapse and Lazarus 1.4.2 under Windows 7 and am not getting very far. I have followed the example on this page: http://wiki.freepascal.org/Synapse and am wondering whether I am missing some DLL's or something, as I can't get it to work.

Re: [Lazarus] Specifying Y axis

2015-08-16 Thread Richard Mace
On 15 August 2015 at 10:38, Werner Pamler werner.pam...@freenet.de wrote: Chart1.Extent.YMax := 1; Chart1.Extent.YMin := 0; Chart1.Extent.UseYMax := true; Chart1.Extent.UseYMin := true; Call this before or after adding data to the series, or set it in the object inspector. ​Thanks

[Lazarus] Specifying Y axis

2015-08-14 Thread Richard Mace
Hi, I have a line graph that only needs to display 0's and 1's however, when the first 0 is plotted, the Y axis is set-up as the lowest mark being -1, then goes up through 0 to then be +1. How can I set the graph up to say that the lowest mark would be 0 and the highest would be 1? Many thanks

Re: [Lazarus] Sending and receiving record or object data between applications running on different machines.

2015-07-27 Thread Richard Mace
Hi Travis, Yes, I'm just not sure of the best way to do it with Lazarus. Richard On 26 Jul 2015 17:16, Travis Ayres tray...@gmail.com wrote: If there is a network they share, TCP/IP would work. A client/server architecture. On Jul 26, 2015 2:27 AM, Richard Mace richard.m...@gmail.com wrote

[Lazarus] Sending and receiving record or object data between applications running on different machines.

2015-07-26 Thread Richard Mace
Hi, Can anybody point me at an example of how 2 application's can transfer data between one another across 2 different machines. Thanks Richard PS Lazarus 1.4.2 FPC 2.6.4 windows -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Tracking software useage

2015-07-24 Thread Richard Mace
Thanks for everyone's reply. Really valuable. Richard On 23 Jul 2015 18:28, Graeme Geldenhuys mailingli...@geldenhuys.co.uk wrote: On 2015-07-23 17:40, waldo kitty wrote: if you really desire this information, make it configurable so that those who don't care can enable it if they like...

[Lazarus] Tracking software useage

2015-07-22 Thread Richard Mace
Hi all, I am really interested in tracking how many people are using my software and was wondering what people that would be a good and ethical way of doing it. Any thoughts? Richard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Capturing the output from a command using TPorcess

2015-07-21 Thread Richard Mace
On 20 Jul 2015 22:23, Frederic Da Vitoria davito...@gmail.com wrote: 2015-07-20 21:41 GMT+02:00 Richard Mace How can I code TProcess, so that it shows me the output from the ipconfig /all command instead? Hello, This is not exactly what you asked for, but you could simply redirect

Re: [Lazarus] Capturing the output from a command using TPorcess

2015-07-21 Thread Richard Mace
On 20 Jul 2015 23:30, Bart How can I code TProcess, so that it shows me the output from the ipconfig /all command instead? http://wiki.lazarus.freepascal.org/Executing_External_Programs#Reading_large_output Thanks Bart, but I have already read that page and my code is based on that. --

Re: [Lazarus] Capturing the output from a command using TPorcess

2015-07-21 Thread Richard Mace
On 21 July 2015 at 10:15, shoKwave shokw...@gmx.net wrote: Hi, instead of using psexec you could try getmac /S pcname. Hope this helps. Ingo ​Well, I never knew that command existed. Thanks very much, that was exactly what I was looking for. Richard​ --

[Lazarus] Capturing the output from a command using TPorcess

2015-07-20 Thread Richard Mace
Hi All, I hope this question is going to make sense. I am trying to obtain the MAC Address of a remote PC, using psexec \\pcname and running the command ipconfig /all. If I run the psexec command from my machine via a command prompt, ipconfig /all is successfully run on the remote machine, and I

[Lazarus] Pop menu and disabled images

2015-07-11 Thread Richard Mace
Hi All, I have polished my application a lot by adding a disabled images list to my toolbar, so that the images are displayed properly when the action is disabled. However, when I try to do the same thing for a pop up menu, I notice that there isn't a DisabledImages property like there is with a

[Lazarus] Help for your applications

2015-07-03 Thread Richard Mace
Hi, When writing help files and documentation for your apps, what are peoples preferences? Richard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] Disabled images

2015-07-02 Thread Richard Mace
Hi All, I have a toolbar with buttons on it, that are linked to actions. I also note, that there is a property called DisabledImages. I'm presuming this is to do with images that will be displayed on the toolbar, instead of the normal images, when the action is disabled? If this is the case, how

Re: [Lazarus] Disabled images

2015-07-02 Thread Richard Mace
active if the mouse is moved over a toolbutton. BUT: Since there is only one ImageIndex all Imagelists (Images, DisabledImages, HotImages) must be in sync, i.e. same count and same order of images. This is some kind of restriction for practical use. Am 02.07.2015 um 14:00 schrieb Richard Mace

[Lazarus] Flashing task bat icon orange on Windows 7

2015-06-12 Thread Richard Mace
​Hi, I am trying to work out how to flash the taskbar icon in Windows 7, like Skype does, pragmatically. I have googled, and the closest I found was FlashWindowEx, but that doesn't actually flash the icon, just the form window. Any ideas? Thanks Richard​ --

[Lazarus] change the icon image of my running application

2015-06-10 Thread Richard Mace
Hi, Does anybody know how I can change the image of my running application, like Skype does when a new notification has happened? Effectively, I am wanting to update the running taskbar image by overlaying a numerical number to show the number of notifications in my app Hope that makes sense

Re: [Lazarus] TAChart

2015-06-06 Thread Richard Mace
Thanks, that worked a treat. Richard On 5 June 2015 at 14:24, Salvatore Coppola coppolastu...@gmail.com wrote: Maybe TChart.ZoomFull can help you 2015-06-04 21:35 GMT+02:00 Richard Mace richard.m...@gmail.com: Hi, Another quick question. How can you, via code, zoom out of a chart

[Lazarus] TAChart

2015-06-04 Thread Richard Mace
Hi, Another quick question. How can you, via code, zoom out of a chart, effectively back to what it was by default? If that makes sense? Thanks Richard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] TAChart

2015-06-03 Thread Richard Mace
On 3 June 2015 at 17:49, Werner Pamler werner.pam...@freenet.de wrote: I suppose you use a TLineSeries, but the same principle should work for TBSplineSeries and TCubicSplineSeries ​​ Chart1LineSeries1.Pointer.Style := psCircle; // round points Chart1LineSeries1.Pointer.Pen.Style :=

[Lazarus] TAChart

2015-06-03 Thread Richard Mace
Hi. When drawing points on a line graph, is it possible, via code, to make the points round and without a black boarder? Could someone give me any code examples please? Thanks Richard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

[Lazarus] Detecting X minutes ago.

2015-06-01 Thread Richard Mace
Hi All, What's the best way of detecting what Now - 5 minutes is? Effectively, I want to do the following: 5MinsAgo: TDateTime; 5MinsAgo := Now -5 minutes? Thanks in advance Richard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Getting common documents folders

2015-05-28 Thread Richard Mace
Richard Mace richard.m...@gmail.com: Hi All, I need to use/get a common windows folder (in Win XP,Vista,7,8 and 8.1) that all users will have read/write access to by default. I think it is CSIDL_COMMON_DOCUMENTS Any ideas how I can code this in Lazarus? You can use the shfolder unit

[Lazarus] Getting common documents folders

2015-05-27 Thread Richard Mace
Hi All, I need to use/get a common windows folder (in Win XP,Vista,7,8 and 8.1) that all users will have read/write access to by default. I think it is CSIDL_COMMON_DOCUMENTS Any ideas how I can code this in Lazarus? Many thanks Richard -- ___ Lazarus

[Lazarus] LHelp

2015-05-25 Thread Richard Mace
Hi All, Does LHelp support images? That is, can you include screen shots within the .chm file for LHelp to display? Thanks Richard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] CHM Maker not working

2015-05-15 Thread Richard Mace
Hi, I was just suggesting that the demo may need to be adjusted for the distribution of Lazarus, as all I did was load it and then run it? Richard On 15 May 2015 08:24, leledumbo leledumbo_c...@yahoo.co.id wrote: Any ideas? Show screenshot of that See on the bottom of the dialog. You're

[Lazarus] CHM Maker not working

2015-05-14 Thread Richard Mace
Hi, I am trying to run the CHM Maker help file application, but when running the chmmaker.lpi in Windows 7 Lazarus 1.4 I get: [image: Inline images 1] Any ideas? Richard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

[Lazarus] Creating TProcess from within a TThread

2015-04-28 Thread Richard Mace
Hi, I am currently working on a project that will need to use multiple threads which will each need to create their own TProcess. Is this possible as when I attempt it at the moment, tprocess requires a tcomponent when created? Thanks Richard -- ___

Re: [Lazarus] Creating TProcess from within a TThread

2015-04-28 Thread Richard Mace
Thanks Mattias, I should have guessed that Richard On 28 Apr 2015 13:14, Mattias Gaertner nc-gaert...@netcologne.de wrote: On Tue, 28 Apr 2015 13:10:33 +0100 Richard Mace richard.m...@gmail.com wrote: Hi, I am currently working on a project that will need to use multiple threads which

Re: [Lazarus] ShowMessage not Modal

2015-04-27 Thread Richard Mace
Ok, it's definitely a bug because if I put a show message in the form activate event, then all other show messages work. If I remove it again, they stop working. Very strange Richard On 26 Apr 2015 06:57, Richard Mace richard.m...@gmail.com wrote: Sorry, I should have also added... Lazarus

[Lazarus] ShowMessage not Modal

2015-04-25 Thread Richard Mace
Hi All, I have a strange problem. If I use ShowModal (or MessageDlg) in my application, the code is being executed, but it is not Modal. e.g. If I coded ShowMessage('Hello'); Close; Exit; The message would not show (or just flicker) and the application would close. What's puzzling is that if

Re: [Lazarus] ShowMessage not Modal

2015-04-25 Thread Richard Mace
Sorry, I should have also added... Lazarus 1.4 Windows 7 fpc 2.6.4 Richard On 26 April 2015 at 06:56, Richard Mace richard.m...@gmail.com wrote: Hi All, I have a strange problem. If I use ShowModal (or MessageDlg) in my application, the code is being executed, but it is not Modal. e.g

[Lazarus] Detecting if a remote web server is running

2014-10-30 Thread Richard Mace
Hi All, What's the most reliable way of detecting whether a remote website is responding? Thanks Richard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Detecting if a remote web server is running

2014-10-30 Thread Richard Mace
, Richard Mace richard.m...@gmail.com wrote: Hi All, What's the most reliable way of detecting whether a remote website is responding? maybe ping? ping might tell you if the IP address is active but that's all... it won't tell you if the server is running or servicing requests... you have

Re: [Lazarus] Getting the last modified date of a directory

2014-10-28 Thread Richard Mace
On 27 October 2014 18:57, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: Rik van Kekem wrote: Maybe it's just me but what's the use of Date modified for a folder? It *does not* (like TS expects) reflect the date of the last file *changed* in the folder. Only when files are removed

Re: [Lazarus] Getting the last modified date of a directory

2014-10-26 Thread Richard Mace
I want to know the last time any file was created or modified within a given folder which I believe is represented in windows via the last modified date next to the folder? Richard On 26 Oct 2014 09:11, Jürgen Hestermann juergen.hesterm...@gmx.de wrote: Am 2014-10-25 um 19:19 schrieb Richard

[Lazarus] Getting the last modified date of a directory

2014-10-25 Thread Richard Mace
Hi All, I can see that we have a FileAge function and also a FileGetDate however, I was wondering what the best way of getting the last modified date of a folder? Effectively, the last time that a file was created/changed within a folder? Thanks in advance Richard --

Re: [Lazarus] New app written in Lazarus

2014-10-07 Thread Richard Mace
​I have come cross one bug, but I haven't managed to find someone who is able to fix it yet. I think I might have to add a bounty to it. Do you have a bugtracker number for that bug? Would be helpful if people on this list want to take a look... ​I do, it's 0025397

Re: [Lazarus] New app written in Lazarus

2014-10-06 Thread Richard Mace
On 4 October 2014 10:33, Mattias Gaertner nc-gaert...@netcologne.de wrote: On Sat, 4 Oct 2014 09:36:58 +0100 Richard Mace richard.m...@gmail.com wrote: Hi all, Is this list an appropriate place to announce a new NON open source application written in Lazarus? If the announcement

[Lazarus] New app written in Lazarus

2014-10-04 Thread Richard Mace
Hi all, Is this list an appropriate place to announce a new NON open source application written in Lazarus? Or should it just be put on the wiki? Richard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Using a DateTimeIntervalChartSource in TAChart

2014-09-24 Thread Richard Mace
On 23 September 2014 23:55, Werner Pamler werner.pam...@freenet.de wrote: Where can I find the Intervals.Min and MaxLength properties? MinLength and MaxLength are sub-properties of the Params of the DateTimeIntervalChartSource. Sorry, I confused it with the property Intervals of the Axis...

Re: [Lazarus] Using a DateTimeIntervalChartSource in TAChart

2014-09-23 Thread Richard Mace
* You may want to play with its properties a bit to optimize its output. For example increase Intervals.MinLength and/or MaxLength to avoid overlapping of labels. * To be honest I don't fully understand the effect of the Steps property. I have the feeling that you have to turn off those

Re: [Lazarus] [FEATURE REQUEST] Check syntax on the fly

2014-09-22 Thread Richard Mace
I also agree with leledumbo. A ctrl-F9 is so quick, it's nearly automatic for me anyway :) Richard On 22 September 2014 18:02, Kostas Michalopoulos badsectorac...@gmail.com wrote: I agree with leledumbo, i really dislike that feature in modern IDEs which all it does is slow down the editor

[Lazarus] Using a DateTimeIntervalChartSource in TAChart

2014-09-22 Thread Richard Mace
Hi All, I am trying to create a line graph where the X axis is a zoomable TDateTime value and I believe that I need to use a DateTimeIntervalChartSource However, I cannot seem to work out how to add values to it. Could somebody give me any pointers please? Thanks PS I've have looked at the axis

Re: [Lazarus] Help system questions

2014-09-19 Thread Richard Mace
Excellent, is this likely to get into 1.26? Richard On 19 September 2014 12:42, Reinier Olislagers reinierolislag...@gmail.com wrote: On 13/09/2014 07:00, Reinier Olislagers wrote: I'm working on fixing some things in the help system. 2. My patch in

Re: [Lazarus] Displaying a Listview entry in bold and a different colour

2014-09-16 Thread Richard Mace
h...@talktalk.net wrote: On 15/09/2014 13:10, Richard Mace wrote: Hi All, I just want to make sure that I am not doing anything wrong here, please can somebody give me a little code example of how to correctly set the font to bold and a differnet colour in a listview entry? I wouldn't

[Lazarus] Displaying a Listview entry in bold and a different colour

2014-09-15 Thread Richard Mace
Hi All, I just want to make sure that I am not doing anything wrong here, please can somebody give me a little code example of how to correctly set the font to bold and a differnet colour in a listview entry? Also, what event should I be using? I think I've found a bug, but am not sure Thanks in

[Lazarus] ListView Custom Draw Item

2014-09-10 Thread Richard Mace
Hi All, I have the following code on a ListView Custom Draw Item event, where the font is displayed red, but it's not bold. Any ideas? Sender.Canvas.Font.Style := [fsBold]; Sender.Canvas.Font.Color := clRed; Lazarus 1.24 Windows 8 Richard -- ___

Re: [Lazarus] Lazarus trunk? Please recompile lhelp

2014-09-08 Thread Richard Mace
Hi Reinier, I was having issues getting the. Chm file to display at all. Should it work in 1.24 ? On 4 Sep 2014 21:06, Reinier Olislagers reinierolislag...@gmail.com wrote: On 04/09/2014 16:12, Richard Mace wrote: So will this mean that we can now use .chm help files reliably in our

Re: [Lazarus] Lazarus trunk? Please recompile lhelp

2014-09-04 Thread Richard Mace
Hi Reinier, So will this mean that we can now use .chm help files reliably in our projects? Richard On 4 September 2014 10:22, Reinier Olislagers reinierolislag...@gmail.com wrote: Summary: If you are on Lazarus trunk, please recompile components\chmhelp\lhelp\lhelp.lpr Details: - Lhelp

[Lazarus] Handling Firebird connection

2014-08-25 Thread Richard Mace
Hi all, I have the following code that I use to connect to a Firebird database, which works fine, however, if the Firebird server becomes unavailable, fIBConnection.Connected always returns true. What's the best way of checking to make sure that the Firebird server is still available before I

Re: [Lazarus] Handling Firebird connection

2014-08-25 Thread Richard Mace
Antonia, Many thanks for your reply. I'll re-code my app and do some more testing. Richard On 25 August 2014 09:19, SPRL AFOR afors...@gmail.com wrote: Le 25/08/2014 09:32, Richard Mace a écrit : Hi all, I have the following code that I use to connect to a Firebird database, which

Re: [Lazarus] Handling Firebird connection

2014-08-25 Thread Richard Mace
​Hi Antonia​, This sequence does not protect against the server disconnection between two consecutive database calls. ​Would you mind giving me an example of this? Thanks Richard ​ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Obtaining uptime

2014-08-06 Thread Richard Mace
Ah, that's interesting. Even if you actually choose Shutdown from the menu? Richard On 6 Aug 2014 07:06, Sven Barth pascaldra...@googlemail.com wrote: Am 06.08.2014 07:50 schrieb Richard Mace richard.m...@gmail.com: Hi, Does anyone know why the following code returns the correct days

Re: [Lazarus] Obtaining uptime

2014-08-06 Thread Richard Mace
Interesting. I was sure that it was fully shutting down. I'll test the code after a fresh reboot Richard On 6 Aug 2014 10:53, Sven Barth pascaldra...@googlemail.com wrote: Am 06.08.2014 11:28 schrieb Richard Mace richard.m...@gmail.com: Ah, that's interesting. Even if you actually choose

Re: [Lazarus] Obtaining uptime

2014-08-06 Thread Richard Mace
Hi Sven, I'm amazed! Sure enough, if I choose restart the uptime reads 0 days, and yet, shutdown doesn't actually shut it down! Crazy! Richard On 6 August 2014 10:52, Sven Barth pascaldra...@googlemail.com wrote: Am 06.08.2014 11:28 schrieb Richard Mace richard.m...@gmail.com: Ah, that's

[Lazarus] Obtaining uptime

2014-08-05 Thread Richard Mace
Hi, Does anyone know why the following code returns the correct days uptime in XP, but doesn't in Windows 8? (not tested in anything other) Also, is it close to working correctly in Linux as well? Thanks in advance Richard function TfrmMain.GetDaysUptime: integer; var TickCount: variant;

[Lazarus] Saving an array to a string

2014-07-01 Thread Richard Mace
Hi All, Is it possible to save an array of string to a single string for storing in a string field within a database? If so, could anyone give me any pointers please? Thanks Richard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Saving an array to a string

2014-07-01 Thread Richard Mace
) to High(MyArray) Do MyString := MyString + MyArray[i] + LineEnding; MyStringField.AsString := MyString; On 1 July 2014 16:49, Richard Mace richard.m...@gmail.com wrote: Hi All, Is it possible to save an array of string to a single string for storing in a string field within a database

[Lazarus] Illegal typecast in Linux only

2014-05-01 Thread Richard Mace
Hi, I am getting the following error: Illegal type conversion: TObject to LongInt on the following code: TFSGatewayType(Integer(cbo11TrunkType.Items.Objects[cbo11TrunkType.ItemIndex])) Is this because I am compiling under Linux 64bit or just Linux or just 64bit? Under Windows 32bit it compiles

Re: [Lazarus] Illegal typecast in Linux only

2014-05-01 Thread Richard Mace
Thanks Juhu, Changing my code now :) Richard On 1 May 2014 15:23, Juha Manninen juha.mannine...@gmail.com wrote: On Thursday, May 1, 2014, Richard Mace richard.m...@gmail.com wrote: Hi, I am getting the following error: Illegal type conversion: TObject to LongInt on the following code

Re: [Lazarus] Illegal typecast in Linux only

2014-05-01 Thread Richard Mace
Thanks Mattias, PtrUInt works like a charm :) Richard On 1 May 2014 15:20, Mattias Gaertner nc-gaert...@netcologne.de wrote: On Thu, 1 May 2014 15:04:56 +0100 Richard Mace richard.m...@gmail.com wrote: Hi, I am getting the following error: Illegal type conversion: TObject to LongInt

[Lazarus] Forcing TMemo to dislplay last entry

2014-04-25 Thread Richard Mace
Hi All, I have some code that populates a TMemo via TMemo.Text := 'lots of lines of text..' and need a cross platform way of programatically forcing the TMemo to display the last entry as if the user has had manually scrolled to the bottom. Any idea how I can achieve this? Thanks in advance

Re: [Lazarus] Forcing TMemo to dislplay last entry

2014-04-25 Thread Richard Mace
Hi both, Thanks for the quick responses :) Richard On 25 April 2014 18:46, Howard Page-Clark h...@talktalk.net wrote: On 25/04/2014 18:30, Richard Mace wrote: I have some code that populates a TMemo via TMemo.Text := 'lots of lines of text..' and need a cross platform way

Re: [Lazarus] Forcing TMemo to dislplay last entry

2014-04-25 Thread Richard Mace
On 25 April 2014 18:35, Sandro Cumerlato sandro.cumerl...@gmail.com wrote: Hello Richard, you can use the following code: SendMessage(Memo1.Handle, EM_LINESCROLL, 0, Memo1.Lines.Count); ​Hi Sandro, EM_LINESCROLL won't compile under Linux (Lubuntu 14.04)? Richard​ --

[Lazarus] Reading and Writing to TProcess

2014-04-12 Thread Richard Mace
Hi All, I have the following code working well with TProcess outputting to a TMemo, however, what I'd like to do it monitor the output and then when a certain string is detected, I'd like to feed back to the process. That is, if the TProcess outputs a question, I'd like to feed back either a y or

Re: [Lazarus] Large toolbar buttons

2014-04-07 Thread Richard Mace
On 6 April 2014 21:03, Vojtěch Čihák vojtech.ci...@atlas.cz wrote: Hi, there are two ShowCaption properties. One TToolButton.ShowCaption and the second TToolBar.ShowCaption. Also, there is TToolBar.ButtonHeight when you need large buttons. ​Ah, that was it :) Thanks​ --

Re: [Lazarus] Large toolbar buttons

2014-04-06 Thread Richard Mace
Thanks Mattias, I was wondering what the best component was for a tool bar with large buttons and images on. I am trying to use the TToolbar component, however, it doesn't seem to display captions and I can't seem to get the buttons to be bigger than 16x16? Any ideas? Change the

Re: [Lazarus] Large toolbar buttons

2014-04-06 Thread Richard Mace
On 6 April 2014 08:21, Mattias Gaertner nc-gaert...@netcologne.de wrote: Also, when do the captions get displayed? Have you tried ShowCaptions? Yes, I have. The buttons are linked to Actions so not sure if that makes any difference? Richard --

Re: [Lazarus] Large toolbar buttons

2014-04-06 Thread Richard Mace
If you set Caption to '' then there is no text. Check also ShowCaption of the button. The caption is set to Add user and the ShowCaption is set to true, but it's still not showing the text on the button? Thanks Richard -- ___ Lazarus mailing

[Lazarus] Large toolbar buttons

2014-04-05 Thread Richard Mace
Hi All, I was wondering what the best component was for a tool bar with large buttons and images on. I am trying to use the TToolbar component, however, it doesn't seem to display captions and I can't seem to get the buttons to be bigger than 16x16? Any ideas? Thanks, as always in advance.

Re: [Lazarus] Confused by help

2014-03-24 Thread Richard Mace
Hi Graeme, It looks very interesting. How would I instruct DocView to open at a particular section of a help file from Lazarus? DocView (binary download) comes with an extensive help file explaining all it's uses (concatenating help files at runtime, defining help as an environment

Re: [Lazarus] Confused by help

2014-03-22 Thread Richard Mace
Hi Graeme, It looks very interesting. How would I instruct DocView to open at a particular section of a help file from Lazarus? Richard On 21 March 2014 22:33, Graeme Geldenhuys mailingli...@geldenhuys.co.ukwrote: On 2014-03-21 20:51, Richard Mace wrote: Is CHM help still supported

Re: [Lazarus] Confused by help

2014-03-22 Thread Richard Mace
You can always use DocView as well. DocView is a stand-alone help viewer (no external dependencies). Very fast, and with inline user annotation support, bookmark support, font customization, advanced search etc. It reads the INF help file format which is also very easy to author, and very

Re: [Lazarus] Confused by help

2014-03-22 Thread Richard Mace
I did look at that wiki page and after I installed the chm components it did load the chm file, but it won't display any images? On 22 Mar 2014 08:49, Reinier Olislagers reinierolislag...@gmail.com wrote: On 21/03/2014 21:51, Richard Mace wrote: Hi All, I am trying to integrate a CHM help file

Re: [Lazarus] Confused by help

2014-03-22 Thread Richard Mace
I have uploaded a test.chm file to www.rocksolidpbx.co.uk/downloads if anyone has the time/interest in taking a look. Richard On 22 March 2014 10:20, Reinier Olislagers reinierolislag...@gmail.comwrote: On 22/03/2014 11:06, Richard Mace wrote: I did look at that wiki page and after I

[Lazarus] Confused by help

2014-03-21 Thread Richard Mace
Hi All, I am trying to integrate a CHM help file into my application, but I can only find HTML components in Lazarus 1.2 Is CHM help still supported or should I be doing just HTML Thanks in advance Richard -- ___ Lazarus mailing list

Re: [Lazarus] Console app

2014-03-17 Thread Richard Mace
I have never written a console app and was wondering 2 things. Firstly, if I was to write an app that doesn't require a GUI, that runs on both Windows and Linux (with no XServer) is that classed as a console app? And secondly, is it fairly straight forward to write a console app that stores

[Lazarus] Console app

2014-03-15 Thread Richard Mace
Hi All, I have never written a console app and was wondering 2 things. Firstly, if I was to write an app that doesn't require a GUI, that runs on both Windows and Linux (with no XServer) is that classed as a console app? And secondly, is it fairly straight forward to write a console app that

[Lazarus] Checking characters in a string

2014-03-12 Thread Richard Mace
Hi, I am trying to check to make sure the a string contains at least 1 uppercase character, 1 lowercase character and 1 number. Any ideas as of the best way of coding this? Thanks in advance Richard -- ___ Lazarus mailing list

  1   2   3   >