Re: [Lazarus] Opening non existing files and (not) adding them to the project

2016-01-17 Thread Sven Barth
Am 17.01.2016 20:36 schrieb "ListMember" : > > On 2016-01-17 16:30, Sven Barth wrote: >> >> when I opened a non-existing file and I confirmed that I want to have it created the file was not added to project or the project's mainfile. > > > But, isn't this how Delphi has been doing it all these year

Re: [Lazarus] Opening non existing files and (not) adding them to the project

2016-01-17 Thread Sven Barth
Am 17.01.2016 22:35 schrieb "Juha Manninen" : > > On Sun, Jan 17, 2016 at 4:30 PM, Sven Barth wrote: > > Back in 1.4.x when I opened a non-existing file and I confirmed that I want > > to have it created the file was not added to project or the project's mainfile. > > [...] > > Now with 1.6RC2 I n

Re: [Lazarus] Docking search results

2016-01-17 Thread Sven Barth
Am 17.01.2016 20:17 schrieb "Ondrej Pokorny" : > > On 17.01.2016 19:29, Juha Manninen wrote: >> >> It is opened if it was left open when Lazarus was closed previously. > > > No, it is not. It is opened if you saved your desktop with search result dialog opened. If you saved your desktop with search

Re: [Lazarus] Docking search results

2016-01-17 Thread Sven Barth
Am 17.01.2016 19:29 schrieb "Juha Manninen" : > @Sven: > > Ah, thanks. Will the reversal also be part of the final 1.6? > > Yes. It didn't make it to RC2 unfortunately. Ok, thanks :) Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepa

Re: [Lazarus] Testing Unicode and Windows system codepage in Lazarus 1.6

2016-01-17 Thread Jürgen Hestermann
Am 2016-01-17 um 19:48 schrieb Juha Manninen: > Jürgen and taazz, ... > The wiki page explaining it > should be improved and maintained by people who actually use the > system which means Jürgen, taazz, michl and others. Now that is cynical! Telling those who do not know anything about what has b

Re: [Lazarus] Web vs desktop development

2016-01-17 Thread Graeme Geldenhuys
On 2016-01-16 12:56, Jürgen Hestermann wrote: > But todays web pages use scripting more and more (which I mostly block > with NoScript). In this case I would download and run code with each and > every click. In terms of security this is a nightmare! +1 The other day I disabled Javascript in my

Re: [Lazarus] Web vs desktop development

2016-01-17 Thread Graeme Geldenhuys
On 2016-01-15 19:15, Anthony Walter wrote: > Installing software on Windows has gotten so bad > with so many download sites or software producers bundling adware, or even > spyway and malware. When I still used Windows, I *never* installed software from general download sites (eg: CNet, Softpedia,

Re: [Lazarus] Can I build a Lazarus GUI program only with fpc installed?

2016-01-17 Thread Graeme Geldenhuys
On 2016-01-17 08:09, Bo Berglund wrote: > If I install only fpc is it then possible to build a GUI program from > sources without also installing Lazarus (on Linux target)? Of course it is - as long as you have all the dependencies installed too, and if you application is LCL based, you obviously

Re: [Lazarus] Web vs desktop development

2016-01-17 Thread Graeme Geldenhuys
On 2016-01-17 09:03, ListMember wrote: > Elevate Web Builder seems to fit your > definition of "proper". > > Have you looked at it? I've heard of it, but never looked at it. Somehow I've been pretty "lucky" [wink] to avoid most things related to web development (Javascript, AJAX, etc). I do lik

Re: [Lazarus] New menu designer

2016-01-17 Thread Maxim Ganetsky
16.01.2016 1:19, Howard пишет: I have submitted a patch (29411) which I hope addresses these issues, except for the issue: 'String "composing" is still present ... in main menu creation form in "add menu item" fields captions' I am not clear about which string(s) you are identifying here. Can yo

Re: [Lazarus] Opening non existing files and (not) adding them to the project

2016-01-17 Thread Bart
On 1/17/16, Juha Manninen wrote: > You cannot open a non-existing file, meaning that you cannot use the > File -> Open dialog for it. Yes tou can! Lazarus 1.7 r51253 FPC 3.0.0 i386-win32-win32/win64 Bart -- ___ Lazarus mailing list Lazarus@lists.laza

Re: [Lazarus] Opening non existing files and (not) adding them to the project

2016-01-17 Thread Mattias Gaertner
On Sun, 17 Jan 2016 23:34:58 +0200 Juha Manninen wrote: >[...] > You cannot open a non-existing file, meaning that you cannot use the > File -> Open dialog for it. There is now a "FileMustExist" or similar > flag. I remember it fixed some bug but don't remember which one. That would be a regress

Re: [Lazarus] Opening non existing files and (not) adding them to the project

2016-01-17 Thread Juha Manninen
On Sun, Jan 17, 2016 at 4:30 PM, Sven Barth wrote: > Back in 1.4.x when I opened a non-existing file and I confirmed that I want > to have it created the file was not added to project or the project's > mainfile. > [...] > Now with 1.6RC2 I noticed that such files are added to the uses clause of

Re: [Lazarus] Docking search results

2016-01-17 Thread Anthony Walter
I agree with Ondrej. I will be always be using docking using both anchor docking and the docked designer. I suspect most others people will as well, given that they're available and function correctly. Personally, I prefer to have the message window and search results docked at the bottom all the t

Re: [Lazarus] Opening non existing files and (not) adding them to the project

2016-01-17 Thread ListMember
On 2016-01-17 16:30, Sven Barth wrote: when I opened a non-existing file and I confirmed that I want to have it created the file was not added to project or the project's mainfile. But, isn't this how Delphi has been doing it all these years. 1) When you create a new unit, it automatically ge

Re: [Lazarus] Docking search results

2016-01-17 Thread Ondrej Pokorny
On 17.01.2016 19:29, Juha Manninen wrote: It is opened if it was left open when Lazarus was closed previously. No, it is not. It is opened if you saved your desktop with search result dialog opened. If you saved your desktop with search result dialog closed, it won't be opened. If you have en

Re: [Lazarus] Docking search results

2016-01-17 Thread Ondrej Pokorny
On 17.01.2016 19:09, Sven Barth wrote: > http://mantis.freepascal.org/view.php?id=29320 Ah, thanks. Will the reversal also be part of the final 1.6? For that there is another link :) http://wiki.freepascal.org/Lazarus_1.6_fixes_branch#Merged_revisions_for_1.6_RC2 (IIRC, the link is also in

Re: [Lazarus] Testing Unicode and Windows system codepage in Lazarus 1.6

2016-01-17 Thread Juha Manninen
Jürgen and taazz, The DisableUTF8RTL system indeed is a fall-back for people who cannot use the new improved UTF-8 system. The automatic encoding conversion may do tricks when you still must do explicit conversion to/from UTF-8 using the old clumsy functions. I don't know about all the issues invol

Re: [Lazarus] New menu designer

2016-01-17 Thread Howard
On 17/01/2016 18:40, Péter Gábor wrote: I think we can use one resourcestring ('') instead of three: ''; ''; ''; Yes or No? Yes, I agree with you. Howard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepas

Re: [Lazarus] New menu designer

2016-01-17 Thread Péter Gábor
I think we can use one resourcestring ('') instead of three: ''; ''; ''; Yes or No? 2016-01-17 17:33 keltezéssel, Péter Gábor írta: > > 2016-01-17 14:00 keltezéssel, Juha Manninen írta: >> There is a patch from Howard: >> http://bugs.freepascal.org/view.php?id=29411 > > I did not notice it

Re: [Lazarus] New menu designer

2016-01-17 Thread Howard
On 17/01/2016 13:00, Juha Manninen wrote: ... Howard, for curiosity, your patch has: LCLVersion = '1.6.0.2' The menu editor is developed in trunk 1.7. Are you using a fixex_1_6 version for editing? Juha Yes, the code I worked on was the latest trunk (well perhaps it was from the day before).

Re: [Lazarus] New menu designer

2016-01-17 Thread Howard
On 17/01/2016 12:33, Péter Gábor wrote: I found some Format calls that seems to be unneded: the first parameter for them contains only formatting symbols and the second an array of resourcestrings. If no one else is currently working on the resourcestrings issue I will try to finish my patch and

Re: [Lazarus] Docking search results

2016-01-17 Thread Juha Manninen
On Sun, Jan 17, 2016 at 6:58 PM, Ondrej Pokorny wrote: > For me the search result dialog isn't initially opened in the undocked IDE. > Tested on Windows/win32. It is opened if it was left open when Lazarus was closed previously. The nature of that window is such that I want to see it only after a

Re: [Lazarus] MouseAndKeyInput package and scroll up/down with whell button

2016-01-17 Thread silvioprog
On Sun, Jan 17, 2016 at 12:37 AM, silvioprog wrote: [...] > So, I think that MouseAndKeyInput package should implement the scroll > support (triggered via up/down whell button). > Patch sent to: http://bugs.freepascal.org/view.php?id=29437. -- Silvio Clécio -- _

Re: [Lazarus] Opening non existing files and (not) adding them to the project

2016-01-17 Thread Sven Barth
Am 17.01.2016 18:22 schrieb "Bart" : > > On 1/17/16, Sven Barth wrote: > > > Is there some option I have missed to change this behavior? Because not > > only meeses this up the compiler project, but CodeTools don't like it as > > well as the files I add this way are usually program files, thus the

Re: [Lazarus] Docking search results

2016-01-17 Thread Sven Barth
Am 17.01.2016 17:43 schrieb "Ondrej Pokorny" : > > On 17.01.2016 16:46, Sven Barth wrote: >> >> Another thing I noticed in 1.6RC2: I can't dock the search results window anymore. Does anyone know whether this is on purpose and if yes why? > > > http://mantis.freepascal.org/view.php?id=29320 Ah, th

Re: [Lazarus] Testing Unicode and Windows system codepage in Lazarus 1.6

2016-01-17 Thread Bart
On 1/17/16, Jürgen Hestermann wrote: > But as one example, since FPC 3.0 you cannot use UTF8Delete on UTF8Strings > anymore. Already fixed in trunk (r50850 and r50910) and merged into 1.6RC2. Please stop complaing about things that were already fixed. Bart. -- _

Re: [Lazarus] Opening non existing files and (not) adding them to the project

2016-01-17 Thread Bart
On 1/17/16, Sven Barth wrote: > Is there some option I have missed to change this behavior? Because not > only meeses this up the compiler project, but CodeTools don't like it as > well as the files I add this way are usually program files, thus they > shouldn't be in the uses section anyway. Od

Re: [Lazarus] Testing Unicode and Windows system codepage in Lazarus 1.6

2016-01-17 Thread Jürgen Hestermann
Am 2016-01-17 um 15:19 schrieb Juha Manninen: > I don't understand how DisableUTF8RTL bombs your system because it is > the backwards compatible thing. > If your system worked with FPC 2.6.4, it should work with FPC 3.0 + > DisableUTF8RTL. Yes, you are right. DisableUTF8RTL resets *some* of the c

Re: [Lazarus] FileExistsUTF8 and long paths

2016-01-17 Thread Bart
On 1/17/16, Jürgen Hestermann wrote: > Yes, that's true. > Additional checks (i.e. for dots) are needed > but I think it should be possible to find out > when a path is: > > 1. not relative and Yes. > 2. without forward slashes and But then the function would not act on \\?\C:\maxpathchars\foo

Re: [Lazarus] Docking search results

2016-01-17 Thread Ondrej Pokorny
On 17.01.2016 17:43, Ondrej Pokorny wrote: On 17.01.2016 16:46, Sven Barth wrote: Another thing I noticed in 1.6RC2: I can't dock the search results window anymore. Does anyone know whether this is on purpose and if yes why? http://mantis.freepascal.org/view.php?id=29320 Btw, Juha as an ans

Re: [Lazarus] FileExistsUTF8 and long paths

2016-01-17 Thread Bart
On 1/17/16, Bart wrote: > include direcory Read: "include directive" Bart -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Docking search results

2016-01-17 Thread Ondrej Pokorny
On 17.01.2016 16:46, Sven Barth wrote: Another thing I noticed in 1.6RC2: I can't dock the search results window anymore. Does anyone know whether this is on purpose and if yes why? http://mantis.freepascal.org/view.php?id=29320 Ondrej -- ___ Lazar

Re: [Lazarus] FileExistsUTF8 and long paths

2016-01-17 Thread Bart
On 1/17/16, Jürgen Hestermann wrote: > BTW: > The following code in ExpandFileNameUtf8 seems to be not quite correct: > > if (Length(Fn) > 3) and (Fn[1] = PathDelim) and (Fn[2] = PathDelim) and > (Fn[3] = '?') and (Fn[4] = PathDelim) //Do NOT use > AllowDirectorySeparators here! > th

Re: [Lazarus] New menu designer

2016-01-17 Thread Péter Gábor
2016-01-17 14:00 keltezéssel, Juha Manninen írta: > There is a patch from Howard: > http://bugs.freepascal.org/view.php?id=29411 I did not notice it yet. > Péter, can you please look at it and maybe attach your improved patch > to the same report. Okay, now I'm working on it... -- Péter Gáb

Re: [Lazarus] FileExistsUTF8 and long paths

2016-01-17 Thread Jürgen Hestermann
Am 2016-01-17 um 15:39 schrieb Bart: >> > AFACS it cannot be resolved/fixed in a manner that will not break >> > backwards compatibility. >> I think it is possible (see above). >> You only need to find out the exact limitations and detect them before >> adding \\?\ > Only if we decide to _always

Re: [Lazarus] FileExistsUTF8 and long paths

2016-01-17 Thread Bart
On 1/17/16, Jürgen Hestermann wrote: > How does the comment bring any new facts to the discussion? > It just repeats the text you wrote before. > I expected more information in the comment which I did not find. We seem to misunderstand eachther, or at least I do so. Bart -- ___

Re: [Lazarus] FileExistsUTF8 and long paths

2016-01-17 Thread Jürgen Hestermann
Am 2016-01-17 um 15:25 schrieb Bart: > Quoted from the link: > "To specify an extended-length path, use the "\\?\" prefix. For > example, "\\?\D:\very long path"." > Maybe you need new eyes, not new glasses ;-) I know the Windows API specification very well. But you seem to forget the original t

[Lazarus] Docking search results

2016-01-17 Thread Sven Barth
Helle together! Another thing I noticed in 1.6RC2: I can't dock the search results window anymore. Does anyone know whether this is on purpose and if yes why? Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.la

Re: [Lazarus] Raspberry Pi bundles now available

2016-01-17 Thread Dennis
Bo Berglund wrote: Second posting of this, first one seems to have disappeared... On Sun, 6 Dec 2015 22:18:09 -0500, Anthony Walter wrote: Another, possibly more useful bundle I've created is Free Pascal 3.0 with Lazarus for the Raspberry Pi. I've taken great care to reduce the install size

Re: [Lazarus] FileExistsUTF8 and long paths

2016-01-17 Thread Bart
On 1/17/16, Jürgen Hestermann wrote: > > AFACS it cannot be resolved/fixed in a manner that will not break > > backwards compatibility. > > I think it is possible (see above). > You only need to find out the exact limitations and detect them before > adding \\?\ Only if we decide to _always_ t

[Lazarus] Opening non existing files and (not) adding them to the project

2016-01-17 Thread Sven Barth
Hello together! Working with 1.6RC2 I noticed a - for me - very serious problem and wonder whether I've missed some option. Back in 1.4.x when I opened a non-existing file and I confirmed that I want to have it created the file was not added to project or the project's mainfile. This is wonderful

Re: [Lazarus] FileExistsUTF8 and long paths

2016-01-17 Thread Bart
On 1/17/16, Sven Barth wrote: > > You know that you could just have written a program that uses the *W API to > delete files with a \\?\ prefixed path? ;) I did that, and id did not work. Probably because I did something wrong. To be honest, I then removed the file using a linux live dvd, at a

Re: [Lazarus] FileExistsUTF8 and long paths

2016-01-17 Thread Bart
On 1/17/16, Jürgen Hestermann wrote: > >> I did not find any comments that mentions long paths > > You need new glasses then ;-) > > === code == > > //if Filename uses ExtendedLengthPath scheme then it cannot be expanded > > //AND it should not be altered by ForcePathDelims or ResolveDot

Re: [Lazarus] Testing Unicode and Windows system codepage in Lazarus 1.6

2016-01-17 Thread Juha Manninen
On Sun, Jan 17, 2016 at 2:54 PM, Jürgen Hestermann wrote: > You may have a false impression of how Free Pascal/Lazarus is used by most > people. > At least I did not wait until the current version to use Unicode (and long > paths) > for file names and others. I think many did so. > Therefore we ha

Re: [Lazarus] FileExistsUTF8 and long paths

2016-01-17 Thread Sven Barth
Am 17.01.2016 12:42 schrieb "Bart" : > In the end I used a bootable linux dvd (puppy linux), mounted the > partition in question and used the filemanger from that distro to > remove the folder and file. You know that you could just have written a program that uses the *W API to delete files with a

Re: [Lazarus] FileExistsUTF8 and long paths

2016-01-17 Thread Sven Barth
Am 17.01.2016 14:23 schrieb "Jürgen Hestermann" : > >> I did not find any comments that mentions long paths > > You need new glasses then ;-) > > === code == > > //if Filename uses ExtendedLengthPath scheme then it cannot be expanded > > //AND it should not be altered by ForcePathDelims or Reso

Re: [Lazarus] FileExistsUTF8 and long paths

2016-01-17 Thread Jürgen Hestermann
Am 2016-01-17 um 14:23 schrieb Jürgen Hestermann: > Additional checks (i.e. for dots) are needed > but I think it should be possible to find out > when a path is: > 1. not relative and > 2. without forward slashes and > 3. too long to be resolved without prepended \\?\ Even better would be to do

Re: [Lazarus] FileExistsUTF8 and long paths

2016-01-17 Thread Jürgen Hestermann
Am 2016-01-17 um 12:42 schrieb Bart: > On 1/16/16, Jürgen Hestermann wrote: >> Well, at least when the path is too long (length(FileName>MAXPATH)) >> it can prepend \\?\ because it will fail without it anyway. > That won't do for the same reasons as explained above. > Say you have a directory: c:

Re: [Lazarus] Building GUI program for RPi1 on RPi2?

2016-01-17 Thread Bo Berglund
On Sat, 16 Jan 2016 13:45:26 +, Mark Morgan Lloyd wrote: >So in my opinion using an older RPi is a false economy here. You are absolutely correct! I bit the bullet today and bought an RPi2B instead and within short I was in business with the already compiled program running well and I coul

Re: [Lazarus] New menu designer

2016-01-17 Thread Juha Manninen
On Sun, Jan 17, 2016 at 2:33 PM, Péter Gábor wrote: > If no one else is currently working on the resourcestrings issue I will > try to finish my patch and post it on mantis... > This is more simpler than writing a lot of letter about what and how to > fix to be translation friendly. > > Do you agr

Re: [Lazarus] Testing Unicode and Windows system codepage in Lazarus 1.6

2016-01-17 Thread Jürgen Hestermann
Am 2016-01-17 um 12:34 schrieb Juha Manninen: > LCL continues to work as before when you define "DisableUTF8RTL". Then > AnsiString is coded with the system codepage by default. The UTF-8 > conversion functions still work. You may have a false impression of how Free Pascal/Lazarus is used by most

Re: [Lazarus] New menu designer

2016-01-17 Thread Péter Gábor
I found some Format calls that seems to be unneded: the first parameter for them contains only formatting symbols and the second an array of resourcestrings. If no one else is currently working on the resourcestrings issue I will try to finish my patch and post it on mantis... This is more simpler

Re: [Lazarus] New menu designer. which style do you prefer?

2016-01-17 Thread Juha Manninen
On Sun, Jan 17, 2016 at 1:11 AM, Howard wrote: > You'll realise I'm on a learning curve. This is my first significant code > contribution to an open source project. I actually never thought I had the > skill to offer a new menueditor. It was a forum comment by the late > BigChimp some years ago a

Re: [Lazarus] Web vs desktop development

2016-01-17 Thread Michael Van Canneyt
On Sun, 17 Jan 2016, ListMember wrote: On 2016-01-17 12:04, Michael Van Canneyt wrote: On Sun, 17 Jan 2016, ListMember wrote: Though not free or open source, Elevate Web Builder seems to fit your definition of "proper". Or http://smartmobilestudio.com/ Is also a good contender. I hadn

[Lazarus] IDE Coolbar and its default after updating

2016-01-17 Thread Sven Barth
Hello together! Today I updated my Lazarus from 1.4.4 to 1.6RC2 and while reporting some bugs (not specific to the RC2, but general ones), I noticed that the toolbar buttons ("open", "save", etc.) were missing. Thinking first that my docking settings were messed up again I checked those, but they

Re: [Lazarus] FileExistsUTF8 and long paths

2016-01-17 Thread Bart
On 1/16/16, Jürgen Hestermann wrote: > Well, at least when the path is too long (length(FileName>MAXPATH)) > it can prepend \\?\ because it will fail without it anyway. That won't do for the same reasons as explained above. Say you have a directory: c:\maxpathchars\1\2\3\ Now cehcking for ..\..\

[Lazarus] Testing Unicode and Windows system codepage in Lazarus 1.6

2016-01-17 Thread Juha Manninen
The RC1 and RC2 versions have been tested for a while now but we have not heard any complaints about the new improved Unicode support. Does that mean it works perfectly? Windows is of biggest interest. There the new UTF-8 support breaks existing code when it depends on system codepage. For that re

Re: [Lazarus] Web vs desktop development

2016-01-17 Thread ListMember
On 2016-01-17 12:04, Michael Van Canneyt wrote: On Sun, 17 Jan 2016, ListMember wrote: Though not free or open source, Elevate Web Builder seems to fit your definition of "proper". Or http://smartmobilestudio.com/ Is also a good contender. I hadn't heard of this one. http://www.morfik.c

Re: [Lazarus] Can I build a Lazarus GUI program only with fpc installed?

2016-01-17 Thread Anthony Walter
At a minimum for lcl graphics form applications you need the lcl and lazbuild installed, as well as a valid set of config files, all of which are included with Lazarus. If you want to build just using fpc, then you'll need to gather at least those pieces together, and the easiest way to do that is

[Lazarus] Video: Fixing anchor docking previews on OSX

2016-01-17 Thread Anthony Walter
Problem: On Macintosh the anchor docking system doesn't provide a preview window, making arranging docked layouts on OSX cumbersome to say the least. I think this issue is going to become more important as work progresses on anchor docking and the sparta docked form designer. Video detailing my so

Re: [Lazarus] Web vs desktop development

2016-01-17 Thread Michael Van Canneyt
On Sun, 17 Jan 2016, ListMember wrote: On 2016-01-17 03:10, Graeme Geldenhuys wrote: Consider me old school, or a traditionalist, but give me a "proper" programming language (Object Pascal and Java springs to mind), a compiler, debugger and desktop software. Though not free or open source,

Re: [Lazarus] Web vs desktop development

2016-01-17 Thread ListMember
On 2016-01-17 03:10, Graeme Geldenhuys wrote: Consider me old school, or a traditionalist, but give me a "proper" programming language (Object Pascal and Java springs to mind), a compiler, debugger and desktop software. Though not free or open source, Elevate Web Builder seems to fit your def

Re: [Lazarus] New menu designer. which style do you prefer?

2016-01-17 Thread Ondrej Pokorny
On 17.01.2016 0:11, Howard wrote: In this particular instance of deleting a submenu (not just a single item) my motivation was not to make it overly complicated (though I appreciate it may seem so). It is quite possible a user may have spent 10 minutes designing a submenu with half a dozen item

[Lazarus] Can I build a Lazarus GUI program only with fpc installed?

2016-01-17 Thread Bo Berglund
If I install only fpc is it then possible to build a GUI program from sources without also installing Lazarus (on Linux target)? Say that I have a simple GUI program that is imported in Lazarus from Delphi7 by using the import tool in Lazarus on a Linux platform. It builds and runs OK on that plat