-
Content Count
184 -
Joined
-
Last visited
-
Days Won
2
Everything posted by Patrick PREMARTIN
-
Meta-Delphi question about web hosting..
Patrick PREMARTIN replied to jglosz's topic in Network, Cloud and Web
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. -
Buying a mini pc to install Delphi
Patrick PREMARTIN replied to Alberto Paganini's topic in Tips / Blogs / Tutorials / Videos
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. -
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) ?
-
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.
- 17 replies
-
- fmx component
- onclick not firing
- (and 1 more)
-
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.
- 17 replies
-
- fmx component
- onclick not firing
- (and 1 more)
-
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 replies
-
- fmx component
- onclick not firing
- (and 1 more)
-
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
- 17 replies
-
- fmx component
- onclick not firing
- (and 1 more)
-
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
- 17 replies
-
- fmx component
- onclick not firing
- (and 1 more)
-
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.
- 17 replies
-
- fmx component
- onclick not firing
- (and 1 more)
-
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.
-
Hi Did you asked to their support ? What release of macOS do you use ? Did you tried on an other Mac ?
-
Code signing in a remotely working team?
Patrick PREMARTIN replied to A.M. Hoornweg's topic in General Help
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. -
Great, I'll check it and add your repo to the list I've done around this presentation.
-
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.
-
How to correctly write a universal project for both Windows and Andorid platforms?
Patrick PREMARTIN replied to dmitrybv's topic in FMX
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. -
Embedded javascript engine in Delphi
Patrick PREMARTIN replied to duzzell's topic in Network, Cloud and Web
Hi Why do you want to add more complexity to your program ? Did you tried the REST API of the AWS service you need or did you have problems with it ? -
Hi Did you checked the x64 + ARM64 compiler option in project/compiler/compiler ?
-
Isn't it what TDosCommand does ? (for Windows only) https://github.com/TurboPack/DOSCommand
-
Where can I find the official version numbers of the embarcadero products?
Patrick PREMARTIN replied to Mr. E's topic in General Help
Hi, you have this repository too to get version infos : https://github.com/omonien/Delphi-Version-Information -
You can try Ultra Edit. It works well with big files.
-
Cross platform color picker and palette library
Patrick PREMARTIN replied to Jim McKeeth's topic in I made this
In that case, perhaps adding https://www.whocanuse.com/ could be fun ? -
Cross platform color picker and palette library
Patrick PREMARTIN replied to Jim McKeeth's topic in I made this
Awesome! Thank you so much for this work Jim. Clearly the best color selector I've seen in almost 30 years. I'll definitely be using it to replace the selectors supplied with Delphi when I refresh my icon generation and image button creation tools. -
My YouTube Channel - The Silver Coder
Patrick PREMARTIN replied to silvercoder79's topic in Tips / Blogs / Tutorials / Videos
Hi. I haven't watched the video but will do for sure. On GitHub, please don't forget to use some topics like "delphi, delphi-app, delphi-sample, sample-app, VCL, Firemonkey, ..." depending on your repositories. The internal linking between projects is one way to fight for global visibility of our language and project. -
Hi. The developer edition is not supposed to be used in production. It's for development and testing. Depending on the used features, try Firebird in production if an InterBase Server license is too expensive for your needs. Your code will remain the same and you can use IB in the future if needed.
-
If videos are in the game, a lot of things are available on Embarcadero's YouTube channel : https://www.youtube.com/@EmbarcaderoTech/playlists Look at (the old) "modernize with Windows 10" playlist : Or the "Desktop First UX" During the online conferences some speakers had shown a lot of things about FireMonkey and designing programs. One of them (Ray Konopka) is a specialist of this subject : https://www.youtube.com/@EmbarcaderoTech/search?query=konopka And if you want to understand how FMX and the IDE work together, you also can be interested by my (in English) videos from last year conference : From GetIt you'll find some screen samples, it could be an help to design and understand how to stack components to reproduce the beautiful UI you (or your infographist) have in mind. 😉