Re: [Lazarus] Run Parameters Dialog

2016-09-22 Thread Mattias Gaertner
On Thu, 22 Sep 2016 18:46:49 -0600 "Lars" wrote: > Hi in the Run Parameters dialog, it appears as though $macros such as > $TargetFile() or the current project directory, etc., don't get > expanded Please create a bug report. Mattias -- ___ Laza

Re: [Lazarus] Conditional code based on Lazarus/LCL version

2016-09-22 Thread Lars
On Thu, September 22, 2016 2:30 pm, Denis Kozlov wrote: > Hi, ... > P.S. Most of mailing list emails still don't arrive to gmail account, > I'll keep monitoring list archive. Are you sure they are not hidden in some tab, like social, or such. I don't use Gmail much, just as dummy accounts sometim

[Lazarus] Run Parameters Dialog

2016-09-22 Thread Lars
Hi in the Run Parameters dialog, it appears as though $macros such as $TargetFile() or the current project directory, etc., don't get expanded Is this by design? Would be nice if they were expanded just as in the External Tools. If no one has interest in it now but would find it useful I could

Re: [Lazarus] Launching External Tool Cmd.exe in Windows

2016-09-22 Thread Lars
On Thu, September 22, 2016 3:45 pm, Mattias Gaertner wrote: >> Oh, when did you add this, long ago or just recent... which release... >> or is it only on the latest github/svn. Thanks, I did not see this >> option > > Just recently, as in today. > > > Mattias Any idea what workarounds people used

Re: [Lazarus] Conditional code based on Lazarus/LCL version

2016-09-22 Thread Mattias Gaertner
On Thu, 22 Sep 2016 22:25:23 +0100 Denis Kozlov wrote: > On 22/09/2016 22:02, Mattias Gaertner wrote: > > See unit lclversion. > > Thanks! Somehow I just couldn't find it. > > Is it theoretically possible to implement a compile time define for > Lazarus version? You can use it at compile ti

Re: [Lazarus] Launching External Tool Cmd.exe in Windows

2016-09-22 Thread Mattias Gaertner
On Thu, 22 Sep 2016 15:14:21 -0600 "Lars" wrote: > On Thu, September 22, 2016 3:08 am, Mattias Gaertner wrote: > > > > I added two options "Show console" and "Hide window". Enable Show > > console and disable Hide window and cmd.exe will be shown in a console > > window. > > > > Mattias > > >

Re: [Lazarus] Conditional code based on Lazarus/LCL version

2016-09-22 Thread Denis Kozlov
On 22/09/2016 22:02, Mattias Gaertner wrote: See unit lclversion. Thanks! Somehow I just couldn't find it. Is it theoretically possible to implement a compile time define for Lazarus version? Perhaps an extra define that Lazarus passes to compiler automatically? Thanks, Denis -- __

Re: [Lazarus] Launching External Tool Cmd.exe in Windows

2016-09-22 Thread Lars
On Thu, September 22, 2016 3:08 am, Mattias Gaertner wrote: > > I added two options "Show console" and "Hide window". Enable Show > console and disable Hide window and cmd.exe will be shown in a console > window. > > Mattias Oh, when did you add this, long ago or just recent... which release... o

Re: [Lazarus] Launching External Tool Cmd.exe in Windows

2016-09-22 Thread Lars
On Thu, September 22, 2016 2:38 am, shoKwave wrote: > Hi, > > > I simply tried putting a TProcess and a TButton on a form and used > following code > > procedure TForm1.Button1Click(Sender: TObject); begin > Process1.ApplicationName:='c:\windows\system32\cmd.exe'; > Process1.Execute; > end; > > Wor

Re: [Lazarus] Conditional code based on Lazarus/LCL version

2016-09-22 Thread Mattias Gaertner
On Thu, 22 Sep 2016 21:30:51 +0100 Denis Kozlov wrote: > Hi, > > Is there something like FPC_VERSION define but for Lazarus or LCL, e.g. > LAZARUS_VERSION? See unit lclversion. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http:

[Lazarus] Conditional code based on Lazarus/LCL version

2016-09-22 Thread Denis Kozlov
Hi, Is there something like FPC_VERSION define but for Lazarus or LCL, e.g. LAZARUS_VERSION? I need a way of programmatically determining which version of Lazarus or LCL is/was used to compile the program, preferably at compile time, but at run time could also be useful. P.S. Most of maili

Re: [Lazarus] Desktops - some features overengineered (?)

2016-09-22 Thread leledumbo
> Does anybody take advantage of the fact that these settings are different for every desktop? Yes > Or did I overengineer the feature? No > For me it looks like the users are only confused (like Graeme in the "IDE > Docking windows and Editor Toolbar" thread) they just need explanation, th

Re: [Lazarus] Launching External Tool Cmd.exe in Windows

2016-09-22 Thread Mattias Gaertner
On Thu, 22 Sep 2016 00:14:17 -0600 "Lars" wrote: > Hi, Lazarus has the nice feature of being able to launch an external tool. > > I'm trying to launch a console app... > > So I put C:\Windows\System32\cmd.exe in the program file name for the > external tool. This does nothing and gives no error

Re: [Lazarus] Accessing components in FormCreate event

2016-09-22 Thread Mattias Gaertner
On Thu, 22 Sep 2016 09:50:06 +0100 Lukasz Sokol wrote: >[...] > From what I remember (on Turbo Delphi, but this is generally true I think) > anything that causes the form to redraw, > (as it's been indicated in responses here too - resizing, aligning, changing > colours etc) > is a really bad id

Re: [Lazarus] Accessing components in FormCreate event

2016-09-22 Thread Lukasz Sokol
On 22/09/16 08:13, Luca Olivetti wrote: > El 22/09/16 a les 08:47, Lars ha escrit: > >> >> However these may be issues with formcreate that are not related to >> the bugs I have come across. I'm trying to remember what exactly >> was the problem that I had in FormCreate, but can't remember > >

Re: [Lazarus] Launching External Tool Cmd.exe in Windows

2016-09-22 Thread shoKwave
Hi, I simply tried putting a TProcess and a TButton on a form and used following code procedure TForm1.Button1Click(Sender: TObject); begin Process1.ApplicationName:='c:\windows\system32\cmd.exe'; Process1.Execute; end; Works for me on a Win10 32bit machine with FPC 3.0.0 and Lazarus 1.6.

Re: [Lazarus] Accesing components in FormCreate event

2016-09-22 Thread Mattias Gaertner
On Thu, 22 Sep 2016 00:54:35 -0600 "Lars" wrote: >[...] > Prefer positive attitude of Yes, vs No. Inbetween Qbit state: maybe. I meant 'True'. > > Keep in mind that the LCL tries to create the Handle and layout after > > calling FormCreate. So changing properties do not have immediate effects

Re: [Lazarus] Accessing components in FormCreate event

2016-09-22 Thread Luca Olivetti
El 22/09/16 a les 08:47, Lars ha escrit: However these may be issues with formcreate that are not related to the bugs I have come across. I'm trying to remember what exactly was the problem that I had in FormCreate, but can't remember I don't remember exactly, but the size of the component i