Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Probleme mit in Tstringgrid eingelagerte Combobox (https://www.delphipraxis.net/136917-probleme-mit-tstringgrid-eingelagerte-combobox.html)

R2009 13. Jul 2009 14:42

Re: Probleme mit in Tstringgrid eingelagerte Combobox
 
OK hat sich erledigt.

toms 13. Jul 2009 14:50

Re: Probleme mit in Tstringgrid eingelagerte Combobox
 
Zitat:

Zitat von R2009
OK hat sich erledigt.

Wie denn?

R2009 13. Jul 2009 17:04

Re: Probleme mit in Tstringgrid eingelagerte Combobox
 
Hi,
hab folgendes geändert:
Delphi-Quellcode:
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.
Scheinbar ist es so, dass die beiden Komponenten combobox und stringgrid einen gemeinsamen Parent benötigen.
Vielen Dank für die "tatkräftige und konstruktive" Mithilfe.


Alle Zeitangaben in WEZ +1. Es ist jetzt 21:15 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz