Creating a FireMonkey Component (C++)
Go Up to FireMonkey Components Guide
Example: Dialog Button Panel
Both Windows and macOS promote interface guidelines, which include the order and placement of standard Do/Don't/Cancel buttons in dialog boxes. The guidelines for these two platforms are slightly different. A common example is a Save dialog box with "Save", "Don't Save", and "Cancel" as the choices. The TDialogButtonPanel custom component that is created here encapsulates those differences with platform-specific style files, included as RCDATA.
These are the steps:
- Step 1 - Create the Projects (C++)
- Step 2 - Design the Panel (C++)
- Step 3 - Add Style-Resources as RCDATA (C++)
- Step 4 - Set Size and Alignment (C++)
- Step 5 - Custom Properties (C++)