Re: [Lazarus] Website/Mantis back online (colors)

2019-04-24 Thread Bart via lazarus
On Tue, Apr 23, 2019 at 11:00 PM Martin Frb via lazarus wrote: > If Bart agrees, .. ;-) I would vote for large contrast, especially for those who may have some degree of visual impediment. -- Bart -- ___ lazarus mailing list

Re: [Lazarus] Website/Mantis back online (colors)

2019-04-24 Thread Bart via lazarus
On Tue, Apr 23, 2019 at 11:59 PM Vojtěch Čihák via lazarus wrote: > original appearance on Wayback machine: > https://web.archive.org/web/20171104124226/https://bugs.freepascal.org/view_all_bug_page.php Colorscheme in those "ancient" days: New: #ffa0a0 Acknowledged: # ffd850 Confirmed: #

Re: [Lazarus] Website/Mantis back online

2019-04-24 Thread Bart via lazarus
On Wed, Apr 24, 2019 at 10:14 AM Werner Pamler via lazarus wrote: > > Yes, they are. > > I'm just reporter in fpc, but I can edit (and delete) my notes. > Seemingly not everybody: > https://forum.lazarus.freepascal.org/index.php/topic,45168.msg318748 As of today, as reporter, I cannot edit my

Re: [Lazarus] Website/Mantis back online

2019-04-20 Thread Bart via lazarus
On Sun, Apr 21, 2019 at 12:42 AM Martin Frb via lazarus wrote: > I can (if needs must) get used to the look. Maybe this would help? > https://github.com/mantisbt-plugins/MantisBT-Colorized Yes, I miss the colors. > What I find more disturbing is the new "my view" > The "Timeline" seems of

Re: [Lazarus] SynEdit.TextBetweenPoints (Martin?)

2019-08-10 Thread Bart via lazarus
Additionally, if you run this code on a SynEdit that has never had any text in it (e.i. create it at run time, Lines.Count will be zero), then SetTextBetweenPonits will NOT adjust BlockBegin and BlockEnd at all: they will remain (1,1) at all times. -- Bart --

Re: [Lazarus] SynEdit.TextBetweenPoints (Martin?)

2019-08-10 Thread Bart via lazarus
On Sat, Aug 10, 2019 at 10:52 PM Martin Frb via lazarus wrote: > The block pos is limited to existing lines. And if line 1 does not > exist. argh TSynEditSelection.SetStartLineBytePos should not allow values of X/Y < 1? -- Bart -- ___ lazarus

[Lazarus] SynEdit.TextBetweenPoints (Martin?)

2019-08-10 Thread Bart via lazarus
Hi, Consider this piece of code. On a form have a TSynEdit (named: Ed) and a TSpeedButton. procedure TForm1.SpeedButton1Click(Sender: TObject); var BB, BE: TPoint; BackwardsSel: Boolean; SelLength: Integer; const Pre = '{'; Post = '}'; begin writeln('==='); writeln;

Re: [Lazarus] SynEdit.TextBetweenPoints (Martin?)

2019-08-10 Thread Bart via lazarus
On Sat, Aug 10, 2019 at 9:09 PM Martin Frb via lazarus wrote: > I added 2 fixes (one for the other mail / empty edit). Please test. I think the fix for empty selection is allright. It will not completely solve my issue (the second SetTextBetweenPoints also moves BlockEnd), which makes sense I

Re: [Lazarus] SynEdit.TextBetweenPoints (Martin?)

2019-08-11 Thread Bart via lazarus
On Sun, Aug 11, 2019 at 12:46 AM Martin Frb via lazarus wrote: > This should be all you need. Caret, Selection and IsBackwardSel are all kept > ... > SetTextBetweenPoints(BB, BB, Pre, [setMoveBlock], scamAdjust, > smaMoveUp, smNormal); >// scamAdjust => Move the caret with the block. >

Re: [Lazarus] SynEdit.TextBetweenPoints (Martin?)

2019-08-11 Thread Bart via lazarus
Hi, In my real app I don't have persistent blocks, so that should not be a problem. > BlockBegin/BlockEnd are faster than SelStart/SelEnd. > BlockBegin/End and SetTextBetweenPoints are comparable. Speed is not of concern in my use case. The computer will always be faster than any human typing

Re: [Lazarus] SynEdit.TextBetweenPoints (Martin?)

2019-08-11 Thread Bart via lazarus
On Sun, Aug 11, 2019 at 4:33 PM Martin Frb via lazarus wrote: > SynEdit1.BeginUpdate(); / EndUpdate Thanks. Should have figured that out myself, shouldn't I ;-) -- Bart -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org

Re: [Lazarus] [fpc-pascal] Tests results of several pascal based JSON parsers

2019-08-30 Thread Bart via lazarus
On Fri, Aug 30, 2019 at 9:09 PM Bart wrote: > On Windows it prints FALSE, both with 3.0.4 and trunk r42348 It fails on both comparisons (hexadecimal representation of the returned unicodestrings): Name: 004A 006F 0065 003F 0053 0063 0068 006D 006F 0065 Expected: 004A 006F 0065 00AE 0053

Re: [Lazarus] [fpc-pascal] Tests results of several pascal based JSON parsers

2019-08-30 Thread Bart via lazarus
On Fri, Aug 30, 2019 at 4:04 PM Michael Van Canneyt via lazarus wrote: > No idea. I tested with both 3.0.4 and trunk. Both give the same result. > > Here are the sources I used: ... > I test on linux, but could try windows. On Windows it prints FALSE, both with 3.0.4 and trunk r42348 -- Bart

Re: [Lazarus] [fpc-pascal] Tests results of several pascal based JSON parsers

2019-08-31 Thread Bart via lazarus
On Fri, Aug 30, 2019 at 11:02 PM Michael Van Canneyt via lazarus wrote: > Can you try setting defaultsystemcodepage to UTF8 ? Feeling a little bit embarrassed now (I'm used to Lazarus which defaults to that). With DefaultSystemCodePage := CP_UTF8 it works: Handles unicode chars correctly: >{

Re: [Lazarus] TTaskDialog - correct ModalResult for "Close"?

2019-09-11 Thread Bart via lazarus
On Wed, Sep 11, 2019 at 9:31 PM Alexander Hofmann via lazarus wrote: > I won't dig further on the latter, but should I file a bug about the > Close/Abort thing? Yes, please do. -- Bart -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org

Re: [Lazarus] TTaskDialog - correct ModalResult for "Close"?

2019-09-12 Thread Bart via lazarus
On Wed, Sep 11, 2019 at 10:39 PM Bart wrote: > > I won't dig further on the latter, but should I file a bug about the > > Close/Abort thing? > > Yes, please do. Posted bugreport with possible patch: https://bugs.freepascal.org/view.php?id=36069 Maybe Zeljko or Juha can review the patch (I know

Re: [Lazarus] Best examples of cross platform visual file or folder search application?

2019-09-12 Thread Bart via lazarus
On Thu, Sep 12, 2019 at 8:01 PM Graeme Geldenhuys via lazarus wrote: > > On 22/08/2019 3:20 am, Anthony Walter via lazarus wrote: > > Can anyone tell me if there are any popular minimal programs which allow > > users to search for files or folders on their computer using wildcard >

Re: [Lazarus] TTaskDialog - correct ModalResult for "Close"?

2019-09-11 Thread Bart via lazarus
On Wed, Sep 11, 2019 at 9:46 AM Alexander Hofmann via lazarus wrote: > I am currently wondering how to interpret the ModalResult of TTaskDialog if > the Button "Close" was clicked. "Close" returns "mrAll" in windows and > "mrAbort" in Linux (GTK2) - is that intended? I somehow expected

Re: [Lazarus] TTaskDialog - correct ModalResult for "Close"?

2019-09-11 Thread Bart via lazarus
Pressing the Close button sets ButtonID correctly to 8, which is IDCLOSE (see LCLType unit), but mrClose equals to 11, so there it goes wrong. -- Bart -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org

Re: [Lazarus] TTaskDialog - correct ModalResult for "Close"?

2019-09-11 Thread Bart via lazarus
On Wed, Sep 11, 2019 at 1:53 PM Bart wrote: Possible fix: function TCustomTaskDialog.ButtonIDToModalResult(const AButtonID: Integer ): TModalResult; begin if AButtonID<100 then begin case AButtonID of IDOK: Result := mrOK; IDCANCEL: Result := mrCancel;

Re: [Lazarus] FileExistsUTF8() difference between Unix/Windows

2019-09-18 Thread Bart via lazarus
On Wed, Sep 18, 2019 at 9:01 PM Torsten Bonde Christiansen via lazarus wrote: > Is it a bug that FileExistsUTF8(...) reports true/false differently for > folders in Unix and Windows. Thet are just wrappers for fpc's FileExists() nowadays. -- Bart --

Re: [Lazarus] FileExistsUTF8() difference between Unix/Windows

2019-09-18 Thread Bart via lazarus
On Wed, Sep 18, 2019 at 11:26 PM Torsten Bonde Christiansen via lazarus wrote: > No entirely though. The Unix version is mostly a wrapper, yes - but the > Windows version do some additional filtering: > > function FileExistsUTF8(const Filename: string): boolean; > var >Attr: Longint; > begin

Re: [Lazarus] TTaskDialog - correct ModalResult for "Close"?

2019-09-11 Thread Bart via lazarus
On Wed, Sep 11, 2019 at 3:07 PM Alexander Hofmann via lazarus wrote: > I didn't check - but are the definitions of IDCLOSE different for Windows > and Linux? No, they are (unconditionally) defined in LCLType. -- Bart -- ___ lazarus mailing list

Re: [Lazarus] FileExistsUTF8() difference between Unix/Windows

2019-09-21 Thread Bart via lazarus
On Sat, Sep 21, 2019 at 7:15 PM Mattias Gaertner via lazarus wrote: > You are right. So the change is actually: FileExistsUT8 no longer > supports fpc 2.6.4. Right? I don't think Lazarus supports 2.6.4 anymore. "Officially" we support current stable and the previous stable version of fpc, so

Re: [Lazarus] Environment monitoring software on Linux?

2019-09-26 Thread Bart via lazarus
On Thu, Sep 26, 2019 at 11:16 PM Bo Berglund via lazarus wrote: > If the measure process takes longer than until the next cron > invocation due to some extra delays in that particular process, then I > don't want the new instance of the scheduler to start another task. > The reason is that the

Re: [Lazarus] Multi-platform console application, how to handle file paths?

2019-10-30 Thread Bart via lazarus
On Wed, Oct 30, 2019 at 11:42 AM Bo Berglund via lazarus wrote: > >Windows knows specials paths starting with '\\'. > > But I don't! :( > What is special with these? \\?\C:\foo\bar\..\.. is not the same path as C:\foo\bar\..\.. (which basically is C:\) If a path starts with \\?\ like above,

Re: [Lazarus] Feedback requested: File Search, a visual file search utility

2019-09-25 Thread Bart via lazarus
On Wed, Sep 25, 2019 at 7:33 AM Anthony Walter via lazarus wrote: > The File Search utility is a stand alone tool for Mac, Windows, and Linux to > search for files using a variety of criteria including containing text, file > size, > and file dates. First of all: NICE! You asked foor

Re: [Lazarus] Feedback requested: File Search, a visual file search utility

2019-09-25 Thread Bart via lazarus
On Wed, Sep 25, 2019 at 7:38 PM Bart wrote: > An alternative would be to use a TMaskList and use it's MatchesMaks > method (and search the folder with AllFilesMaks). As you can see, my fingers struggle with the keyboard ;-) Everywhere it says *maks, you should read *mask. -- Bart --

Re: [Lazarus] Feedback requested: File Search, a visual file search utility

2019-09-25 Thread Bart via lazarus
On Wed, Sep 25, 2019 at 7:51 PM Anthony Walter via lazarus wrote: > Thanks. I'll look into TMaskList. I assume you mean this bit of code? > > https://github.com/alrieckert/lazarus/blob/master/components/lazutils/masks.pas Yes, it's in the masks unit. Bart --

Re: [Lazarus] Freepascal/Lazarus forum and Lazarus website outage wrap-up

2020-02-12 Thread Bart via lazarus
On Wed, Feb 12, 2020 at 10:31 AM Marc Weustink via lazarus wrote: > > Now that everything seems to be normal, time for a wrap-up, what happened: Thank you very much. -- Bart -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org

Re: [Lazarus] spilling related accesviolation when rebuilding lazarus (extgraphics) with 3.3.1

2020-02-29 Thread Bart via lazarus
On Sat, Feb 29, 2020 at 2:31 PM Евгений Кадисов via lazarus wrote: > "No program file "/home/eugen/aux/lmarka/unit1" found". Can any one say what > is wrong? Please do not hijack someone elses thread. -- Bart -- ___ lazarus mailing list

[Lazarus] Probably RTFM question

2019-12-29 Thread Bart via lazarus
Hi, When I create a new unit (Menu->File->New Unit) Lazarus adds the unit to the uses clause of my .lpr. IIRC there was an option to make Lazarus NOT do this, but I can't find it. -- Bart -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org

Re: [Lazarus] Keyboard interpreted incorrectly?

2020-04-10 Thread Bart via lazarus
There is a bugreport about the m->newline issue somewhere. Bart -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] MatchesWindowsMask('[x]','[x]') return False

2020-03-15 Thread Bart via lazarus
On Sun, Mar 15, 2020 at 1:10 PM Rolf Wetjen via lazarus wrote: > I found this during some error analysis. '[[]x]' as a mask will match '[x]' as filename. So at least there is a workaround. -- Bart -- ___ lazarus mailing list

Re: [Lazarus] MatchesWindowsMask('[x]','[x]') return False

2020-03-15 Thread Bart via lazarus
On Sun, Mar 15, 2020 at 2:36 PM Bart wrote: > Somebody should test this behaviour against Delphi. PS. I can't since D7 (the only Delphi I have) doesn't have MatchesMask. -- Bart -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org

Re: [Lazarus] MatchesWindowsMask('[x]','[x]') return False

2020-03-15 Thread Bart via lazarus
On Sun, Mar 15, 2020 at 2:36 PM Bart wrote: > Somebody should test this behaviour against Delphi. I asked on the Dutch Delphi forum. -- Bart -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] MatchesWindowsMask('[x]','[x]') return False

2020-03-15 Thread Bart via lazarus
On Sun, Mar 15, 2020 at 8:23 PM Mattias Gaertner via lazarus wrote: > IMO it should check for \[ Using \ as an escape character isn't really a good choice IMO, since this function deals with filenames. I would be more inclined to have an option to disable sets in the mask. @Rolf: you can do a

Re: [Lazarus] Lazreport variables

2020-05-03 Thread Bart via lazarus
On Sun, May 3, 2020 at 6:03 PM Santiago A. via lazarus wrote: > I want to write a report where even lines are written with no background and > odd lines with a light gray background. A little bit out of the box thinking :-) You could add the lines to a TStringGrid (ColCount := 1) and set the

Re: [Lazarus] Lazreport variables

2020-05-03 Thread Bart via lazarus
On Sun, May 3, 2020 at 7:33 PM Santiago A. via lazarus wrote: > TStringGrid? It is a report using LazReport, What has TSringGrid to do > with LazReport? I have no experience with LazReport. You wrote you would make the report in a memo, I assumed you could do that in a TSTringGrid as well. It

Re: [Lazarus] Cross-platform using TRegistry - how to?

2020-05-04 Thread Bart via lazarus
On Mon, May 4, 2020 at 12:41 AM Bo Berglund via lazarus wrote: > structure: > HKLM\SOFTWARE\Companyname\Applicationname\Server\(named values) > HKLM\SOFTWARE\Companyname\Applicationname\Configuration\(named values) The *nix way is to use .conf files (basically ini-files) for that. IIRC you have

Re: [Lazarus] Lazarus/Zoom Conflict

2020-05-12 Thread Bart via lazarus
On Tue, May 12, 2020 at 6:59 AM Michael Van Canneyt via lazarus wrote: IIRC then recently a fix for that was finally applied to trunk. -- Bart -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] MatchesWindowsMask('[x]','[x]') return False

2020-03-19 Thread Bart via lazarus
On Thu, Mar 19, 2020 at 8:25 AM Rolf Wetjen via lazarus wrote: > seems that this isn't your favourite option. Without any context, I cannot comment on this. > Ok, what's about an additional TMask property to control the useage of > sets (default should be true for Delphi compatibility) and

Re: [Lazarus] MatchesWindowsMask('[x]','[x]') return False

2020-03-16 Thread Bart via lazarus
On Mon, Mar 16, 2020 at 1:07 AM Mattias Gaertner via lazarus wrote: > True. Since it exists only for Delphi compatibility it is better to > not change it. To be honest, we've already improved our implementation so it can treat the mask case-sensitve (Delphi doesn't have that option). It

Re: [Lazarus] MatchesWindowsMask('[x]','[x]') return False

2020-03-17 Thread Bart via lazarus
On Tue, Mar 17, 2020 at 8:17 AM Rolf Wetjen via lazarus wrote: > what's about to implement an additional completly new TMaskReg class > without sets but in addition with a regular expression option? Feel free to implement such a thing. However, if someone is familiar with RegEx's he/she

Re: [Lazarus] MatchesWindowsMask('[x]','[x]') return False

2020-03-19 Thread Bart via lazarus
On Thu, Mar 19, 2020 at 6:37 PM Bart wrote: > It's on my ToDo list (as long as other devels don't object to this. > I intend to have an Options property for that, with for now > moCaseSensitive and moDisableSets. Attached is a rough version of the intended patch. The MatchesMaskList() functions

Re: [Lazarus] MatchesWindowsMask('[x]','[x]') return False

2020-03-20 Thread Bart via lazarus
On Fri, Mar 20, 2020 at 9:12 AM Rolf Wetjen via lazarus wrote: > Same change in code as I used for my patch. > > So, yes: working. OK. I prefer the Options parameter over another Boolean, mainly because you never know if another use-case might raise the need for yet another parameter. --

Re: [Lazarus] MatchesWindowsMask('[x]','[x]') return False

2020-03-19 Thread Bart via lazarus
On Thu, Mar 19, 2020 at 10:40 PM Bart wrote: > Please test. By that I mean that MatchesMask('[x]','[x]',[moDisableSets]) should return True now. -- Bart -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org

Re: [Lazarus] MatchesWindowsMask('[x]','[x]') return False

2020-03-20 Thread Bart via lazarus
On Fri, Mar 20, 2020 at 10:47 AM Bart wrote: > I prefer the Options parameter over another Boolean, mainly because > you never know if another use-case might raise the need for yet > another parameter. Committed in r62782 -- Bart -- ___ lazarus

Re: [Lazarus] MatchesWindowsMask('[x]','[x]') return False

2020-03-21 Thread Bart via lazarus
On Sat, Mar 21, 2020 at 12:07 PM Rolf Wetjen via lazarus wrote: > Helloworld / He[lo]?orld - False The mask only caters for either Hel?world or Heo?world, so that is correct > Helloworld / He[lo]*orld - True The mask only caters for either Hel*world or Heo*world, so that is correct (the first

Re: [Lazarus] MatchesWindowsMask('[x]','[x]') return False

2020-03-16 Thread Bart via lazarus
On Mon, Mar 16, 2020 at 12:05 AM Mattias Gaertner via lazarus wrote: > I can't find MatchesWindowMask in Delphi 10.3. I found MatchesMask, > which works the same. It supports [] too and I can't find any other way > than [[]. I implemented that variation because MatchesMask treats wildcards like

Re: [Lazarus] JCF2 patch in trunk

2020-09-11 Thread Bart via lazarus
On Fri, Sep 11, 2020 at 12:15 PM Alexey Tor. via lazarus wrote: > if StartsText('{$include',pcToken.SourceCode)=true then >lPos:=10 > else if StartsStr('{$I',pcToken.SourceCode)=true then I really dislike this "if BooleanExpression=true" (or: "if BooleanExpression=false"). A

Re: [Lazarus] Keyboard mapping probelm

2020-05-29 Thread Bart via lazarus
On Fri, May 29, 2020 at 12:54 AM Brian via lazarus wrote: > The only difference in the compilation (that I know of) with > fpcupdeluxe is that it's using the trunk version of fpc as well as of > lazarus. Using fpc trunk i.c.m. lazarus trunk is a recipe for problems. Most of them will be fixed on

Re: [Lazarus] FileUtil.FindAllFiles - case-sensitive on Unix

2020-09-21 Thread Bart via lazarus
On Mon, Sep 21, 2020 at 12:12 AM AlexeyT via lazarus wrote: > Here we miss parameter "CaseSensitive=False". So on Linux it is False > and function does case-insens search. It is slower! Why not to add param > True for Unix. Not sure about macOS. Please discuss this further in the bugreport you

Re: [Lazarus] FileUtil.FindAllFiles - changes strings inside

2020-09-21 Thread Bart via lazarus
On Mon, Sep 21, 2020 at 12:19 AM AlexeyT via lazarus wrote: > you see that to iterate over all items in char-separated ASearchPath, > code modifies str, ie deletes parts of it. It's slow! We should not > modify str here. It's easy- save old-index, new-index, and get Copy(n1, > n2-n1{+delta}).

Re: [Lazarus] I use the Windows procedure WinExec() to open directries and files out of a lazarus application on a Windows box. I also use the same application in a Linux mint box. Is there a procedur

2020-10-26 Thread Bart via lazarus
On Mon, Oct 26, 2020 at 10:34 AM larrydalton71 via lazarus wrote: Is there anything wrong with TOpenDialog or TSelectDirectoryDialog? And what exactly does "open a file" mean in your situation (open it in your application, let windows open it in the default associated application, something

[Lazarus] WinCE widgetset implementation of TCustomListbox.SelectRange: testers needed.

2020-06-10 Thread Bart via lazarus
Hi, Can somebody please test the changes I made to the widgetset implementation of TCustomListBox.SelectRange for the WinCE widgetset in r63339. . It compiles and in theory it should work, but I cannot test this. Methods to test: TCustomListBox.SelectAll TCustomListBox.SelectRange, with ALow and

Re: [Lazarus] WinCE widgetset implementation of TCustomListbox.SelectRange: testers needed.

2020-06-11 Thread Bart via lazarus
On Thu, Jun 11, 2020 at 12:25 PM Sven Barth via lazarus wrote: > Had to dust off my old Windows Mobile phone for this and get Windows > Mobile Device Center working on Windows 10, but yes, it works as on > Windows. :) (boy, that took me back ^^') Thanks for testing and reporting back. AFAIK we

Re: [Lazarus] Cannot close Windows 10 application with a bkClose TBitBtn button...

2020-11-16 Thread Bart via lazarus
On Mon, Nov 16, 2020 at 11:43 AM Bo Berglund via lazarus wrote: > I create a new application and place a TBitBtn on a panel at the > bottom of the main form. I set the Kind property to bkClose. > > Now I expect the application to close when I click this button, like > it does on Delphi for the

Re: [Lazarus] Cannot close Windows 10 application with a bkClose TBitBtn button...

2020-11-16 Thread Bart via lazarus
On Mon, Nov 16, 2020 at 3:06 PM Bo Berglund via lazarus wrote: > But... > If I place for instance a ShowMessage() call in the OnClick event of > the button it DOES NOT show up! > And if I place a breakpoint there it too does not break. > > So somehow this business of setting the form transparent

Re: [Lazarus] Cannot close Windows 10 application with a bkClose TBitBtn button...

2020-11-16 Thread Bart via lazarus
On Mon, Nov 16, 2020 at 6:21 PM Bart wrote: Can you upload a basic example (1 form, 1 bitbutton) where you set the transparency of the form. Without actual code (also the lfm) it's hard to test. -- Bart -- ___ lazarus mailing list

Re: [Lazarus] Cannot close Windows 10 application with a bkClose TBitBtn button...

2020-11-16 Thread Bart via lazarus
On Mon, Nov 16, 2020 at 1:04 PM Bart wrote: > IIRC then having a button with a ModalResult on the application's main > form in Delphi does not close that form. I just tested (Delphi and Lazarus): a TBitButton with Lind = bkClose on the MainForm indeed closes the application. Furthermore, the

Re: [Lazarus] Lazarus totally destroyed... :(

2020-11-20 Thread Bart via lazarus
On Fri, Nov 20, 2020 at 1:09 PM Michael Van Canneyt via lazarus wrote: > > - The IDE does not handle missing ~/.lazarus any more. > > I tried using startlazarus, but this gives the same issue. > FWIW: I just did a make clean bigide on a fresh checkout and this all went OK. I stated Lazarus with

Re: [Lazarus] Default project ?

2020-11-18 Thread Bart via lazarus
On Wed, Nov 18, 2020 at 10:07 AM Michael Van Canneyt via lazarus wrote: > I'm curious: How can settings depend on a package for your program ? In debug buildmode I have -FaLazLogger,LCLExceptionStacktrace (compiler options->custom options). -- Bart --

Re: [Lazarus] Default project ?

2020-11-19 Thread Bart via lazarus
Can we now get back to the original question this thread was about? -- Bart -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Default project ?

2020-11-18 Thread Bart via lazarus
On Wed, Nov 18, 2020 at 8:43 AM Michael Van Canneyt via lazarus wrote: > If you tell the IDE not to reload the last project when starting, it creates > a default GUI application. Since 99,99% of my programs are console programs, And it would be nice if you could define default compiler settings

Re: [Lazarus] What to replace Application.Processmessages with?

2020-11-01 Thread Bart via lazarus
On Sun, Nov 1, 2020 at 11:51 AM Michael Van Canneyt via lazarus wrote: > Well, then the IDE codetools have an issue. It's a known issue, not yet fixed. -- Bart -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org

Re: [Lazarus] Creating packages - what to include?

2020-12-28 Thread Bart via lazarus
On Mon, Dec 28, 2020 at 4:24 PM Bo Berglund via lazarus wrote: > >I have created a number of classes that are useful in multiple > >projects. I have all my usefull units in one folder (you can use multiple folders if so desired). This folder is in the -Fu path of all my projects. This can be

Re: [Lazarus] Creating packages - what to include?

2020-12-28 Thread Bart via lazarus
On Mon, Dec 28, 2020 at 6:13 PM Bo Berglund via lazarus wrote: > Could you please direct me to where in Lazarus this can be done? It is in Complier options. It has a checkbox "Set compiler options as default". My folder layout is like: \\LazarusProjecten\ Each application's main lpi resides in

Re: [Lazarus] How to find out which version of Lazarus was used to build last?

2021-01-23 Thread Bart via lazarus
On Sat, Jan 23, 2021 at 3:02 PM Bo Berglund via lazarus wrote: > It is a console program used as a wrapper for ffmpeg use to simplify my video > handling functions. In that case I think it is not possible to determine which Lazarus IDE version was used to compile the application. You can

Re: [Lazarus] How to find out which version of Lazarus was used to build last?

2021-01-23 Thread Bart via lazarus
Assuming you have the sources, and it is a Lazarus program, then in the LFM there is a string like: LCLVersion = '2.1.0.0' That will be the last version you used to save or build the program with. -- Bart -- ___ lazarus mailing list

Re: [Lazarus] TStaticText loses content at irregular intervals (Win 10)

2021-01-17 Thread Bart via lazarus
On Sun, Jan 17, 2021 at 8:46 AM Bo Berglund via lazarus wrote: > is there anything I can do to stop it from > happening? The "stupid"way is to try and call Apllication.PrecessMessages after you update the text of that control. -- Bart -- ___ lazarus

Re: [Lazarus] question with IDE

2021-01-15 Thread Bart via lazarus
On Fri, Jan 15, 2021 at 1:34 PM Mattias Gaertner via lazarus wrote: > Do you have a complete example unit (you can strip the statements and > vars)? I recently had this with fpc's deque.pp unit. I added two methods to the intrface, then pressed Ctrl+C and it made those two, but also a new empty

Re: [Lazarus] Missing resources???

2021-07-05 Thread Bart via lazarus
On Mon, Jul 5, 2021 at 11:02 AM denisgolovan via lazarus wrote: > My main form had my second display Left,Top coordinates. > Thus it just wasn't visible. ;-) -- Bart -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org

Re: [Lazarus] Bump issue

2021-01-22 Thread Bart via lazarus
On Fri, Jan 22, 2021 at 11:54 AM R.Smith via lazarus wrote: > I wish to gently remind the FPC devs to please not forget to apply this. > What is the optimal/correct way to do this? Ask on the fpc-devel mailinglist. Add a note to the bugtracker issue, so it will be on top again. -- Bart --

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-03-02 Thread Bart via lazarus
On Mon, Mar 1, 2021 at 8:16 PM José Mejuto via lazarus wrote: > I've uploaded last TMask* code to my github, this way its easier to > track changes. > > https://github.com/JoshyFun/pascal_tmask First we will fork Lazarus 2.2 Then work in mask unit can proceed. I wonder if we could have both

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-24 Thread Bart via lazarus
On Wed, Feb 24, 2021 at 9:11 AM Juha Manninen via lazarus wrote: >> TMask (unit masks) deals with masks with wildcards (*,? and sets of >> single byte chars). ... > TMask also supports ranges and sets. See the unit test. > Eg. '[a-b]', '[!a-b]', '[abc]', '[0-9]' By single byte chars I meant

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-24 Thread Bart via lazarus
On Wed, Feb 24, 2021 at 10:02 AM Bart wrote: > Of course that is NOT a reason not to improve it: O(n^4) is just terrible. To put this discussion in a little perspective. Given a string S (UTF8 encoded) with Utf8Length=1000. GetCodePoint(S,1000) on my laptop takes 0.00439 msecs to perform. So 10

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-24 Thread Bart via lazarus
On Wed, Feb 24, 2021 at 11:22 AM José Mejuto via lazarus wrote: > In my code there is non 100% unicode compatibility when using the > "CaseInsensitive" mode as as it uses lowercase mask and lowercase string > to perform the test which is wrong by definition Currently Masks unit does the same.

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-24 Thread Bart via lazarus
On Wed, Feb 24, 2021 at 12:11 PM Juha Manninen via lazarus wrote: >> I tested that extensively on my machine with all scenarios I could think of. > Please add your tests to the project I mentioned. I did that when writing the code. I never saved the tested masks I used anywhere AFAIK. The

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-24 Thread Bart via lazarus
On Wed, Feb 24, 2021 at 12:28 PM José Mejuto via lazarus wrote: > Filename:='test.txt' > Mask:='test??.txt?' > Match must be true That sucks big time. A ? is supposed to match EXACTLY 1 character (not optional). Bloody @#$%$#@#$ Micro$uck, -- Bart --

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-24 Thread Bart via lazarus
On Wed, Feb 24, 2021 at 12:28 PM José Mejuto via lazarus wrote: > Filename:='test.txt' > Mask:='test??.txt?' > Match must be true That sucks big time. ? is supposed to match exactly 1 character (non-optional). Bloody #$%$#!! M$uck. -- Bart -- ___

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-24 Thread Bart via lazarus
On Wed, Feb 24, 2021 at 9:54 PM Juha Manninen via lazarus wrote: > I am interested in how well your TMask version compares with Delphi's version. > Does it match the speed or even surpass it? > > Anyway this unit looks very promising! > It works with Unicode as advertised. It passes all cases in

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-26 Thread Bart via lazarus
On Thu, Feb 25, 2021 at 3:22 PM Juha Manninen via lazarus wrote: TMask.MatchesWindowsMask now raises an exception. Seriously?? This is INSANE. Bart -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-23 Thread Bart via lazarus
On Tue, Feb 23, 2021 at 3:27 PM Juha Manninen via lazarus wrote: > Does it mean the mask syntax is different? I found this: > http://docwiki.embarcadero.com/Libraries/Sydney/en/System.MaskUtils.TEditMask > Is TEditMask the same as TMaskEdit? Or is TEditMask used for TMask? Can you > please

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-23 Thread Bart via lazarus
On Tue, Feb 23, 2021 at 10:41 AM Juha Manninen via lazarus wrote: > LazUtils has unit Masks with classes TMask and TMaskList. > FPC's packages/fpindexer has unit FPMasks also with classes TMask and > TMaskList. MaskEdit is a LCL control and hence has nothing to do in fpc. I have in the past

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-26 Thread Bart via lazarus
On Fri, Feb 26, 2021 at 7:15 PM Bart wrote: > TMask.MatchesWindowsMask now raises an exception. > Seriously?? > This is INSANE. Let me explain. My backup and some related programs still compile, but instatly raise an exception when they start to perform their main task. Thank you very much.

Re: [Lazarus] Mantis vs GitLab issue tracker

2021-08-13 Thread Bart via lazarus
On Fri, Aug 13, 2021 at 9:02 PM Vojtěch Čihák via lazarus wrote: > is it just my impression that Mantis was more feature rich an had better > layout? Agreed. However, maintaining Mantis (and our svn server) had become a nightmare. Unfortunately the issue tracker of GitLab doesn't offer the

Re: [Lazarus] trying to read an EXE

2021-09-03 Thread Bart via lazarus
On Fri, Sep 3, 2021 at 11:08 PM duilio foschi via lazarus wrote: > In which form gets this instruction compiled? >i:=cmbYear.ItemIndex+2005; Compile wit -al and then open the resulting .s file in a texteditor. You'll see the assembler that the compiler generates for that line: It will be

Re: [Lazarus] Start application maximized with a shortcut

2021-09-06 Thread Bart via lazarus
On Sun, Sep 5, 2021 at 10:42 AM Gabor Boros via lazarus wrote: > Create a new "Application", compile it. Send a shortcut from > project1.exe to the desktop. At shortcut's properties change "Run" to > "Maximized". Start the application with the shortcut, its not maximized. I can confirm that. >

Re: [Lazarus] Start application maximized with a shortcut

2021-09-07 Thread Bart via lazarus
On Tue, Sep 7, 2021 at 11:26 AM John Landmesser via lazarus wrote: > fp-ide works as aspected on Win 10 Home :-) > > Ok its a terminal application ?! The terminal starts in the specified mode, not the FP executable. -- Bart -- ___ lazarus mailing

Re: [Lazarus] TMask revisited

2021-10-20 Thread Bart via lazarus
On Wed, Oct 20, 2021 at 9:37 PM José Mejuto via lazarus wrote: > >> There are IMHO two front lines, one is the "replace" of TMask in > >> internal LCL functions, exposed or not to the user, and in this case all > >> options that allow mimic the old behaviour should be disabled. The other > >>

Re: [Lazarus] TMask revisited

2021-10-20 Thread Bart via lazarus
On Wed, Oct 20, 2021 at 9:37 PM José Mejuto via lazarus wrote: > In the "masks" world sets are a group of chars inside "[]", optional > chars, option chars, or other fancy name. > > Range syntax: [a-z] > Set syntax: [abcdefghijklmnopqrstuvwxyz] What would be the effective difference between

Re: [Lazarus] TMask revisited

2021-10-18 Thread Bart via lazarus
On Sun, Oct 17, 2021 at 7:37 PM José Mejuto via lazarus wrote: > OpcodeOptionalChar (maybe the name should be OptionChar) works in the > compiled stream as CheckMatch and if match go to next char; if not match > continue checking without advance in the target string. > > Most people are familiar

Re: [Lazarus] TMask revisited

2021-10-19 Thread Bart via lazarus
On Tue, Oct 19, 2021 at 10:44 AM José Mejuto via lazarus wrote: > Yes, at least it should. To completely disable the "[" syntax three > options must be removed from default, "eMaskOpcodeOptionalChar", > "eMaskOpcodeRange" and "eMaskOpcodeAnyCharOrNone". > > eMaskOpcodeAnyCharOrNone = [???]

Re: [Lazarus] TMask revisited

2021-10-20 Thread Bart via lazarus
On Wed, Oct 20, 2021 at 11:00 AM José Mejuto via lazarus wrote: > There are IMHO two front lines, one is the "replace" of TMask in > internal LCL functions, exposed or not to the user, and in this case all > options that allow mimic the old behaviour should be disabled. The other > one is the

Re: [Lazarus] TMask revisited

2021-10-20 Thread Bart via lazarus
On Tue, Oct 19, 2021 at 7:11 PM Juha Manninen via lazarus wrote: > The Create in TMaskBase is never called directly by a user. He will get a > deprecated message from elsewhere. But it is part of the interface. Some poor soul might implement it's own dereive control from TMaskBase and rely on

Re: [Lazarus] TMask revisited

2021-10-14 Thread Bart via lazarus
On Thu, Oct 14, 2021 at 6:54 PM Bart wrote: > This was discussed at length in february. From the discussion in february: Feb 24 11:22 AM > And also define if a compatibility break is a bug in the new code or in > the old code. In example my mask supports (there is a define to disable) >

Re: [Lazarus] TMask revisited

2021-10-14 Thread Bart via lazarus
On Wed, Oct 13, 2021 at 5:16 PM Juha Manninen via lazarus wrote: > Please test everybody. I will read the old posts more carefully later. You have changed the existing interface for both TMask and the Matches(Windows)Mask(List) functions. TMaskOptions has been removed. Noticable the ability to

Re: [Lazarus] TMask revisited

2021-10-15 Thread Bart via lazarus
On Fri, Oct 15, 2021 at 1:55 AM Juha Manninen via lazarus wrote: > > On Thu, Oct 14, 2021 at 7:57 PM Bart via lazarus > wrote: >> >> You have changed the existing interface for both TMask and the >> Matches(Windows)Mask(List) functions. >> TMaskOptions has be

Re: [Lazarus] TMask revisited

2021-10-15 Thread Bart via lazarus
On Fri, Oct 15, 2021 at 2:38 PM Maxim Ganetsky via lazarus wrote: > Please try with, for example bla.pas and bla.pas.bak files. Mask: *.pas;*.pp;*.inc Filename: file.pas.bak Result: does not match, both in the old code and the new code. -- Bart --

<    1   2   3   >