Jump to content

Mike Warren

Members
  • Content Count

    64
  • Joined

  • Last visited

Everything posted by Mike Warren

  1. Mike Warren

    Winsoft PDFium

    Does anyone here use the Winsoft PDFium components? I've downloaded the trial, but between not being able to find any documentation and being very new to Firemonkey, I feel like I'm poking around in the dark. I have a slightly unusual requirement for working with PDF files: - Load a PDF of house plans. These typically come from Revit or AutoCAD and can be quite complex. - Allow the user to place text and graphics on top of the PDF. - Export a new PDF with these additions. It would also be nice to be able to crop to only part of each page, but I have an idea on how to simulate that with a mask if actually editing the imported PDF is not possible. There's a lot more to my application than that, but that's the PDF requirement. I'd prefer not converting the PDFs into bitmap/JPEG as that will likely increase the size to the point that emailing the resulting files my be problematic. From looking at the demo programs it does look like it might work for me. What I'd really like is the source code to the PDF viewer demo so I can understand how to properly work with viewing PDF files, but I've been unable to find it on the Winsoft site. I sent them an email a couple of days ago, but have not yet had a response. Although this application will be initially targeting Windows, I want to use Firemonkey to give me the flexibility to add other targets later. As a result, the Winsoft PDFium components seem to be my only option. Otherwise, I was considering Gnostice. I'm not keen on needing to include the PDFium DLL (and whatever the equivalent is on other platforms), but installing it in the same directory as my application probably means it won't cause me any problems.
  2. Mike Warren

    Winsoft PDFium

    Winsoft have replied. The source files and documentation are in the Winsoft directory in Program Files (x86). initial testing shows that it will do most of what I want. I'm just not sure I'll be able to crop the imported PDFs, although I have an idea that may be able to work around that. Now I can do a proper evaluation.
  3. Mike Warren

    Choosing a Mac

    After using D1 to D7 for many years I've just started with Delphi 11.3 so I can write cross platform software. Initially, I tried a Mac VM in VirtualBox but the SDKs are not seen. From what I gather from my research, there seems to be problems using Mac VMs. I really hate the idea of carrying another computer around with me, so I'm looking at a Mac Mini as what looks like the best compromise. I can squeeze one of those in my laptop bag as long as it can be run headless. So, my questions: 1/ Will a current model low end M2 Mac Mini be suitable for Mac and iPhone development with Delphi? 2/ Can a Mac Mini be run headless and operated from a VNC connection?
  4. Mike Warren

    Choosing a Mac

    I plugged in a monitor, keyboard and mouse, and things went surprisingly smoothly with the setup. This was probably in part due to my earlier playing this stuff using a Monterey VM. - Created an Apple ID - Updated the OS to 13.3 - Turned on file sharing and set up SMB so I can share files with Windows. - Turned on screen sharing, which is a native Mac VNC. That was a surprise. I expected to need to install a VNC server. - Disconnected the monitor and connected the HDMI dummy plug, which allows me to set the resolution to 1600x900 (Low Resolution). Without the headless HDMI adapter I had no option to change the screen resolution, and it was at some weird setting. - Set the mouse wheel to work in the same direction as I'm used to in Windows. - Added keyboard shortcuts for cut, copy and paste. (Ctrl+X, C, V) - Installed XCode 14.2 - Started to create a developer account, but backed out when Apple wanted to charge me $149 per year. I'll wait until I'm nearly ready to release something before I do that. - Installed and ran PAServer 22.0 - Configured the profile and installed the SDKs for Mac64, Mac64ARM and iOS in Delphi 11.3. - Compiled a blank application for all 3 platforms and they all worked fine. - Finally, I put XCode, iOS Simulator and PAServer in the dock so I can get to them easily.
  5. Mike Warren

    Choosing a Mac

    I just purchased a Mac Mini Pro 16GB/512GB. Setting it up now... Thank you all for your input.
  6. Mike Warren

    [FMX beginner] Key Handling

    For anyone interested: https://quality.embarcadero.com/browse/RSP-41295
  7. Mike Warren

    Choosing a Mac

    I should have got that one instead. 🙂
  8. Mike Warren

    Choosing a Mac

    Thank you both for replying. Any new Mac Mini bought today will be an M1/M2 variant, so an Intel version is not an option for me. My development machine is a high-end gaming laptop. i7-12700H 2.30 GHz with 32GB RAM, an RTX3070ti GPU and 5TB of SSD storage, running Windows 11. I need this laptop for work because I use some graphics-intensive software. As far as work is concerned, I only do Delphi development less than 5% of the time, but I also use Delphi at home. I need to keep my work laptop with me so have to carry it between work and home every day. That's why I was really hoping to be able to use a Mac VM rather than hardware. I run my dev environment in a Win11 VM and performance is very good. The 2 Mac Minis I'm looking at are these: Mac Mini I'd prefer the cheaper one, but am concerned about the low memory. I understand these computers can't be upgraded. I've just ordered a couple of those HDMI dummy plugs. I can see them being useful for other things I do. D11 does compile for both Intel and ARM Macs, but I can't find any information on if I need an Intel Mac to do so.
  9. Mike Warren

    [FMX beginner] Key Handling

    It's normal to get a beep for Alt+key combinations that are not handled by the application, but it the app handles the key combination it should be swallowed by the app so Windows doesn't get it. VCL has always done this. I'll make a quality report.
  10. Mike Warren

    [FMX beginner] Key Handling

    Well, they shouldn't, and don't for me. VCL applications behave correctly, as they have done since D1 (yes, I've been using Delphi that long). FMX application process the keystrokes and then pass them to Windows. It should not do this. Here's a video demonstrating the issue.
  11. Mike Warren

    [FMX beginner] Key Handling

    Thanks for your reply. I don't want to disable the system beep globally. With a VCL based application, anything (Action, Button etc.) that has a shortcut assigned to it will prevent the key message for the shortcut being passed on to Windows so Windows will not play its default beep. The same behavior can be seen by adding a button instead of an action and setting the button's Text (Caption) property to &X. This is starting to look like a bug in FMX to me, or at least missing functionality.
  12. Mike Warren

    [FMX beginner] Key Handling

    Thanks for the reply Vincent. To duplicate this, do the following: 1/ Create a new blank multi-device application 2/ Add an ActionList component 3/ Add an Action the the ActionList 4/ Set the Shortcut for this action to Alt+X 5/ In the OnExcecute event of the Action, add Close; Run the program and press Alt+X. The program will close and a Windows Beep will be heard. Do exactly the same thing with a VCL program and no beep is heard. All this on D11.3 and Windows 11
  13. Mike Warren

    Audio/DSP librarys for use in FireMonkey

    Hello, I'm about to upgrade from D7 to D11.3, specifically so I can target MacOS, iOS and Android in addition to Windows in future applications. In one of my old applications I've been using the DCDSP components with DSPack to change the pitch of audio files without changing the speed. I want to be able to do the same thing in a new application that I want to target MacOS (Intel and Arm) as well as Windows. Does anyone have any suggestions of where I can get started with this? Google has not lead me to anything conclusive, or even promising.
  14. Mike Warren

    Audio/DSP librarys for use in FireMonkey

    Thanks David. I had seen Bass in passing, but dismissed it as just being a playback engine. Looking at it again after your suggestion does show promise, so I'll spend some time looking at it. I'd prefer a native Delphi component, rather than a DLL, but can see that may be asking too much for cross platform.
×