Jump to content

A.M. Hoornweg

  • Content Count

  • Joined

  • Last visited

  • Days Won


A.M. Hoornweg last won the day on July 18 2021

A.M. Hoornweg had the most liked content!

Community Reputation

126 Excellent

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. A.M. Hoornweg

    Developer Express gave up on FMX

    Lazarus / LCL comes to mind. It is not for mobile (yet) but it wouldn't really surprise me if that comes someday.
  2. A.M. Hoornweg

    Do you need an ARM64 compiler for Windows?

    (https://blogs.windows.com/windowsdeveloper/2022/05/24/create-next-generation-experiences-at-scale-with-windows/) ... a comprehensive end-to-end Arm-native toolchain for Arm native apps, including: Full Visual Studio 2022 & VSCode Visual C++" If by "end-to-end" they mean everything from input to output then the compiler should emit native code.
  3. A.M. Hoornweg

    some dxgettext improvements

    Ah, so you have write access to the repository? Great! I am attaching the file here for you to look at. My changes can be found by searching for {$ifdef unicode}. Without those changes, *.po files are loaded in the wrong code page and saving *.mo files produces corrupted files. POUtils.pas
  4. A.M. Hoornweg

    some dxgettext improvements

    I've found out that unit "/dxgettext/itetools/common/POUtils.pas" has severe unicode issues. The unit was written for an ANSI version of Delphi. I've fixed these bugs, do you happen to know how I can make the bugfixed unit find its way back to the original repository ? FYI: I plan to use this unit to translate existing *.po files of mine using a REST translation service which I subscribed to.
  5. A.M. Hoornweg

    Rounded polygon

    Very interesting, thanks for the link!
  6. A.M. Hoornweg

    Rounded polygon

    @vfbb: thanks for the example, I'll look into it!
  7. A.M. Hoornweg

    Rounded polygon

    Such rounded edges "miss" the points of the polygon, they deviate before hitting the point.
  8. A.M. Hoornweg

    Rounded polygon

    It's not trivial at all. I've downloaded a random contour map from the internet and attach it here. This is a map of a terrain, consisting of polygons that describe points of equal altitude above sea level. So there's a polygon describing an altitude of 350 metres, another one that corresponds to 360 metres, another one for 370 metres etcetera. The problem: The polygons may never intersect (any point of the topography has only one altitude). If an automated routine is to be used to create smooth connections between points of a polygon, it is necessary to avoid "wild deflections" that would make these lines cross adjacent polygons. A human being would have no problem drawing such connections by hand, intuitively. But an algorithm ?
  9. Hello all, does anyone know a nice algorithm that will connect the points in a polygon in a rounded fashion? Its intended use is a contour map. The polygon must go through all vertices but I'd like to avoid sharp corners for a more natural look; it's OK if the lines between the vertices are slightly curved. The few solutions I found on the internet tend to bend without touching the vertices.
  10. A.M. Hoornweg

    How to set "WelcomePageFile" property in *.dproj?

    Duh... I always thought all options stored in the *.dproj could be reached with ctrl-shift-F11 but for some reason they made an exception for this setting. Thanks!
  11. Hello all, Not everyone may know this, but Delphi allows you to specify a per-project "welcome page" in the *.dproj file. The referenced html file will automatically be opened in your default browser whenever you open the Delphi project in the IDE. I find this very practical because it can be used as a "sticky note", to show the developer some information about the project and its current status. <Delphi.Personality> <Source> </Source> <Excluded_Packages> </Excluded_Packages> <WelcomePageFile Path="index.html"/> </Delphi.Personality> But... I've forgotten where in the Delphi IDE the setting is to specify this welcome page. I currently resort to editing the *.dproj file manually in an external editor and I hate doing that. Does anyone know where to find this setting? I must be getting old ...
  12. A.M. Hoornweg

    tMainmenu DPI issue

    I don't know, i'll check it out tomorrow.
  13. A.M. Hoornweg

    tMainmenu DPI issue

    I managed to create a workaround for this. See code below. The mainmenu of the form can be re-initialized by calling "menu.rebuild" . It works best if this is done ~100 ms after the form is re-scaled to the new dpi. type tMenuItemHack = class helper for tMenuItem procedure RebuildMenu; end; tMainmenuHack = class helper for tMainmenu procedure Rebuild; end; procedure tMenuItemHack.RebuildMenu; begin menuchanged(True); //"Protected" method end; procedure tMainmenuHack.Rebuild; var cnt: Integer; item: tMenuItem; begin cnt := items.Count; if cnt > 0 then begin item := items[cnt-1]; item.RebuildMenu;// trigger "menuchanged(True)" on rightmost item (minimize flicker) end; end;
  14. A.M. Hoornweg

    tMainmenu DPI issue

    Hello all, I have the problem that tMainmenu often fails to re-scale properly if I drag a window from a low-dpi screen to a high-dpi screen. This happens especially if it is a complex menu and it happens with or without a tVirtualImageList attached. The problem occurs on both Windows 10 and 11 (but more frequent on Windows 11). The compiler I use is Delphi 11.1 Alexandria. I am looking for workaround, is there a way to manually re-initialize or re-build the tMainmenu after scaling ?
  15. A.M. Hoornweg

    EULA declined installing 11.1 with Network Named license

    I develop under Windows 10, but I have a build machine that's still running Windows 7. It will be migrated to Windows 10 in the near future.