Jump to content

Patrick PREMARTIN

Members
  • Content Count

    297
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Patrick PREMARTIN

  1. Patrick PREMARTIN

    StreamingMedia sample says MP4 file not supported

    Good idea, I haven't looked at it for ZicPlay on Windows. I should try it for M4A files !
  2. Patrick PREMARTIN

    Getit Server access from Delphi D10.1 Berlin

    Hi After the big hosting crash last year Embarcadero didn't restored GetIt packages for non supported releases before 10.4 (supported as the Community Edition at this time). If you are looking for something you can find it as open source or from editors for trial or developer edition of external programs. If not contact Ian Barker to explain what package you need.
  3. Patrick PREMARTIN

    The Advent of Code 2024.

    Ready for tomorrow start ? Don't forget that IA like ChatGPT and Copilot are not welcome during coding challenges. It's a game for humans coders only. 😉 (if you use them it has no interest except learning how to explain the problem to them)
  4. Patrick PREMARTIN

    StreamingMedia sample says MP4 file not supported

    The TMediaPlayer component don't use latest APIs on Windows and can't access latests codecs. Some files can't be opened even with the old Media Player from Microsoft. On Mac, iOS and Android I haven't this problem.
  5. Patrick PREMARTIN

    Buying a mini pc to install Delphi

    Yes, each ARM OS does the conversion it needs to run X86/x64 based programs. Parallels Desktop is great for Windows VMs on Mx Macs. All tasks a Windows developer have to do can be done with it. (except for rare devices with no ARM driver)
  6. Patrick PREMARTIN

    Some new projects...

    Good idea for PLUA project. I've seen an old LUA package for Pascal but it wasn't maintained. @tinyBigGAMES You open many projects but globally only for Windows, do you want to try other platforms in the future ?
  7. Patrick PREMARTIN

    Meta-Delphi question about web hosting..

    Perhaps you can tell us more about your project ? Depending on what you want to do we could help to find the better solution.
  8. Patrick PREMARTIN

    Some open sourced tools for Delphi developers

    I've set up the hostings but the websites are still to be made. Strangely enough, it's not the thing I enjoy the most, so it's dragging on... The link to download it is the "Using this software" part of the README. I'll change that too when the websites will be really available. Here are the screens captures for this one : https://zupimages.net/viewer.php?id=24/47/8npc.png https://zupimages.net/viewer.php?id=24/47/tew8.png
  9. Patrick PREMARTIN

    Delphi for Mobile Applications

    Don't forget the cost of maintaining two or more projects in more than one language, with more than one IDE / OS. Depending on the subject, the cost of Delphi licenses is not so high.
  10. Patrick PREMARTIN

    Delphi for Mobile Applications

    Hi Using FireMonkey is globally the same than using VCL except it's more graphic and has more features to auto adapt visual components depending on windows sizes and styles. The big advantage to stay in Delphi is to share a part of your code between desktop and mobiles applications. A lot of samples, docs and books are available to learn how to use FMX features. Check this repositories list https://github.com/DeveloppeurPascal/Delphi-samples/blob/main/OtherDelphiSampleRepositories.md or this books : Fearless Cross-Platform Development with Delphi and Expert Delphi (second edition) For the code you only have to learn how to program asynchronously and a few things about Android permissions if you use some APIs. Start by doing a little app like in Delphi Programming Projects
  11. Patrick PREMARTIN

    Meta-Delphi question about web hosting..

    For an internal app in a company or paid users Thinfinity can be a good simple solution. For a public website it's too expensive. Use Delphi as a server on Windows or Linux if you want and dynamic website solutions (from Delphi or others). For an e-commerce site it could be easier to use an existing solution like LiteCart (simple, easy to use) or Prestashop (more complex but full of features for any commerce) and synchronize its database to your real DB.
  12. Patrick PREMARTIN

    Buying a mini pc to install Delphi

    It's the Mac mini M1 I use. I bought it after the GTK to check if I could work on it with Windows VMs and never changed. The only thing that really annoys me is the SSD, which I also took to be too small and supplemented by external disks around the case. Buying an Intel Mac is a bad idea. Buy a "real" PC instead of that. The Intel based models can't soon use latests macOS releases and you won't be able to code for macOS or iOS. The M1 should still have 2 or 3 years before being deprecated.
  13. Patrick PREMARTIN

    Delphi 12CE and SQLite

    Hi Is FireDAC.Phys.SQLiteWrapper added somewhere in your code by the IDE or is it used by FireDAC itself ? What happen when you remove it (in the first case). Is TFDPhysSQLiteDriver component used somewhere in the program ? Did you tried to change the driver type ("native" SQLite or FDE) ?
  14. Patrick PREMARTIN

    Problem of click on a component

    You don't need to set their Name. It's only necessary for the TFrame container. The Name property is only needed to link variables in the classes and the ressources in the DFM/FMX. When you create things by code the Name is not used. Inside the component store your objects instances in private or protected fields/variables instead of local variables in the methods. It won't depend on the possible auto generated names.
  15. Patrick PREMARTIN

    Problem of click on a component

    Just for the others, the webinar is this one "create components without creating components" : (in French, with auto caption and auto translation available in YT player). For the Name, yes. If you want to use more than ont "TFrame component" on your forms it's needed. And for the access to components, never use it : create public or published properties. The user of a component don't have to know its content. It can move, the components order can change, and with FMX if you deal with styles one day it's too dangerous. It's not a good plan for long-term maintenance.
  16. Patrick PREMARTIN

    Problem of click on a component

    Just one more thing : if you use a container (Control, Layout or TFrame) as a component, don't forget to align the components you create in it or manage the Resize(d) event to fixed their size in the container.
  17. Patrick PREMARTIN

    Problem of click on a component

    Hi I fixed the "essai" project. Here it is with a sample project. The Stored property must be used to avoid the copy of components in the DFM/FMX file. If you forgot it the program create local components in front of the objects created by the component. The click worked, but you couldn't click on the good button. To test if you do things good, use Alt+F12 in the form editor one or more times. If it adds components in the structure view, you missed the Stored and have to use it. You also need to (re)publish position&other properties on your Control descendant if you want to display it at the same position than in the IDE when you execute the program. I let you fixe your real component and tell us if its good or if you need more hep on it. 🙂 Essai-fixed.zip
  18. Patrick PREMARTIN

    Problem of click on a component

    After some check on my repositories, here are two FMX components you could use as sample to adapt your code : - A TBitBtn like component with a TText and a TGlyph as a TControl descendant. I created a TFrame to show what I need and transformed the code to this to obtain my component. (search "Stored" and see ho I manage the click event for the TControl) https://github.com/DeveloppeurPascal/Pairpix/blob/main/src/uGameButton.pas - The non visual component for my About Box dialog which does some things in the IDE and others on a real project like changing the main form Caption. (search "ComponentState" in the source and see how I manage the component properties) https://github.com/DeveloppeurPascal/AboutDialog-Delphi-Component/blob/main/src/Olf.FMX.AboutDialog.pas
  19. Patrick PREMARTIN

    Problem of click on a component

    Using a TFrame in the form editor don't manage its published properties. You have to register it as a real component for that. For the name, the simpler way to manage it is to add "Name := ''" in the TFrame constructor. The IDE will do the needed things to give one and if you create it by code you won't have the problem of duplicate names. The Click event should work but by doing like in your code you'll have a risk of duplicate components depending on how the users/developers use your component. Add published property as TNotifyEvent on the TFrame and put its value to your button in an override AfterConstruction method. It should work better. Don't forget to check ComponentState variable to do the good thing between IDE form editor and a real program.
  20. Patrick PREMARTIN

    iOS keyboard and Predictive text

    The predictive suggestions is an OS feature, the STYLED recreate the memo feature instead of PLATFORM. No complaints here, but I have not enough Mac&iOS users to complain with a broken Apple feature which suggest wrong or strange words and replace good once by others in French.
  21. Patrick PREMARTIN

    App doesn't start - Library missing

    Hi Did you asked to their support ? What release of macOS do you use ? Did you tried on an other Mac ?
  22. Patrick PREMARTIN

    Code signing in a remotely working team?

    Hi The USB token is not the only solution : some providers allow to use an online hosted token too. If you can't find an other solution than USB, you can perhaps use Exe Bulk Signing ( https://github.com/DeveloppeurPascal/ExeBulkSigning ) in client/server mode to sign on a distant computer from yours, but exposing a signing software is safer on a local network or a VPN than over the Internet.
  23. Patrick PREMARTIN

    ANN: SVGIconViewer

    Great, I'll check it and add your repo to the list I've done around this presentation.
  24. Patrick PREMARTIN

    ANN: SVGIconViewer

    Good idea. You can perhaps add a TImageCollection export with an icons selection list or the source code to use the SVG directly in a unit ? It could be a good alternative to use vector images in final projects.
  25. The multi view is a good idea for smartphones but a menu on Windows and a toolbar on Mac are better. Why having to click somewhere to access things we could have on screen without clicking on it ? (and don't forget keys shortcuts) Depending on the app, don't forget Android can be used on Chromebooks and other devices with a real keyboard.
×