Kann mir mal jemand nen codeschnippsel geben wie ich eine combobox mit label erstelle? soll eine eigene komponenten sein. die combobox kann ich erstellen aber das lebel wird nicht angezeigt.. hier mal der constructor teil:
Delphi-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18:
| constructor TmyDBLabeledComboBox.Create(AOwner: TComponent); begin inherited;
Width := 200;
lblCaption := TLabel.Create(Self);
with lblCaption do begin Parent := Self; Left := 0; AutoSize := False; Layout := tlCenter; Height := 21; Transparent := True; Caption := 'Caption'; end; end; |
daaaanke!!
Moderiert von
raziel: Topic aus Programmierwerkzeuge verschoben am So 30.01.2005 um 12:50