TDBText always reduces to a 1 x 1 object on Form Designer when Form Opened
Original Reporter info from Mantis: TWhyman
-
Reporter name: Tony Whyman
Original Reporter info from Mantis: TWhyman
- Reporter name: Tony Whyman
Description:
This seems to be a resurrection of bug 19021. Although the proposed fix tp bug 19021 is included in 1.0.2, something else seems to have changed in that the Caption property is now no longer initialised when a Form is read back in to the Form Designer, resulting in an empty Caption and with "autosize = true", the control reduces to a 1 x 1 object.
Additional information:
The proposed fix is to override the Loaded method and initialise the Caption to the Name of the control when the control is loaded at design time. This seems to work well fix the fix to bug 19021 - this fix now only seems to apply when the datasource is activated/deactivated after the Form is loaded.
A proposed patch is attached.
Mantis conversion info:
- Mantis ID: 23206
- Version: 1.0.2
- Fixed in revision: r40925 (#8b188009)