![]() |
Re: Probleme mit in Tstringgrid eingelagerte Combobox
OK hat sich erledigt.
|
Re: Probleme mit in Tstringgrid eingelagerte Combobox
Zitat:
|
Re: Probleme mit in Tstringgrid eingelagerte Combobox
Hi,
hab folgendes geändert:
Delphi-Quellcode:
Scheinbar ist es so, dass die beiden Komponenten combobox und stringgrid einen gemeinsamen Parent benötigen.
unit u_grid;
interface uses SysUtils, Classes, Controls, Grids, stdctrls, Graphics, extctrls; Type TUstringgrid=class (Tpanel) constructor Create(AOwner: TComponent); override; private { Private-Deklarationen } public { Public-Deklarationen } cb:Tcombobox; sg:Tstringgrid; procedure add(s:string); end; implementation constructor TUstringgrid.Create(AOwner: TComponent); begin inherited; sg:=tstringgrid.Create(self); sg.Parent:=self; cb:=tcombobox.Create(self); cb.Parent:=self; Align:=alnone; cb.Width:=sg.defaultcolwidth; sg.width:=width; sg.Height:=height; Color:=clAppWorkSpace; sg.Fixedrows:=0; sg.Fixedcols:=0; cb.BringToFront; end; procedure TUstringgrid.add(s:string); begin cb.Items.Add(s); end; end. Vielen Dank für die "tatkräftige und konstruktive" Mithilfe. |
Alle Zeitangaben in WEZ +1. Es ist jetzt 17:18 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz