Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I add custom properties to a form

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?

like image 885
norgepaul Avatar asked May 26 '09 08:05

norgepaul


People also ask

How can you add a custom property to a form?

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.

How do you create custom properties in HubSpot?

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.

How many custom properties can I create in HubSpot?

You can create up to 30 custom HubSpot user properties. Learn more about assigning ownership of records.

How do I add a field in HubSpot?

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.


1 Answers

RegisterCustomModule should do the trick.

like image 173
Uli Gerhardt Avatar answered Oct 10 '22 18:10

Uli Gerhardt