« on: October 13, 2025, 04:06:54 pm »
I have a custom control with custom (published) properties.
I want to create the control and execute a routine, after all values of the custom control are applied (accepted).
Refresh and
invalidate do not help.
Any idea how to do it?
TCustomControl = class(TCustomComboBox)
private
FAppendFriendlyNames : Boolean;
...
public
...
published
property AppendFriendlyNames : boolean read FAppendFriendlyNames write FAppendFriendlyNames ;
...
constructor TCustomControl.Create (aOwner: TComponent);
begin
inherited Create(aOwner);
FAppendFriendlyNames := True; //Set the default value
WAIT UNTIL CUSTOM PROPERTIES GET ITS VALUES
ShowMessage ('AppendFriendlyNames = ' + BoolToStr(AppendFriendlyNames,'True','False')); //Must show FALSE if it set to FALSE by the IDE
end;
« Last Edit: October 14, 2025, 12:41:31 pm by CM630 »

Logged
Лазар 4,2 32 bit (sometimes 64 bit); FPC3,2,2