Re: [Lazarus] global items in TApplication

2013-09-14 Thread leledumbo
In short, you can't put it in the .dpr if you want it to be accessible from all units. Actually, there's not really any magic behind TApplication, you can still create your own TApplication descendant (preferably in its own unit) and assign that to Application variable. Provide a global property to

[Lazarus] global items in TApplication

2013-09-14 Thread Marc Santhoff
Hi, in the process of restructuring an old application I'm stuck on the question where to put globals. For example a global configuration object that has to be available in many units. The problem ist: - I cannot include the main program file (.lpr) in the "uses" clause, which means simple varia

Re: [Lazarus] Project Group support in the IDE

2013-09-14 Thread Mattias Gaertner
> Marc Santhoff  hat am 14. September 2013 um 18:48  >geschrieben: >[...] > > > Curiously asked: could a package and lazbuild be used for this task? > >  > > lazbuild can compile a project, but error messages might be > > misunderstood by the IDE. >  > OK, as I wrote, for releases and similar I pr

Re: [Lazarus] Project Group support in the IDE

2013-09-14 Thread Sven Barth
On 14.09.2013 19:23, Martin wrote: On 14/09/2013 18:01, Sven Barth wrote: A project groups allow you to have multiple projects (packages, libraries, executables) inside one project. The IDE shows you a flat tree of your projects whereby one project is the active one (that one will be used by "r

Re: [Lazarus] Project Group support in the IDE

2013-09-14 Thread Graeme Geldenhuys
On 2013-09-14 17:54, Marc Santhoff wrote: > Can you please explain to a person never having used any Delphi with > version numbers above 3 what exactly those project groups are doing? A picture is worth a thousand words. Here is a screenshot of a project group in one of tiOPF's demos. The demo co

Re: [Lazarus] Project Group support in the IDE

2013-09-14 Thread Graeme Geldenhuys
On 2013-09-14 18:23, Martin wrote: > And: Can ONE project be in more than one group? Yes. Each "project" is independent. You don't have to use a Project Group. A Project Group just makes it easier to work with many related projects. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GU

Re: [Lazarus] Project Group support in the IDE

2013-09-14 Thread Graeme Geldenhuys
On 2013-09-14 17:54, Marc Santhoff wrote: > > Can you please explain to a person never having used any Delphi with > version numbers above 3 what exactly those project groups are doing? Sven pretty much answered all you asked. Project Groups are very useful and very often used in the Delphi IDE

Re: [Lazarus] Project Group support in the IDE

2013-09-14 Thread Graeme Geldenhuys
On 2013-09-14 17:08, Mattias Gaertner wrote: > > Yes, via 'additions and overrides'. Fantastic, thanks for letting me know. I'll give the latest Lazarus a try. > What is difference between "major issue" and "single biggest lacking > feature"? ;) For one I have a usable work-around, the other o

Re: [Lazarus] Project Group support in the IDE

2013-09-14 Thread Marc Santhoff
On Sa, 2013-09-14 at 19:01 +0200, Sven Barth wrote: > On 14.09.2013 18:54, Marc Santhoff wrote: > > On Sa, 2013-09-14 at 13:19 +0100, Graeme Geldenhuys wrote: > >> On 2013-09-14 04:24, Marc Santhoff wrote: > >>> If I'm doing releases having to start lazarus, finding and opening the > >>> project, s

Re: [Lazarus] Project Group support in the IDE

2013-09-14 Thread Martin
On 14/09/2013 18:01, Sven Barth wrote: A project groups allow you to have multiple projects (packages, libraries, executables) inside one project. The IDE shows you a flat tree of your projects whereby one project is the active one (that one will be used by "run", "compile", etc. shortcuts. Y

Re: [Lazarus] Project Group support in the IDE

2013-09-14 Thread Sven Barth
On 14.09.2013 18:54, Marc Santhoff wrote: On Sa, 2013-09-14 at 13:19 +0100, Graeme Geldenhuys wrote: On 2013-09-14 04:24, Marc Santhoff wrote: If I'm doing releases having to start lazarus, finding and opening the project, setting some config values, would all be far to many actions. I really p

Re: [Lazarus] Project Group support in the IDE

2013-09-14 Thread Marc Santhoff
On Sa, 2013-09-14 at 13:19 +0100, Graeme Geldenhuys wrote: > On 2013-09-14 04:24, Marc Santhoff wrote: > > If I'm doing releases having to start lazarus, finding and opening the > > project, setting some config values, would all be far to many actions. I > > really prefer using makefiles or somethi

Re: [Lazarus] Project Group support in the IDE

2013-09-14 Thread Marc Santhoff
On Sa, 2013-09-14 at 10:26 +0200, Mattias Gaertner wrote: > On Sat, 14 Sep 2013 05:24:21 +0200 > Marc Santhoff wrote: > > > On Fr, 2013-09-13 at 14:11 +0200, Michael Van Canneyt wrote: > > > > > > On Fri, 13 Sep 2013, Graeme Geldenhuys wrote: > > > > > > > On 2013-09-13 11:56, Mattias Gaertner

Re: [Lazarus] Help needed for issue #20311: IDE always tailors "Target processor" options for Intel CPUs

2013-09-14 Thread Sven Barth
On 14.09.2013 11:12, Juha Manninen wrote: On Fri, Sep 13, 2013 at 10:35 PM, Mark Morgan Lloyd wrote: At least with the versions I've currently got available it looks as though -R and -Cf defer to -i. Specifically, I see something like this in all cases except x86: -A Output format:

Re: [Lazarus] Help needed for issue #20311: IDE always tailors "Target processor" options for Intel CPUs

2013-09-14 Thread Sven Barth
On 14.09.2013 10:32, Juha Manninen wrote: On Fri, Sep 13, 2013 at 2:36 PM, Sven Barth wrote: Here is the list of supported assembler readers (all also support "standard" or "default" which I'll mark with a "*"): - i386 att (*), gas (alias for att), intel - x86_64 att (*), gas (alias

Re: [Lazarus] WordWrap in TLabel

2013-09-14 Thread Mattias Gaertner
On Sat, 14 Sep 2013 15:41:34 +0100 Martin wrote: > On 14/09/2013 15:37, Jürgen Hestermann wrote: >[...] > > If the text contains no spaces it is not wrapped at all. > > I want to change this and split the text in all > > situations (independend from the content of the text). If you need it cross

Re: [Lazarus] Project Group support in the IDE

2013-09-14 Thread Mattias Gaertner
On Sat, 14 Sep 2013 13:40:53 +0100 Graeme Geldenhuys wrote: >[...] > Does the latest changes also adjust the compiler settings for Packages > used by your project? Yes, via 'additions and overrides'. > This is a major issue for me with Lazarus Packages. What's the point in > having debug buil

Re: [Lazarus] Project Group support in the IDE

2013-09-14 Thread Mattias Gaertner
On Sat, 14 Sep 2013 14:32:32 +0200 (CEST) Michael Van Canneyt wrote: >[...] > At Pascon 2013, I've seen the latest addition to building in Lazarus, > and it is more easy to switch modes now than in Delphi. > Just select a dropdown next to the Run toolbutton... That dropdown exists since build mo

Re: [Lazarus] Install/Uninstall package form: "Do not install" & more

2013-09-14 Thread Maxim Ganetsky
14.09.2013 12:24, Reinier Olislagers пишет: On 14/09/2013 00:19, Maxim Ganetsky wrote: 13.09.2013 11:31, Reinier Olislagers пишет: Some additional remarks/requests: 2. In additition to the red overlay for packages marked for uninstalleation, and the green one for packages marked for installatio

Re: [Lazarus] WordWrap in TLabel

2013-09-14 Thread Martin
On 14/09/2013 15:37, Jürgen Hestermann wrote: Am 2013-09-14 16:19, schrieb Martin: See function TCustomLabel.CalcFittingFontHeight(const TheText: string; MaxWidth, MaxHeight: Integer; var FontHeight, NeededWidth, NeededHeight: integer): Boolean; A flag is given to DrawText You can look up Dr

Re: [Lazarus] WordWrap in TLabel

2013-09-14 Thread Jürgen Hestermann
Am 2013-09-14 16:19, schrieb Martin: See function TCustomLabel.CalcFittingFontHeight(const TheText: string; MaxWidth, MaxHeight: Integer; var FontHeight, NeededWidth, NeededHeight: integer): Boolean; A flag is given to DrawText You can look up DrawText in each widgetset, it may exist with and

Re: [Lazarus] WordWrap in TLabel

2013-09-14 Thread Martin
On 14/09/2013 15:08, Jürgen Hestermann wrote: Am 2013-09-14 15:09, schrieb Bart: On 9/14/13, Jürgen Hestermann wrote: Does anybody know where the routine resides that actually does the splitting into lines of TLabel.Caption (if WordWrap is true)? I don't like it's behaviour and want to chang

Re: [Lazarus] WordWrap in TLabel

2013-09-14 Thread Jürgen Hestermann
Am 2013-09-14 15:09, schrieb Bart: On 9/14/13, Jürgen Hestermann wrote: Does anybody know where the routine resides that actually does the splitting into lines of TLabel.Caption (if WordWrap is true)? I don't like it's behaviour and want to change (overwrite) it. Probably done by the widgets

Re: [Lazarus] WordWrap in TLabel

2013-09-14 Thread Jürgen Hestermann
Am 2013-09-14 15:17, schrieb Junior: In Object Inspector: AutoSize = False WordWrap = True With the mouse, expand more the Label component to the desired point. ??? I am not able to change the size of the label at runtime with the mouse. And even if this would work I would not like it as I wa

Re: [Lazarus] WordWrap in TLabel

2013-09-14 Thread Junior
In Object Inspector: AutoSize = False WordWrap = True With the mouse, expand more the Label component to the desired point. Em 14-09-2013 10:09, Bart escreveu: On 9/14/13, Jürgen Hestermann wrote: Does anybody know where the routine resides that actually does the splitting into lines of TLa

Re: [Lazarus] WordWrap in TLabel

2013-09-14 Thread Bart
On 9/14/13, Jürgen Hestermann wrote: > Does anybody know where the routine resides that actually > does the splitting into lines of TLabel.Caption (if WordWrap is true)? > I don't like it's behaviour and want to change (overwrite) it. Probably done by the widgetset. Bart -- ___

Re: [Lazarus] Project Group support in the IDE

2013-09-14 Thread Michael Van Canneyt
On Sat, 14 Sep 2013, Graeme Geldenhuys wrote: On 2013-09-14 13:32, Michael Van Canneyt wrote: At Pascon 2013, I've seen the latest addition to building in Lazarus, and it is more easy to switch modes now than in Delphi. Just select a dropdown next to the Run toolbutton... Good to know...

[Lazarus] WordWrap in TLabel

2013-09-14 Thread Jürgen Hestermann
Does anybody know where the routine resides that actually does the splitting into lines of TLabel.Caption (if WordWrap is true)? I don't like it's behaviour and want to change (overwrite) it. Currently, long lines are not wrapped when no spaces exist. I am wondering why this is the case because t

Re: [Lazarus] Project Group support in the IDE

2013-09-14 Thread Graeme Geldenhuys
On 2013-09-14 13:32, Michael Van Canneyt wrote: > > At Pascon 2013, I've seen the latest addition to building in Lazarus, > and it is more easy to switch modes now than in Delphi. > Just select a dropdown next to the Run toolbutton... Good to know... I'll recompile Lazarus IDE and take a look. M

Re: [Lazarus] Project Group support in the IDE

2013-09-14 Thread Michael Van Canneyt
On Sat, 14 Sep 2013, Graeme Geldenhuys wrote: On 2013-09-14 04:24, Marc Santhoff wrote: If I'm doing releases having to start lazarus, finding and opening the project, setting some config values, would all be far to many actions. I really prefer using makefiles or something similar. To be h

Re: [Lazarus] Project Group support in the IDE

2013-09-14 Thread Graeme Geldenhuys
On 2013-09-14 04:24, Marc Santhoff wrote: > If I'm doing releases having to start lazarus, finding and opening the > project, setting some config values, would all be far to many actions. I > really prefer using makefiles or something similar. To be honest... I find the Lazarus way of doing things

Re: [Lazarus] Help needed for issue #20311: IDE always tailors "Target processor" options for Intel CPUs

2013-09-14 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: Output for -i from native 2.6.0 or 2.6.2, unless noted. Apologies if this is excessively noisy. This was useful information, thanks. Now only m68k and powerpc are missing. I'll see if I can fill in any gaps. FPC 2.6.0 on SPARC Solaris 8: --

Re: [Lazarus] Help needed for issue #20311: IDE always tailors "Target processor" options for Intel CPUs

2013-09-14 Thread Juha Manninen
On Sat, Sep 14, 2013 at 2:19 PM, Mark Morgan Lloyd wrote: >> BTW, FPC help output for mips and mipsel list "mips2" twice. > I noticed that, and almost highlighted it as a warning that your parser > would need to cope. The parser is another thing. Its idea was to be as "dummy" as possible, not ana

Re: [Lazarus] Help needed for issue #20311: IDE always tailors "Target processor" options for Intel CPUs

2013-09-14 Thread Mark Morgan Lloyd
Juha Manninen wrote: On Fri, Sep 13, 2013 at 10:35 PM, Mark Morgan Lloyd wrote: At least with the versions I've currently got available it looks as though -R and -Cf defer to -i. Specifically, I see something like this in all cases except x86: -A Output format: -Adefault Use default

Re: [Lazarus] Install/Uninstall package form: "Do not install" & more

2013-09-14 Thread Reinier Olislagers
On 14/09/2013 11:50, Juha Manninen wrote: > On Fri, Sep 13, 2013 at 10:31 AM, Reinier Olislagers > wrote: >> 3. Perhaps it's a good idea to have a search box for the left list >> (installed packages) as well... depends on the amount of stuff you have >> installed but it can be useful. > > It is a

Re: [Lazarus] Install/Uninstall package form: "Do not install" & more

2013-09-14 Thread Juha Manninen
On Fri, Sep 13, 2013 at 10:31 AM, Reinier Olislagers wrote: > WHen I started using Lazarus, the "Do not install" caption made it > unclear that this is actually the list of available packages, and > Lazarus will not actually e.g. uninstall anything that is in that list > when you click Saven and r

Re: [Lazarus] Help needed for issue #20311: IDE always tailors "Target processor" options for Intel CPUs

2013-09-14 Thread Juha Manninen
On Fri, Sep 13, 2013 at 10:35 PM, Mark Morgan Lloyd wrote: > At least with the versions I've currently got available it looks as though > -R and -Cf defer to -i. Specifically, I see something like this in all cases > except x86: > > -A Output format: > -Adefault Use default assembler >

Re: [Lazarus] Help needed for issue #20311: IDE always tailors "Target processor" options for Intel CPUs

2013-09-14 Thread Juha Manninen
On Fri, Sep 13, 2013 at 2:36 PM, Sven Barth wrote: > Here is the list of supported assembler readers (all also support "standard" > or "default" which I'll mark with a "*"): > > - i386 > att (*), gas (alias for att), intel > - x86_64 > att (*), gas (alias for att), intel > - sparc > at

Re: [Lazarus] Project Group support in the IDE

2013-09-14 Thread Mattias Gaertner
On Sat, 14 Sep 2013 05:24:21 +0200 Marc Santhoff wrote: > On Fr, 2013-09-13 at 14:11 +0200, Michael Van Canneyt wrote: > > > > On Fri, 13 Sep 2013, Graeme Geldenhuys wrote: > > > > > On 2013-09-13 11:56, Mattias Gaertner wrote: > > > >> No, it is not implemented yet. > > > > > > Thanks for the

Re: [Lazarus] Install/Uninstall package form: "Do not install" & more

2013-09-14 Thread Reinier Olislagers
On 14/09/2013 00:19, Maxim Ganetsky wrote: > 13.09.2013 11:31, Reinier Olislagers пишет: >> The Install/Uninstall package form has two lists: >> 1. Would it be a good idea to rename the caption to "Available"? > > I improved captions in r42784. Please test. Thanks a lot, looks good! >> Some addi

Re: [Lazarus] TTreenode.data

2013-09-14 Thread Reinier Olislagers
Nice. Use FS a bit myself - nice to see Lazarus tooling for it appear. On 14/09/2013 08:45, Richard Mace wrote: > It is, and yes I am. :-) > > On 13 Sep 2013 16:01, "Reinier Olislagers" > wrote: > > On 13/09/2013 09:37, Antonio Fortuny wrote: > > Le

Re: [Lazarus] Help needed for issue #20311: IDE always tailors "Target processor" options for Intel CPUs

2013-09-14 Thread Sven Barth
Am 13.09.2013 21:35 schrieb "Mark Morgan Lloyd" < markmll.laza...@telemetry.co.uk>: > > Sven Barth wrote: > >>> Is there anything else that I could usefully grab at the same time, e.g. ABI types? In particular, noting that you've fixed http://bugs.freepascal.org/view.php?id=20310 but is there some