-
Content Count
1560 -
Joined
-
Last visited
-
Days Won
36
Everything posted by Dave Nottage
-
Setting a "nullable" property on a .NET object
Dave Nottage replied to Dave Nottage's topic in Windows API
I've posted a new question after help from Olivier: https://stackoverflow.com/questions/61514990/setting-an-enum-property-on-a-net-object If anyone can help, it would be greatly appreciated. -
WebModu class does not exist in Delphi 10.3
Dave Nottage replied to Ramu's topic in Delphi IDE and APIs
The recommended thing to do is to migrate to IntraWeb (from WebSnap, which is where WebModu is from) -
NSHighResolutionCapable = true scaling problems on MacOS 10.13
Dave Nottage replied to Chris Pim's topic in FMX
I followed this link to here: https://quality.embarcadero.com./browse/RSP-27197 I'd use the change that Erik suggested. -
Setting a "nullable" property on a .NET object
Dave Nottage replied to Dave Nottage's topic in Windows API
I've posted a question about this on SO which has received some attention: https://stackoverflow.com/questions/61334031/setting-a-nullable-property-on-a-net-object ..and I think I may be closer to a solution. Can someone check the code for the InvokeToObject method to see if I'm missing anything critical? -
Howto call initWithDelegate and CBCentralManagerOptionShowPowerAlertKey
Dave Nottage replied to Rollo62's topic in Cross-platform
They're ugly, but they are true. In your case however you should need only use dictionaryWithObject (since there is only one value), thus: var LDict: NSDictionary; LBooleanValue: Pointer; begin LBooleanValue := TNSNumber.OCClass.numberWithBool(True); LDict := TNSDictionary.Wrap(TNSDictionary.OCClass.dictionaryWithObject(LBooleanValue, NSObjectToID(CBCentralManagerOptionShowPowerAlertKey))); end; -
Has the relevance of UIRequiredDeviceCapabilities changed since IOS13 ?
Dave Nottage replied to Rollo62's topic in Cross-platform
You'll need to be more specific.- 4 replies
-
- firemonkey
- bluetooth-le
-
(and 1 more)
Tagged with:
-
Excellent! I was not aware of that property; thanks 🙂
-
I see what the problem is now: it's because selecting Segoe UI at design-time results in the Family value not being stored in the .fmx, because it's the default for Windows. I'd consider that a design fault, since it does not account for using a font with the same name on platforms other than Windows. Easiest solution: use something that looks like Segoe UI, but isn't 🙂 Any other solution would seem a bit difficult..
-
That's because you have Family in the StyledSettings property set to True in the Object Inspector (i.e. at design time). You need to set it to False
-
It also works for me just by having the Font.Family property in TextSettings set to the correct value (i.e. Anton) at design time. Using the button and code was just to demonstrate that there's a very obvious change in the font. I suspect there's something else wrong with your project, which is why I asked to post a test case.
-
I'm using Delphi 10.3.3, the latest released version of Xcode (11.4), building against the latest iOS SDK (13.4) and it works on my iPhone X which has iOS 13.4. I've attached my test project (which uses the Anton font, from here: https://fonts.google.com/specimen/Anton). Perhaps if you have a test project, you could attach it so it might be discovered what is going wrong. CustomFontDemo.zip
-
Actually it did - sorry, I used the workaround. I think isolation has caused some memory loss
-
Yes, that's what PAServer runs to discover what SDKs are on the Mac. Actually, I'm not sure now whether PAServer will show anything when it copies the files to the local machine. I was hoping it would display an error (if any). You should not need to, no. In case there is something really wrong though, on the Mac can you: Go to the Applications folder in Finder Right click on Xcode and click Show Package Contents Navigate to: Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs and make sure there's a MacOSX.sdk folder there (with subfolders) The only other thing I can think of is a rights issue (i.e. PAServer somehow does not have rights to the SDK subfolders), but that's a stretch
-
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)
-
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.
-
Your info.plist.TemplateiOS.xml file is incorrect. Instead of: <key>Segoe UI</key> It should be: <key>UIAppFonts</key> As per the article
-
http://firemonkeyblog.blogspot.com/2014/12/how-to-use-custom-font-in-ios-delphi.html
-
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.
-
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? .
-
I must be missing something. What's the actual issue?
-
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.
-
Use a DataModule
-
android Android to Delphi syntax [PlaybackParams] [PlaybackSpeed]
Dave Nottage replied to Tntman's topic in FMX
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. -
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
-
Custom TrueType font in FMX Android app?
Dave Nottage replied to Lars Fosdal's topic in Cross-platform
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