The CanGrow property determines the behavior when the Caption text is too large to fit into the Control:
- if CanGrow=No, the Control retains its design-time height
- if CanGrow=Scroll, the Control retains its design-time height, but allows the end user to scroll through the text
- if CanGrow=Yes, the Control increases its height to accommodate the text
- Possible Values
Yes, No, Scroll
- Applies to
Form (Band), TextLabel, Container, SubForm, Checkbox, OptionButton, TabControl, Report (Band), SubReport
- Syntax
FX Code
Subform1.CanGrow := Yes; Subform1.OpenForm('Form2');
| BX Code |
|---|
Subform1.CanGrow = yes Subform1.OpenForm("Form2") |
| CX Code |
|---|
Subform1.CanGrow = yes; Subform1.OpenForm("Form2"); |

