Jump to content

dummzeuch

Members
  • Content Count

    3082
  • Joined

  • Last visited

  • Days Won

    114

Everything posted by dummzeuch

  1. I just noticed that the cursor position in additional edit windows does not move if I insert new lines above it. E.g. In EditView1, the cursor is in line 10. In EditView2, the cursor is in line 15. In EditView3 I insert a new line above line 5. I would expect the cursor position in EditView1 move to line 11 and in EditView2 move to line 16, so they stay at their positions relative to the source code. But apparently that's not the case. Is that a bug or working as designed? The reason why I as noticing this: If just fixed bug #450: Formatter does not store cursor position of additional edit windows in GExperts. But now I wonder whether I should have bothered, since the IDE apparently doesn't handle this either.
  2. dummzeuch

    Forum running slow

    They will just make it up, as they do already.
  3. Where is that quote from? I just searched embarcadero.com for it and it found: What's New (for Rad Studio Florence) where this is actually listed, but also RAD Studio 13: Every New And Enhanced Feature where the keyword "exception" isn't even mentioned on the page. So maybe that was a feature they planned but didn't release but the still had it mentioned in the press release. Alternatively there is this in the docwiki: System.SysUtils.Exception.StackTrace description: so maybe it only shows that information if you have a stack trace provider installed in your program?
  4. dummzeuch

    Gexperts for Delphi 13

    I'm away at the moment and can't build an installer, but the current source code compiles with Delphi 13 and works with the 32 bit IDE.
  5. dummzeuch

    RAD Studio IDE title bar starts growing

    It looks like "something" in the toolbars is running amuck. Maybe resetting the tool bars can help.
  6. dummzeuch

    for loop variable value after the loop

    I just came across this code: var I: Integer; begin for I := 0 to Collection.Count - 1 do if TListColumn(Collection.Items[I]).WidthType <= ColumnTextWidth then Break; Changed(I <> Collection.Count); WriteCols; end; Is it just me or does anybody else think this is wrong? Or is the value of a for loop variable after a loop explicitly defined nowadays? I always thought that's compiler dependent and should not be relied on.
  7. dummzeuch

    Gexperts for Delphi 13

    Works for me. But there has been some intermittent problem with the keyboard shortcuts in GExperts not working at all. You can probably solve it by opening the configuration dialog and just closing it with OK without changing anything.
  8. I have just released a GExperts beta version for the 64 bit IDE. Read the blog post for details.
  9. I have got my own function for converting strings to TDate, but I doubt that you will like it, because it does not support that strange date format you are using in your examples. But here goes anyway: function TryStr2Date(const _s: string; out _dt: TDateTime): Boolean; var UKSettings: TFormatSettings; begin Result := True; // Try several different formats // format configured in Windows if not TryStrToDate(_s, _dt) then // German dd.mm.yyyy if not Tryddmmyyyy2Date(_s, _dt) then // ISO yyyy-mm-dd if not TryIso2Date(_s, _dt) then begin // United Kingdom: dd/mm/yyyy UKSettings := GetUserDefaultLocaleSettings; UKSettings.DateSeparator := '/'; UKSettings.ShortDateFormat := 'dd/mm/yyyy'; if not TryStrToDate(_s, _dt, UKSettings) then // nothing worked, give up Result := False; end; end; function Str2Date(const _s: string): TDateTime; begin if not TryStr2Date(_s, Result) then raise EConvertError.CreateFmt(_('''%s'' is not a valid date'), [_s]); end; They are part of my dzlib, where you can find those other functions called above: https://sourceforge.net/p/dzlib/code/HEAD/tree/dzlib/trunk/src/u_dzDateUtils.pas#l493
  10. dummzeuch

    New Delphi features in Delphi 13

    The products are called "Delphi", "C++ Builder" and "RAD Studio", the latter combining the other two. So the headline is correct.
  11. dummzeuch

    New Delphi features in Delphi 13

    I was at the Pascal Conference last week (and not at the Delphi event, because I found that too expensive for a marketing event, but I degrees). Sorpetaler, who organised it and also sponsored the community days on the weekend, had also managed to in invite a group of students (from some school in Dortmund I think). Among other things, they got an introduction into Pascal and the cool things you can do with it, and each got a USB stick with a portable Lazarus installation. I'm not saying that each of them will now become a Pascal programmer, but at least they have now seen that there are people and at least one company is using it. And the tour through the production facility definitely was impressive. We'd need similar events for Delphi, including a free license, of course. But I have little hope that the latter will be forthcoming. (Of course there is CE).
  12. dummzeuch

    Delphi 13 IDE User Interface Font size issue

    I'm not sure this is good advice, because I'm using such a setup and I have various issues with the IDE because of that.
  13. dummzeuch

    RAD Studio 13 is available

    GExperts tries very hard, but is not perfect. The same for Breakpoints. I updated that code "recently" (a year ago?) so it became a lot better, but still not perfect.
  14. dummzeuch

    RAD Studio 13 is available

    That guy seems to be colour blind anyway, so maybe he overlooked the 13 because it has the wrong colour? Edit: Sorry, I was referring to the guy who made the Welcome Page, not the splash screen.
  15. dummzeuch

    New Delphi features in Delphi 13

    Not sure about the automatic part: Assume you have some legacy code to work on from an era that used a different formatting style. Do you really want it to be automatically reformatted? How do you track the changes you make? The only option is to do the reformatting and commit that change, before you make any manual changes, but that breaks the blame functionality (or whatever your SCM calls it) for older changes. So I usually only format the parts of the code I actually work on and leave the rest as is.
  16. Hm, interesting. I didn't know that F3 automatically searches the next occurrence of the selected text. [testing it] No, it doesn't, at least not in my Delphi 13 installation. I have to press Ctrl+F and enter first. 😕 ??
  17. dummzeuch

    New Delphi features in Delphi 13

    I tried MMX but it's a lot less convenient than the integrated refactoring. I don't remember the specifics, but I think e.g. you have to enter / select the type for a new variable / field rather than have the tool infer it from what is assigned to it.
  18. dummzeuch

    New Delphi features in Delphi 13

    Hm, interesting. Some of it could be easily done with the GExperts code formatter, but not all of it. Care to write a feature request? (I'm not promising anything! But having a formal feature request would definitely increase the likelihood of somebody implementing it.)
  19. dummzeuch

    New Delphi features in Delphi 13

    These refactoring methods worked for me quite well, most of the time: Declare a variable or field Rename an identifier (that one always worked fine within a single unit and most of the time even for the whole project) Extract selected code to a method I have been using them since they were introduced in Delphi 2007 and I already miss them.
  20. dummzeuch

    RAD AI Companion

    I just tried the new RAD AI companion: Give me example code that returns the IDE's version number plus build number as a string from within an IDE plugin Not impressed.
  21. dummzeuch

    Dark mode for TMainMenu

    The form is a TfmClassBrowser, which descends from TfmBaseForm which in turn descends from TForm. It calls this function passing Self as parameter: function GxOtaInitTheming(AForm: TCustomForm): Boolean; var LService : IOTAIDEThemingServices; begin Result := False; LService := GxOtaGetIDEThemingServices; if Assigned(AForm) and Assigned(LService) and (LService.IDEThemingEnabled) then begin LService.RegisterFormClass(TCustomFormClass(AForm.ClassType)); LService.ApplyTheme(AForm); Result := True; end; end; Which is what I think you mean by "registered to the ThemingService". I also tried explicitly calling IOTAIDEThemingServices.ApplyTheme for the TMainMenu, but it didn't have any effect.
  22. dummzeuch

    Dark mode for TMainMenu

    I am trying to fix the remaining glitches in GExperts to follow the IDE's dark/light mode setting (which was implemented by @Achim Kalwa, Thanks a lot Achim!). One thing that does not work is dark mode for a TMainMenu. The menu bar itself is not themed, but its sub menus are themed as expected. Is that a bug in the VCL? A problem that only happens in IDE plugins? Or PEBKAC ?
  23. dummzeuch

    RAD AI Companion

    Simple answer: Yes. You don't take any code from the web and use it without understanding it.
  24. dummzeuch

    New Delphi features in Delphi 13

    So you are a lucky one. For me it's also mostly our own code, but some of it is so ancient that it did not follow the our current style. Of course that's only at work, my hobby projects are a different story all together: Many different styles from many different authors. Some even from past me.
×