Delphi-PRAXiS

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 CustomListBox (https://www.delphipraxis.net/56755-customlistbox.html)

inriz 10. Nov 2005 15:47


CustomListBox
 
hallo,

ich habe eine TMyListBox klasse erstellt die von TListBox abgeleitet ist.
nur wird mein CustomListBox nicht angezeigt.
der code wird mehr sagen.

Code:
unit MyListBox;

interface
uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, cxControls, cxContainer, cxListBox, cxDBEdit, adscnnct,
  DB, adstable, adsdata, adsfunc, Grids, DBGrids, MyMemo;

type
  TMyListBox = class(TListBox)

  private

  public
  end;
implementation

end.
Code:
procedure TForm1.FormCreate(Sender: TObject);
var
  MyListBox : TMyListBox;
begin
  MyListBox := TMyListBox.Create(self);
  with MyListBox do
  begin
    Left := 24;
    Top := 136;
    Width := 249;
    Height := 505;
    ItemHeight := 13;
    TabOrder := 2;
  end;
  {

  }
end;
ich meine, ich hab was vergessen. nur weiss ich nicht was.

gruß

inriz

marabu 10. Nov 2005 16:40

Re: CustomListBox
 
Ohne Parent keine Anzeige...

Grüße vom marabu


Alle Zeitangaben in WEZ +1. Es ist jetzt 15:43 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