Is there a way to assign non-visible custom Text properties for each Blox object?
For example I need a way to allow a user to pick a custom property in the Property Editor for each individual Block and then store that with the BLOX file. I don't want it shown as Text on the object.
Thanks,
Rhett Price
IndySoft
Hi,
You can inherit from each blox object class, add a published property and the published properties will be stored in JSON. Below is a sample:
type
TTMSFNCCustomBlock = class(TTMSFNCBloxImageBlock)
private
FCustomProp: string;
published
property CustomProp: string read FCustomProp write FCustomProp;
end;
....
implementation
{$R *.fmx}
....
initialization
RegisterElement(TTMSFNCCustomBlock, '', 'Custom', 'Basic');
end.
Great! I'll give it a try. How would I go about adding it to the Properties section with a custom editor to select the data? I need to popup my own dialog box to select the data then store it.
Thanks,
Rhett Price
IndySoft
Also, are there any plans to have a WebCore version of FNC Blox?
I'll investigate the possibilities. You could potentially also use the TTMSFNCObjectInspector to list all properties. About WEB Support: working on it as we speak ;-) I can't give you more details about a timeframe however.