I am trying to add a custom property to a base form that can be accessed via the Delphi property editor. If I simply add the property as I would with a standard component the property won't show up in the property editor. Here's what I tried:
unit TestForm;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;
type
TfrmEasyIPBase = class(TForm)
private
FTest: String;
public
{ Public declarations }
published
property Test: String read FTest write FTest;
end;
var
frmEasyIPBase: TfrmEasyIPBase;
implementation
{$R *.dfm}
end.
Do I have to register the property at some point?
On the menu bar, choose View > Properties Window. The Property Editor dialog box appears. In the text box in the Name column, specify the name of the property. For the Type field of the custom property, choose the appropriate data type.
To create and edit properties: In your HubSpot account, click the settings settings icon in the main navigation bar. In the left sidebar menu, navigate to Properties. Click the Select an object dropdown menu, then select [Object] properties to create or edit a property for that object.
You can create up to 30 custom HubSpot user properties. Learn more about assigning ownership of records.
Add new options to a form fieldIn the left sidebar menu, navigate to Properties. Locate and click the name of the property. Ensure that the In forms switch is toggled on for all the options you want to display in your forms. To add a new property option, click + Add an option.
RegisterCustomModule should do the trick.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With