TBoldLabel is a data-aware label that displays a Bold attribute or OCL expression result as read-only text. It automatically updates when the underlying data changes.
// Show a simple attributeBoldLabel1.BoldHandle:=CustomerHandle;BoldLabel1.BoldProperties.Expression:='name';// Show a navigated valueBoldLabel2.BoldProperties.Expression:='address.city';// Show a calculated valueBoldLabel3.BoldProperties.Expression:='orders->size.asString';// Show a formatted valueBoldLabel4.BoldProperties.Expression:='salary.formatFloat(''#,##0.00'')';
Use a custom renderer to change appearance based on values:
// Via BoldProperties.OnGetColorprocedureTMyForm.LabelGetColor(...)beginifElement.EvaluateExpressionAsString('active')='False'thenaColor:=clSilver;end;