Jump to content

Dave Nottage

Members
  • Content Count

    1647
  • Joined

  • Last visited

  • Days Won

    37

Everything posted by Dave Nottage

  1. Dave Nottage

    Adding a new SDK for MacOS fails

    Your moniker says you're using Delphi 10.2 Tokyo. Is that still the case? Adding macOS 10.15.4 SDK works OK for me using 10.3.3. If you are using 10.3.3, it might be useful to turn on verbose mode in PAServer (v command)
  2. Dave Nottage

    Delphi fmx comes standard in iOS font

    Yes, as per the article. Make sure you're actually deploying the font files (Project|Deployment in the Delphi IDE), and to the correct Remote Path. i.e: .\ Also make sure that the entries in info.plist.TemplateiOS.xml match exactly with the actual filename - filenames are case sensitive on iOS.
  3. Dave Nottage

    Delphi fmx comes standard in iOS font

    Your info.plist.TemplateiOS.xml file is incorrect. Instead of: <key>Segoe UI</key> It should be: <key>UIAppFonts</key> As per the article
  4. Dave Nottage

    Delphi fmx comes standard in iOS font

    http://firemonkeyblog.blogspot.com/2014/12/how-to-use-custom-font-in-ios-delphi.html
  5. Dave Nottage

    handle virtual keyboard with alcinoe library

    The whole point is to shift controls up when they would be otherwise covered by the virtual keyboard. There is no point in shifting them down. In order to do that, you would need to have a control (e.g. a TLayout) at the top of the scrollbox and change the height so that the other controls move down. It is way more trouble than it is worth, and I doubt that users would even expect it to happen.
  6. Dave Nottage

    Delphi fmx comes standard in iOS font

    Please indicate what you mean by "before", e.g. was it a different version of Delphi? Deploying to a device with a different version of iOS, if so, which version(s)? Were your applications deploying the custom fonts? .
  7. Dave Nottage

    handle virtual keyboard with alcinoe library

    I must be missing something. What's the actual issue?
  8. Dave Nottage

    Global StyleBook component

    Yes, that is a drawback of using a datamodule. That said, different custom styles for the same controls inside the same application seems like inconsistent UI design to me.
  9. Dave Nottage

    Global StyleBook component

    Use a DataModule
  10. You cannot rewrite that java code into Delphi code, since it is creating a descendant of a Java class, which is presently not possible with Delphi. You can however create descendant in Java code that can then be consumed by Delphi. I've been meaning to do a blog post about this for quite some time now because it requires a fair amount of explanation as to how to go about it.
  11. Dave Nottage

    Can't find compiled macOS app

    It's in on the Mac, in /Users/[username]/PAServer/scratch-dir/[computername]-[profilename], where [username] = the macOS username [computername] = the Windows computer name you're deploying from [profilename] = the connection profile name you're using eg: /Users/dave/PAServer/scratch-dir/dell-Mac I have Delphi expert and companion macOS app that has functionality that opens Finder on the Mac to show you exactly where it is, here: https://github.com/DelphiWorlds/Mosco
  12. Dave Nottage

    Custom TrueType font in FMX Android app?

    Your example doesn't work on Android < 10 without those changes. I'm wondering how it ever would have, unless it included a font file without -Bold or -Regular on the end (which is not in the example). I've attached an update to the example that works on my Android 5.0.1 and Android 10 devices. true_font_b.zip
  13. Dave Nottage

    Custom TrueType font in FMX Android app?

    You'll need to modify the patch in FMX.FontGlyphs.Android.pas to look like this: NameFont := TPath.Combine(TPath.GetDocumentsPath, CurrentSettings.Family); if not CurrentSettings.Style.Weight.IsRegular and TFile.Exists(NameFont + '-Bold.ttf') then NameFont := NameFont + '-Bold.ttf' else if CurrentSettings.Style.Weight.IsRegular and TFile.Exists(NameFont + '-Regular.ttf') then NameFont := NameFont + '-Regular.ttf' else NameFont := NameFont + '.ttf';
  14. Dave Nottage

    Adding new Items to the Project Tree?

    Not through the ToolsAPI. Just curious: what kind of node do you want to add?
  15. Dave Nottage

    Custom TrueType font in FMX Android app?

    The same method works OK on mine with Font Awesome. Which font(s) are you using?
  16. Dave Nottage

    Mac Catalina and OpenSSL + Indy

    Yes; I would not have mentioned them otherwise. Depending on the version of macOS (especially later versions), the OpenSSL libs will not work with Indy. Perhaps something in Indy changed.
  17. Dave Nottage

    Mac Catalina and OpenSSL + Indy

    Which dylibs are you using? These worked for me on whatever version of 10.15.x was current 6 months ago: https://github.com/DelphiWorlds/KastriFree/tree/master/Lib/OpenSSL/1.0.2s/macOS I have not tested them on 10.15.3 as yet.
  18. Dave Nottage

    Boolean evaluation

    That was exactly my thought when you made this comment: What was the error, and why was it hard to catch?
  19. Dave Nottage

    ANDROID64 Conditional compiling

    There appears to be an ANDROID64 define (it's all over the Delphi source). Probably just not documented?
  20. Dave Nottage

    ANDROID64 Conditional compiling

    In what circumstances would the code do something different?
  21. Dave Nottage

    Test your product with UTF-8 beta setting

    So is CodeGear
  22. Dave Nottage

    TMapView overlay

    Controls that support ControlType of Platform appear above the MapView. Not sure if that helps you...
  23. Dave Nottage

    Android crashes in formula

    On iOS, the first location change has values of 0 for OldLocation.Latitude and OldLocation.Longitude. On Android, they're both NaN, so your code will fail in that case. You should do this check (at least): if not IsNan(Latitude1) and not IsNan(Longitude1) then
  24. Dave Nottage

    Squint and read: CreateFormFromStings

    More a case of: a major release is the best time to do it, since it can be interface breaking. If, after the change, a users code does not compile, I doubt they're going to say: "I want it back with the incorrect spelling". They're more likely to say: "I'm upset that you spelled it wrong in the first place, but fixing it is way better".
  25. Dave Nottage

    Android, how to call a TJIntent

    You're misrepresenting my reply. It is exactly why I said to examine that file. It certainly does have an effect when creating new projects.
×