Typer2
Members-
Content Count
6 -
Joined
-
Last visited
Community Reputation
0 NeutralRecent Profile Visitors
788 profile views
-
Actually TComboEdit.Lines is not sorted by default and you need to leave it that way if you want to control the order of the items. I find it hard to believe this solved your problem, as Append is the same as the Add method, except that it does not return a value. So I suspect you meant Insert(0, aText); I use a helper class for this: TComboEditHelper = class helper for TComboEdit public procedure StoreText; end; procedure TComboEditHelper.StoreText; var vText: string; vI: Integer; begin vText := Text; if not vText.IsEmpty then begin vI := Items.IndexOf(vText); if vI > -1 then begin Items.Delete(vI); Items.Insert(0, vText); Text := vText; end else begin Items.Insert(0, vText); end; // At most 15. if Items.Count > 15 then Items.Delete(15); end; end;
-
When using frame inheritance, be aware that running Delphi at high DPI can cause issues, which might negatively affect the layout and functionality of your frames. To avoid these issues, you can run Delphi in DPI-unaware mode: "C:\Program Files (x86)\Embarcadero\Studio\23.0\bin\bds.exe" /highdpi:unaware
-
Deploy application to macOS which includes command line utility
Typer2 replied to Typer2's topic in FMX
After some more digging into the problem, I finally realized the utility was corrupted after moving it from Mac to Windows, using FileZilla. First compressing it solved the problem. -
I have created and deployed an FMX based macOS application. Initially this application works without issues, but now I want to include a command line utility that I intend to call from within the main application. I have compiled this utility with make and used codesign on the Mac (and verified it) and then copied it to my Windows machine in order to add it to the Deployment with my Delphi project. But with this setup the deployment fails with: [PAClient Error] Error: E0264 Unable to execute '"/usr/bin/codesign" -o runtime --timestamp --entitlements "/Users/me/PAServer/scratch-dir/def/MyApp.entitlements" --deep -s "MyCompany" -f "/Users/me/PAServer/scratch-dir/def/MyApp.app"' (Error 1) [PAClient Error] Error: E0264 /Users/me/PAServer/scratch-dir/def/MyApp.app: main executable failed strict validation [PAClient Error] Error: E0264 In subcomponent: /Users/me/PAServer/scratch-dir/def/MyApp.app/Contents/MacOS/utility Is there anyone who has successfully did something similar? What might be the problem here? Any help is appreciated!
-
I have just upgraded to Delphi 12 and the issue is indeed still not solved. Zoom is a vital part of my software as it is aimed at designers, so I will report this bug.
-
I am looking for a way to support the zoom gesture on a MacBook by using the trackpad, but even the basic ImageZoom demo doesn't seem to work. C:\Users\Public\Documents\Embarcadero\Studio\22.0\Samples\Object Pascal\Mobile Snippets\InteractiveGestures\ImageZoom The documentation says: "The interactive gestures are multi-touch gestures (Zoom, Rotate, and so on) that are equivalent to System Gestures on Windows, and to Gestures on macOS, iOS, and Android. Every time the fingers move on the touch surface, an OnGesture event is fired." Is this not supported, or am I missing something?