Search the Community
Showing results for tags 'Control'.
I needed a component that made it easier to place a lot of labels and TEdit controls on a form. So, I wrote this simple version of a TLabelEdit component it has the following public properties: property Label: TW3Label read fLabel; property Edit: TW3EditBox read fEdit; property Spacing: Integer read fSpacing write fSpacing; property Margins: Integer read fMargins write fMargins; Spacing - space between the Label and edit control only Margins - space on outside boundary of both the label and edit controls (i.e. space on left, right of both Label and Edit, as well as top of label a
When you drop a control (e,g, TW3EditBox) on a form in design-time, there is a default control size. In the case of a TW3EditBox, it is (128X32). When you create the same control at runtime the size by default is (171X17) If I review the source code for the control, there is no default size set in (SmartCL.Controls.EditBox) or any of its ancestors Where do these default values some from?