Re: [Lazarus] Resizing Widgets

2015-11-08 Thread Aradeonas
My request was about all of the works like this beautiful clock but about this,please send me your Linux version or function headers so I make a windows version that does the same like it. Regards, Ara -- http://www.fastmail.com - mmm... Fastmail... -- _

[Lazarus] Manage server task list architecture

2015-11-08 Thread Aradeonas
Hi, This is not an especially Lazarus or FPC question but I want to do it with Lazarus so I need your help. I don't have any experience with servers and want to know how should I manage this situation: My system get files,hash them and then send them back so when you post a file to it,it should

Re: [Lazarus] Getcurrentdir in Linux Mint

2015-11-08 Thread leledumbo
> I need to know the function to get the current directory in Linux Mint http://www.freepascal.org/docs-html/rtl/sysutils/getcurrentdir.html -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Getcurrentdir-in-Linux-Mint-tp4045341p4045348.html Sent from th

[Lazarus] TextHint, TextHintFontColor, TextHintFontStyle

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

Re: [Lazarus] Getcurrentdir in Linux Mint

2015-11-08 Thread fred
hy , Try this: ... var repertoire : string ; ... begin repertoire := ExtractFileDir(Application.ExeName); end ; Le dimanche 08 novembre 2015 à 01:40 -0700, leledumbo a écrit : > > I need to know the function to get the current directory in Linux Mint > > http://www.freepascal.org/docs-ht

Re: [Lazarus] Getcurrentdir in Linux Mint

2015-11-08 Thread Anthony Walter
RunCommand('pwd', S); -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] TextHint, TextHintFontColor, TextHintFontStyle

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

Re: [Lazarus] TextHint, TextHintFontColor, TextHintFontStyle

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

Re: [Lazarus] Getcurrentdir in Linux Mint

2015-11-08 Thread Graeme Geldenhuys
On 2015-11-08 13:31, Anthony Walter wrote: > RunCommand('pwd', S); Why not simply FPC's GetCurrentDir() function. http://www.freepascal.org/docs-html/rtl/sysutils/getcurrentdir.html Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourcef

[Lazarus] Failed to build lazarus release 1.4.4 from svn

2015-11-08 Thread Bo Berglund
I tried to compile the latest release of Lazarus (1.4.4) on my Raspberry Pi2 under Raspbian Jessie. I want to do this in order to get a stable IDE rather than the trunk version I have tried so far. But I received errors while doing make bigide... Here is what I have done: 1) I have downloaded fp

Re: [Lazarus] Getcurrentdir in Linux Mint

2015-11-08 Thread wkitty42
On 11/08/2015 06:55 AM, fred wrote: begin repertoire := ExtractFileDir(Application.ExeName); end ; that will get you the application's directory which may not be the user's current directory... -- NOTE: No off-list assistance is given without prior approval. *Please keep mailing l

Re: [Lazarus] TextHint, TextHintFontColor, TextHintFontStyle

2015-11-08 Thread Mattias Gaertner
On Sun, 8 Nov 2015 15:08:08 +0100 Bart wrote: > On 11/8/15, Leonardo M. Ramé wrote: > > > Hi, I noted there are new (to me) properties in some components, what's > > the difference between those and the good old Hint property?. > > > > TextHint fills the TCustomEdit with the value assigned to

[Lazarus] Event created by program logic rather than user action

2015-11-08 Thread Dr Engelbert Buxbaum
Hi, I am writing a cellular automaton, that calculates a n by n array with integer values, which represent colour values. The array is updated in an infinite loop, that I want to also call the FormPaint method to create a graphical representation of the automaton. Who is the sender in this case? O

Re: [Lazarus] Event created by program logic rather than user action

2015-11-08 Thread Anthony Walter
Dr Buxbaum, If you are creating a graphical application and want to process calculations continually, without any doubt you should be using a thread. A thread which is separated from the user interface thread. See the TThread class. -- ___ Lazarus maili

[Lazarus] Which method is called at the very end of TWinControl creation?

2015-11-08 Thread Krzysztof
Hi, I have form which has a lot of panels created at runtime. These panels have controls and splitters (inside). The problem is with setting initial splitters position when user open form. I want that spliiters should have center position of its parent (parent = runtime created panel) but it is tr

Re: [Lazarus] Which method is called at the very end of TWinControl creation?

2015-11-08 Thread Howard
On 08/11/2015 17:05, Krzysztof wrote: What I'm looking is virtual method like "ThisIsCalledWhenControlIsCompletelyAdjustedAndReadyWithAllChildrens" . Tried other methods like VisibleChanged, ChildHandlesCreated etc but without success Possible methods to try include: Loaded FormEndUpdated

Re: [Lazarus] Event created by program logic rather than user action

2015-11-08 Thread Anthony Walter
Here's an example which calculates Pi forever in a thread. It's important to note a few things: 1. Periodically check if the thread should stop by checking the Terminated property inside Execute 2. If you want to communicate with the user interface, such as refreshing the screen based on some calc

Re: [Lazarus] Which method is called at the very end of TWinControl creation?

2015-11-08 Thread Mattias Gaertner
On Sun, 8 Nov 2015 18:05:10 +0100 Krzysztof wrote: > Hi, > > I have form which has a lot of panels created at runtime. These panels have > controls and splitters (inside). The problem is with setting initial > splitters position when user open form. I want that spliiters should have > center pos

Re: [Lazarus] Manage server task list architecture

2015-11-08 Thread Mattias Gaertner
On Sun, 08 Nov 2015 00:05:56 -0800 Aradeonas wrote: >[...] > My system get files,hash them and then send them back so when you post a > file to it,it should hash it and then give you a download link. > > > It is so simple if I have 1 user but what should I do when in web page I > have a list th

Re: [Lazarus] Manage server task list architecture

2015-11-08 Thread Aradeonas
It takes 2-3 second average for each file but it will not use max CPU usage so I can use multi threads for it and run for example 10 of it in the same time. Regards, Ara -- http://www.fastmail.com - Choose from over 50 domains or use your own -- ___

[Lazarus] Automatic creation of (configuration) dialogs

2015-11-08 Thread Alexander Hofmann
Hi, I was wondering if there's some code / unit / component etc. that allows the automatic creation of dialogs at runtime, i.e. for providing configuration options to the user, by providing some sort of property-list (By Code, XML, ini-file what so ever)? I'm thinking of something including descri

[Lazarus] Dynamic resolution of IDE Macros (at first usage)

2015-11-08 Thread Luiz Americo Pereira Camara
I'd like to setup a IDE Macro to be used in project output file path. Since the value of this Macro is enviroment dependent (the directory of a web server) it can not be saved hardcoded in project options I have in mind a feature that when an unknow macro is found a dialog is show asking for the

Re: [Lazarus] Failed to build lazarus release 1.4.4 from svn

2015-11-08 Thread Bo Berglund
On Sun, 08 Nov 2015 16:15:59 +0100, Bo Berglund wrote: >4) Then inside the 1.4.4 dir I issued: >time make bigide > >The response when it quit was: > >/usr/bin/ld: warning: ./link.res contains output sections; did you >forget -T? >/usr/local/lib/fpc/2.6.4/units/arm-linux/rtl/cprt0.o: In function >

Re: [Lazarus] Dynamic resolution of IDE Macros (at first usage)

2015-11-08 Thread Mattias Gaertner
On Sun, 8 Nov 2015 16:38:47 -0300 Luiz Americo Pereira Camara wrote: > I'd like to setup a IDE Macro to be used in project output file path. > > Since the value of this Macro is enviroment dependent (the directory of a > web server) it can not be saved hardcoded in project options You can use $

Re: [Lazarus] Dynamic resolution of IDE Macros (at first usage)

2015-11-08 Thread Luiz Americo Pereira Camara
Em 08/11/2015 18:02, "Mattias Gaertner" escreveu: > > On Sun, 8 Nov 2015 16:38:47 -0300 > Luiz Americo Pereira Camara > > > I have in mind a feature that when an unknow macro is found a dialog is > > show asking for the Macro value then store in Session file. > > How to change it later? Good ques

Re: [Lazarus] Failed to build lazarus release 1.4.4 from svn

2015-11-08 Thread Martin Schreiber
On Sunday 08 November 2015 21:59:28 Bo Berglund wrote: > On Sun, 08 Nov 2015 16:15:59 +0100, Bo Berglund > Is seed fpc 2.6.4 not enough to compile lazarus 1.4.x release? > For RaspberryPi you need the EABIHF version of the FPC-ARM compiler. For example 3.0.1 from here: http://sourceforge.net/proj