Re: [Lazarus] Procedure List in Lazarus IDE

2015-12-20 Thread Graeme Geldenhuys
On 2015-12-18 19:58, Juha Manninen wrote:
> I remember Graeme mentioned that some features broke or disappeared
> during the years. I did not find the post any more

I couldn't find that post either, but off the top of my head I know the
following:

* The icons next to each method, function, procedure, constructor and
  destructor are missing. The original GExperts icons were used, and
  is quite useful in finding things. The fpGUI demo IDE (Maximus) shows
  these correctly, if you wanted a reference.

* Remembering last used window size and position didn't work. I hacked
  my own solution locally writing to a new INI file.

* Remembering last used columns sizes doesn't work. Again, I hacked my
  own solution locally writing to a new INI file.


I'll take another look at Procedure List in Lazarus to see what others
are missing or not working and let you know.

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Error when installing project groups

2015-12-20 Thread Flávio Etrusco
On Sat, Dec 19, 2015 at 1:00 PM, Mattias Gaertner
 wrote:
> On Fri, 18 Dec 2015 14:49:30 -0300
> Flávio Etrusco  wrote:
>
>>[...]
>> I'm also missing some command to view the current Project Group...
>
> It's the same as for any IDE window:
>
> Windows -> Project Group 

But if you close the window there's no way to open back other than
using Open Project Group or Open Recent... TBH I hadn't notice the
Open Recent Project Group menu until now; it's enough for me.

Regards,
Flávio

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus compile project via ssh?

2015-12-20 Thread Donald Ziesig

On 12/20/2015 07:52 AM, Anthony Walter wrote:

Thanks everyone for your replies.

Regarding cross compilation, my code contains a sections linking to 
the broadcom driver and several other files (a whole slew of different 
vchi modules), which in turns links to many other files. For cross 
compile to work I would need to find all the required libs and static 
files (*.a) file upon which they depend to cross compile. And for the 
static libs link order needs to be preserved 
(http://stackoverflow.com/questions/45135/why-does-the-order-in-which-libraries-are-linked-sometimes-cause-errors-in-gcc) 
or compilation fails. On the Pi I use a have config program (provided 
by broadcom) in an ifdef withing my Pi's fpc.cfg. The config program 
dynamically generates settings for the gnu ld command to produce the 
correct static lib order.


Rather than trying to solve these types of linking issues (not to 
mention the generating the correct hard float cross compiler) on my 
desktop PC, I thought my current workflow was easier a lot easier.


Also, the ssh method for me has the added benefit of allowing me to 
execute my Pi program from a terminal on my desktop PC, and see the 
results in that terminal as the Pi brings up a full screen UI on 
another monitor. See this video taken from another developer -> 
https://www.youtube.com/watch?v=GhWs_3_SuW0 .The difference my case is 
that I've written code to control a fullscreen Pi app through the ssh 
terminal, while on the Pi the terminal is not visible/accessible.



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Hi Anthony,

I gave up on cross compiling, but I have had much success developing on 
the pi using VNC/SSH.  The pi is overclocked to 1000Mhz and the 
responsiveness is satisfactory when compared with my quad-core laptop.  
The nice thing is that I only need one keyboard, display and mouse.  The 
only bad thing is that I haven't figured out how to share the 
clipboard.  (VNC says it can sync clipboards but it doesn't work for me.)


My next move will be to store the source code on the laptop and access 
it from the pi.  I did this (storing common source code) between Linux 
Mint and Windows.  It worked except that Lazarus on Linux got confused 
about the modified status of files saved on Windows and vice versa.


Now, if anyone could give me a script or recipe for setting up FPC 3.0.0 
and Lazarus 1.6RC2 on a virgin installation of Raspbian I would be truly 
thankful  (Preferably from source).  Everything I tried so far keeps 
telling me I need to run *fpcmake* because it doesn't know about the 
target.  I think I am missing parameters to the *make* command for 
either or both.  At one point I had FPC 3.0.1 working, but Lazarus kept 
complaining about needing fpcmake.


Don
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Lazarus compile project via ssh?

2015-12-20 Thread Anthony Walter
I am wondering, is it possible to configure Lazarus to compile a project on
a remote computer running a different platform/architecture through ssh?

I've been doing Lazarus development on Linux on a quad core amd64 desktop
PC for a while now and it feels comfortable. But I do have a few arm6/7
Raspberry Pi computers with FPC/Lazarus as well.

While the Pi can run a Gtk2 desktop and Lazarus, it's sluggish and its web
browser is just awful (I use it for copy and paste code from specific
website).

For the past few days I've been using Lazarus on my Linux desktop PC to
write code stored on my Pi. I keep it under /home/pi/Development folder and
mount it to my desktop PC at /home/desktopuser/pi with sshfs. Then I
compile a program to test my framework for compilation hints/errors using
an opened ssh from my desktop PC to the PI.

e.g. Desktop PC terminal ssh'ed into a Pi:
pi@raspberrypi:~/Development/FreePascal/Projects/Bare $ fpc test.pas

And this works OK, but I still have to transcribe output hint/error line
numbers back into my desktop lazarus (Ctrl+G goto line).

This leads me to think, shouldn't it be possible to skip the ssh terminal
command line compiler, and instead configure Lazarus to use an ssh to
compile "fpc test.pas" on the Pi for me? Through shh the build results
would go to the Lazarus message window highlighting and lines with errors
in the text editor on my desktop PC?

If this is possible to configure I'd appreciate it if anyone could send me
a link to a guide. I would be appreciative and much more productive if this
were possible.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus compile project via ssh?

2015-12-20 Thread Martin Schreiber
On Sunday 20 December 2015 10:34:33 Mark Morgan Lloyd wrote:
> Martin Schreiber wrote:
> > On Sunday 20 December 2015 08:59:35 Anthony Walter wrote:
> >> I am wondering, is it possible to configure Lazarus to compile a project
> >> on a remote computer running a different platform/architecture through
> >> ssh?
> >>
> >> I've been doing Lazarus development on Linux on a quad core amd64
> >> desktop PC for a while now and it feels comfortable. But I do have a few
> >> arm6/7 Raspberry Pi computers with FPC/Lazarus as well.
> >
> > I successfully use cross-compiling and remote debugging from x86 Linux to
> > Raspberry Pi. MSEide has project templates for that purpose in
> > apps/ide/templates/crossarm*.prj, please see README.TXT.
> > http://mseide-msegui.sourceforge.net/pics/crossarm.png
> >
> > It is probably possible to setup Lazarus to to the same.
>
> Generally works well, provided that the desktop machine's X11 server
> fully supports the primitives expected by the target machine's widget set.
>
I use remote debugging by gdbserver running on Raspberry Pi. The target uses 
the Rpi X11 server, so one needs to see the Rpi screen and reach the target 
keyboard and mouse in order to debug a graphical application with this setup.

Martin

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus 1.6RC1 on various platforms

2015-12-20 Thread Mattias Gaertner
On Sun, 20 Dec 2015 09:37:16 +
Mark Morgan Lloyd  wrote:

> Mattias Gaertner wrote:
>[...]
> >> An annoyance affecting all platforms above is that the timeout in the 
> >> "Configure Lazarus IDE" -> "Compiler" box is impossibly fast, if the 
> >> default isn't right about the only way to use it is to paste a prepared 
> >> name.
> > 
> > What timeout?
> 
> After the compiler name has been changed by the addition or removal of a 
> single character, it goes and checks whether the filename is now valid. 
> The timeout here is something like 10th sec, and displays a dialogue if 
> the name is bad.

Fixed.


>[...]
> >> Slightly more serious from my POV is that a project that created a form 
> >> early to set up a configuration file from a template is now giving 
> >> problems on all tested platforms. I'm assuming that 
> >> http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-A-change-in-LCL-require-your-TCustomForm-descendants-to-have-a-resource-or-to-use-a-CreateNer-td2402646.html
> >>  
> >> is relevant, but at present am struggling.
> > 
> > This is a pretty old change.
> 
> Yes, but has only now become mandatory.

The change was already in 1.0.

 
> > Simply use CreateNew instead of Create.

Or set RequireDerivedFormResource to false.

 
Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus 1.6 and QuestionDLG

2015-12-20 Thread Jürgen Hestermann

Am 2015-12-20 um 08:06 schrieb Ondrej Pokorny:
> I just add that you had to care for mrCancel before as well (if default 
dialog was shown).
> It was returned when the dialog was closed with the system close button in 
the window caption. So the test code you sent isn't good for 1.4 either.

Before (with Lazarus 1.4) typing escape had the expected behaviour.
Now (with Lazarus 1.6) the same code does nothing on escape.
So something has changed.

> Now the behavior should be consequent:
> no 'iscancel' button defined: mrCancel is returned on ESC/close.
> 'iscancel' defined: its modal result is always returned on ESC/close.

As already written in my other mail there is no documentation of 'iscancel' on
http://wiki.freepascal.org/Dialog_Examples#QuestionDlg
and here
http://lazarus-ccr.sourceforge.net/docs/lcl/dialogs/questiondlg.html
neither 'isdefault' nor 'iscancel' is mentioned.

I simply did not know about 'iscancel' at all.
How should I, if it's undocumented?

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus 1.6 and QuestionDLG

2015-12-20 Thread Ondrej Pokorny

On 20.12.2015 12:52, Jürgen Hestermann wrote:

Am 2015-12-20 um 08:06 schrieb Ondrej Pokorny:
> I just add that you had to care for mrCancel before as well (if 
default dialog was shown).
> It was returned when the dialog was closed with the system close 
button in the window caption. So the test code you sent isn't good for 
1.4 either.


Before (with Lazarus 1.4) typing escape had the expected behaviour.
Now (with Lazarus 1.6) the same code does nothing on escape.
So something has changed.

> Now the behavior should be consequent:
> no 'iscancel' button defined: mrCancel is returned on ESC/close.
> 'iscancel' defined: its modal result is always returned on ESC/close.

As already written in my other mail there is no documentation of 
'iscancel' on

http://wiki.freepascal.org/Dialog_Examples#QuestionDlg
and here
http://lazarus-ccr.sourceforge.net/docs/lcl/dialogs/questiondlg.html
neither 'isdefault' nor 'iscancel' is mentioned.

I simply did not know about 'iscancel' at all.
How should I, if it's undocumented?


It's completely OK that you don't know it - we are trying to explain it 
to you , not to abuse you.


It's a feature from trunk added by me on Dec 13th 2015 and it is 
documented in trunk (although with some delay). I also merged it to 1.6 
branch on Dec 14th 2015. Don't get me wrong - I don't want to be 
offensive but I expect everybody asking for bug fixes to check the 
trunk/fixes_1_6 SVN changes. You cannot see the implementation details 
otherwise.


You have to understand that new features in trunk are being developed 
and so they can change. Writing a documentation for features in 
development is not very reasonable.


Always look for documentation in trunk or the fixes branch. 
http://lazarus-ccr.sourceforge.net/docs/lcl/dialogs/questiondlg.html 
isn't automatically updated and unfortunately there is no datestamp when 
it was generated. It is told to be updated with new stable versions so 
now it should reflect 1.4. Of course you don't find the latest features 
there.


I updated the wiki page accordingly.

As latest, you have the source code, so you can check it as well - that 
usually is better than any documentation.


Ondrej

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus compile project via ssh?

2015-12-20 Thread Mark Morgan Lloyd

Martin Schreiber wrote:

On Sunday 20 December 2015 08:59:35 Anthony Walter wrote:

I am wondering, is it possible to configure Lazarus to compile a project on
a remote computer running a different platform/architecture through ssh?

I've been doing Lazarus development on Linux on a quad core amd64 desktop
PC for a while now and it feels comfortable. But I do have a few arm6/7
Raspberry Pi computers with FPC/Lazarus as well.

I successfully use cross-compiling and remote debugging from x86 Linux to 
Raspberry Pi. MSEide has project templates for that purpose in 
apps/ide/templates/crossarm*.prj, please see README.TXT.

http://mseide-msegui.sourceforge.net/pics/crossarm.png

It is probably possible to setup Lazarus to to the same.


Generally works well, provided that the desktop machine's X11 server 
fully supports the primitives expected by the target machine's widget set.


Working from memory, I think there's a problem with debugging multiple 
threads over SSH, and for that reason I also like to have VNC available. 
There's also some versions of Lazarus (which is by no means alone in 
this defect) that poll the input devices excessively, and again VNC can 
help out there.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus 1.6RC1 on various platforms

2015-12-20 Thread Mark Morgan Lloyd

Mattias Gaertner wrote:

On Sat, 19 Dec 2015 19:46:11 +
Mark Morgan Lloyd  wrote:


The good news is that it builds with FPC 3.0.0 on:

PPC Linux, Debian "Lenny"
Raspbian "Jessie" on RPi2
SPARC OpenSXCE 2014 (approx. Solaris 11)
SPARC Linux, Debian "Squeeze"
x86 linux, Debian "Lenny" and "Jessie"
x86_64 linux, Debian "Jessie"


Impressive. :)


Thanks, I try to exercise things on a fairly regular basis. Help 
probably won't work on SPARC and PPC Linux due to issue 22696 (FPC), and 
there might be one unit excluded from Solaris which would be useful... 
I'll check this.



[...]
An annoyance affecting all platforms above is that the timeout in the 
"Configure Lazarus IDE" -> "Compiler" box is impossibly fast, if the 
default isn't right about the only way to use it is to paste a prepared 
name.


What timeout?


After the compiler name has been changed by the addition or removal of a 
single character, it goes and checks whether the filename is now valid. 
The timeout here is something like 10th sec, and displays a dialogue if 
the name is bad. The FPC sources etc. fields are OK, but this one will 
cause problems for anybody trying to use multiple compilers by 
specifying e.g. ppcppc-3.0.0 rather than just fpc (there's nowhere to 
put in a -V option which could be picked up by fpc).


I noticed that one a few months ago but assumed somebody else was aware: 
I know, there's no need to tell me.


Slightly more serious from my POV is that a project that created a form 
early to set up a configuration file from a template is now giving 
problems on all tested platforms. I'm assuming that 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-A-change-in-LCL-require-your-TCustomForm-descendants-to-have-a-resource-or-to-use-a-CreateNer-td2402646.html 
is relevant, but at present am struggling.


This is a pretty old change.


Yes, but has only now become mandatory.


Simply use CreateNew instead of Create.


I haven't had any success with that yet, but started from a position of 
suspecting that the problems I was seeing were platform-specific, it was 
quite a while before I found that some systems worked because they 
already had the configuration file that was being created.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus 1.6 and QuestionDLG

2015-12-20 Thread Jürgen Hestermann


Am 2015-12-19 um 16:34 schrieb Mattias Gaertner:
> On Sat, 19 Dec 2015 11:17:26 +0100 Jürgen Hestermann 
 wrote:
>> Can the result be mcCancel even when it's not part
>> of the parameter list of the QuestionDlg function?
> Yes. Many widgetsets support an Escape key and/or have a close button.
> That's why there is the 'IsCancel' option to redirect the cancel
> to a button of your choice.

I just had a look at this
http://wiki.freepascal.org/Dialog_Examples#QuestionDlg
but I can't find any mentioning of 'IsCancel'.

It also says:
"If the user cancels the dialog, be sure to check the result! In the above code, the 
result on cancelling the original dialog will be mrNo."
That seems to be wrong if the result is always mrCancel.


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus compile project via ssh?

2015-12-20 Thread Anthony Walter
Thanks everyone for your replies.

Regarding cross compilation, my code contains a sections linking to the
broadcom driver and several other files (a whole slew of different vchi
modules), which in turns links to many other files. For cross compile to
work I would need to find all the required libs and static files (*.a) file
upon which they depend to cross compile. And for the static libs link order
needs to be preserved (
http://stackoverflow.com/questions/45135/why-does-the-order-in-which-libraries-are-linked-sometimes-cause-errors-in-gcc)
or compilation fails. On the Pi I use a have config program (provided by
broadcom) in an ifdef withing my Pi's fpc.cfg. The config program
dynamically generates settings for the gnu ld command to produce the
correct static lib order.

Rather than trying to solve these types of linking issues (not to mention
the generating the correct hard float cross compiler) on my desktop PC, I
thought my current workflow was easier a lot easier.

Also, the ssh method for me has the added benefit of allowing me to execute
my Pi program from a terminal on my desktop PC, and see the results in that
terminal as the Pi brings up a full screen UI on another monitor. See this
video taken from another developer ->
https://www.youtube.com/watch?v=GhWs_3_SuW0 .The difference my case is that
I've written code to control a fullscreen Pi app through the ssh terminal,
while on the Pi the terminal is not visible/accessible.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Lazarus 1.6 RC1: IDE, watch list, DEL key does nothing if language=german

2015-12-20 Thread Jürgen Hestermann

Within Lazarus 1.6 RC1 I can not delete an entry from the watch list
with the DEL key when I use german language settings.
When I switch to english it works okay.



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus compile project via ssh?

2015-12-20 Thread Martin Schreiber
On Sunday 20 December 2015 08:59:35 Anthony Walter wrote:
> I am wondering, is it possible to configure Lazarus to compile a project on
> a remote computer running a different platform/architecture through ssh?
>
> I've been doing Lazarus development on Linux on a quad core amd64 desktop
> PC for a while now and it feels comfortable. But I do have a few arm6/7
> Raspberry Pi computers with FPC/Lazarus as well.
>
I successfully use cross-compiling and remote debugging from x86 Linux to 
Raspberry Pi. MSEide has project templates for that purpose in 
apps/ide/templates/crossarm*.prj, please see README.TXT.
http://mseide-msegui.sourceforge.net/pics/crossarm.png

It is probably possible to setup Lazarus to to the same.

The cross-compiling environment is here:
http://sourceforge.net/projects/mseide-msegui/files/fpcrossarm/

Martin

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus compile project via ssh?

2015-12-20 Thread Mark Morgan Lloyd

Martin Schreiber wrote:


Generally works well, provided that the desktop machine's X11 server
fully supports the primitives expected by the target machine's widget set.

I use remote debugging by gdbserver running on Raspberry Pi. The target uses 
the Rpi X11 server, so one needs to see the Rpi screen and reach the target 
keyboard and mouse in order to debug a graphical application with this setup.


As one gets older, not having to reach out to an extra keyboard or 
swivel to concentrate on an extra screen becomes a blessing. Trust me.


Until recently, one could debug many embedded systems using a serial 
(RS232) connection: Logitech did good work on this. These days, one can 
debug many using telnet or SSH. In either of these cases, debugging 
sessions can appear in a window on ones main screen: I certainly hope 
that my days of having to do a Rick Wakeman impersonation, with two 
computers and a Tektronix logic analyser, are past.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus compile project via ssh?

2015-12-20 Thread Mattias Gaertner
On Sun, 20 Dec 2015 02:59:35 -0500
Anthony Walter  wrote:

>[...]
> This leads me to think, shouldn't it be possible to skip the ssh terminal
> command line compiler, and instead configure Lazarus to use an ssh to
> compile "fpc test.pas" on the Pi for me? Through shh the build results
> would go to the Lazarus message window highlighting and lines with errors
> in the text editor on my desktop PC?

You can use cross compiling as Martin wrote or you can call fpc
remotely.

Both machines must use the same paths. For example remote host
has a folder /home/user/pascal, containing FPC, Lazarus and your
projects. Then mount that directory via sshfs in your local host at
the same path /home/user/pascal.
Create a script to call FPC on the remote host. For example:

remotefpc.sh:

#!/bin/bash
ssh user@host cd "$(pwd);" /usr/bin/fpc $@

Test it :
./remotefpc.sh -v
./remotefpc.sh someunit.pas

When this works put "/path/to/remotefpc.sh" in Project / Project
Options / Compiler Options / Compiler Commands / Compiler instead of
the default "$(CompPath)".


Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] About bug tracker system

2015-12-20 Thread FreeMan

Hello,
In bug tracker web site, Product version is still " 1.5 (SVN) " is this 
true ? or has to be 1.7 (SVN) ?


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus 1.6 and QuestionDLG

2015-12-20 Thread Ondrej Pokorny

On 20.12.2015 17:51, Jürgen Hestermann wrote:
> Writing a documentation for features in development is not very 
reasonable.


Realy?
I thought that it is very important to document the *intended*
behaviour somewhere before (or at least while) coding it
so that everybody knows how things *should* work and
can distinguish bugs from features.
Without documentation every bug becomes an intended behaviour.


Yes, that's true. But you have to understand that a scope of some days 
between bug fixing and documenting should be tolerable.



On 20.12.2015 17:51, Jürgen Hestermann wrote:

> Always look for documentation in trunk or the fixes branch.

Where do I find it?
I use official (pre) releases only.


You find the documentation if you keep your mouse on the identifier in 
the source code in the official (pre) releases. 
http://lazarus-ccr.sourceforge.net/docs/lcl/dialogs/questiondlg.html is 
generated from the same source.



On 20.12.2015 17:51, Jürgen Hestermann wrote:
> It is told to be updated with new stable versions so now it should 
reflect 1.4.

> Of course you don't find the latest features there.

Okay, so the main reason for my problems is that I did not wait until the
official release of Lazarus 1.6. I thought that RC1 should already be 
stable


RCs are not stable :(



and wanted to help with testing (expecting only minor bugs only).
But it seems that was not a good idea.


On the contrary! It was a great idea and you pointed us/me to the fact 
that there is information missing. Please test RCs in the future as 
well. Thanks to you, it will be fixed for the 1.6 stable.



On 20.12.2015 17:51, Jürgen Hestermann wrote:
> As latest, you have the source code, so you can check it as well - 
that usually is better than any documentation.


You cannot mean this seriously, do you?
You mean I should wade through *all* the
lines of code and understand each and every
line to discover new features and how they work?


Yes, I mean this seriously. You don't have to go through all the code, 
just the code that doesn't work as you expect. I do the same - if there 
is something I don't understand or it behaves differently from the docs, 
I look into the code and check why.


Ondrej

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus 1.6 and QuestionDLG

2015-12-20 Thread Michael Van Canneyt



On Sun, 20 Dec 2015, Ondrej Pokorny wrote:


You cannot mean this seriously, do you?
You mean I should wade through *all* the
lines of code and understand each and every
line to discover new features and how they work?


Yes, I mean this seriously. You don't have to go through all the code, just 
the code that doesn't work as you expect. I do the same - if there is 
something I don't understand or it behaves differently from the docs, I look 
into the code and check why.


That is why I only ever use components that come with source code.
The source is always the best reference for anything.

Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus 1.6 and QuestionDLG

2015-12-20 Thread Ondrej Pokorny

On 20.12.2015 17:51, Jürgen Hestermann wrote:

Where do I find it?
I use official (pre) releases only.


Btw. if you read 
http://wiki.lazarus.freepascal.org/Lazarus_1.6.0_release_notes , you 
find this information there:


 * Added 'iscancel' parameter to QuestionDlg. If no cancel button is
   explicitely set, mrCancel is returned in case the dialog is closed
   with ESC or system close button.

I added it there on Dec 14th 2015...

Ondrej

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus 1.6 and QuestionDLG

2015-12-20 Thread Jürgen Hestermann

Am 2015-12-20 um 13:41 schrieb Ondrej Pokorny:
> It's a feature from trunk added by me on Dec 13th 2015 and it is documented 
in trunk (although with some delay).
> I also merged it to 1.6 branch on Dec 14th 2015. Don't get me wrong - I don't 
want to be offensive but I expect
> everybody asking for bug fixes to check the trunk/fixes_1_6 SVN changes. You 
cannot see the implementation details otherwise.

I did not even know that 'iscancel' is a bug fix.
I thought it existed in version 1.4 too.


> You have to understand that new features in trunk are being developed and so 
they can change.

How do I know what are new features?
I just upgraded from Lazarus 1.4 to Lazarus 1.6 RC1
not knowing that the latter is just a development version.
I never use(d) trunk versions.


> Writing a documentation for features in development is not very reasonable.

Realy?
I thought that it is very important to document the *intended*
behaviour somewhere before (or at least while) coding it
so that everybody knows how things *should* work and
can distinguish bugs from features.
Without documentation every bug becomes an intended behaviour.


> Always look for documentation in trunk or the fixes branch.

Where do I find it?
I use official (pre) releases only.


> It is told to be updated with new stable versions so now it should reflect 
1.4.
> Of course you don't find the latest features there.

Okay, so the main reason for my problems is that I did not wait until the
official release of Lazarus 1.6. I thought that RC1 should already be stable
and wanted to help with testing (expecting only minor bugs only).
But it seems that was not a good idea.


> As latest, you have the source code, so you can check it as well - that 
usually is better than any documentation.

You cannot mean this seriously, do you?
You mean I should wade through *all* the
lines of code and understand each and every
line to discover new features and how they work?
Otherwise I would not have known that 'iscancel' was added recently.
There could be changes in many other functions too.

What if there is a bug?
When looking at the code I would consider this bug
to be an intended behaviour and rely on it (until it
gets fixed and bytes me back).

Not a good advice IMO.


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus