Autor Beitrag
Benjie
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 55

Win 98 SE / Win XP / xubuntu Linux / Mac OS 9.2
D6 Enterprise
BeitragVerfasst: So 18.02.07 21:58 
Hallo Leute,

ich habe ein klizekleines (und dooch recht häftiges) Problem: Ich möchte für ein Fontmanager-Programm eine Listbox machen, in der alle Schriftarten stehen, die installiert sind. Das hab' ich schon mal gemacht:

ausblenden Schriften in die ListBox
1:
Listbox1.Items.Assign(Screen.Fonts);					


Nun, das Problem dabei ist, dass die ListBox bei mehr als 755 Einträgen sozusagen "voll" ist. Und da ich fast 1000 schriftarten auf meinem Rechner installiert habe, macht mich dieser Umstand nicht allzu glücklich...
Könntet ihr mir vielleicht ein paar Tips geben, womit ich diese Grenze von 755 Items umgehen könnte?

Thx schon mal, Benjie

_________________
Nix tun is immer noch besser als etwas tun, was nix bringt...
ZeitGeist87
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1593
Erhaltene Danke: 20

Win95-Win10
Delphi 10 Seattle, Rad Studio 2007, Delphi 7 Prof., C++, WSH, Turbo Pascal, PHP, Delphi X2
BeitragVerfasst: So 18.02.07 22:01 
Hallo!

Hö?
Ich schaff weit mehr als 755 Einträge...

_________________
Wer Provokationen, Ironie, Sarkasmus oder Zynismus herauslesen kann soll sie ignorieren um den Inhalt meiner Beiträge ungetrübt erfassen zu können.
Benjie Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 55

Win 98 SE / Win XP / xubuntu Linux / Mac OS 9.2
D6 Enterprise
BeitragVerfasst: So 18.02.07 22:05 
Also: ich nutze Delphi 2005... und schafee nur 755. Was nutzt du?
ZeitGeist87
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1593
Erhaltene Danke: 20

Win95-Win10
Delphi 10 Seattle, Rad Studio 2007, Delphi 7 Prof., C++, WSH, Turbo Pascal, PHP, Delphi X2
BeitragVerfasst: So 18.02.07 22:08 
Delphi 7 Professional
Delphi 7 Enterprise

BDS 2006 Professional

_________________
Wer Provokationen, Ironie, Sarkasmus oder Zynismus herauslesen kann soll sie ignorieren um den Inhalt meiner Beiträge ungetrübt erfassen zu können.
Benjie Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 55

Win 98 SE / Win XP / xubuntu Linux / Mac OS 9.2
D6 Enterprise
BeitragVerfasst: So 18.02.07 22:10 
wieviel schaffste denn?
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: So 18.02.07 22:12 
Was heißt hier voll?
Wie äußert sich das denn? Wieviel RAM hast du?

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Benjie Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 55

Win 98 SE / Win XP / xubuntu Linux / Mac OS 9.2
D6 Enterprise
BeitragVerfasst: So 18.02.07 22:13 
Nun, ich habe 2 GB Ram. Das sollte reichen... so. aber delphi gibt mir immer die Meldung listenindex überschreitet das Maximum (755). WARUM?
Benjie Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 55

Win 98 SE / Win XP / xubuntu Linux / Mac OS 9.2
D6 Enterprise
BeitragVerfasst: So 18.02.07 22:16 
ich habe jetzt (zum testen) in delphi 6 mal mit einer listbox und einer LISTVIEW (die ich eigentlich lieber verwenden würde) die Komponenten bis 1000 aufgefüllt. und es ging, zu meinem erstaunen. Warum funzt des im prog drin net?

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
procedure TFMain.Button1Click(Sender: TObject);
begin
  if checkbox_printable.checked THEN BEGIN
    Listbox1.Items.Assign(Printer.Fonts);
        showmessage(inttostr(listbox1.Items.Count));
    for i:= 0 to listbox1.items.count DO
      Listview_all.Items.Add.Caption:=listbox1.Items[i];
  END else BEGIN
    Listbox1.Items.Assign(Screen.Fonts);
    showmessage(inttostr(listbox1.Items.Count));
    for i:= 0 to listbox1.items.count DO
      Listview_all.Items.Add.Caption:=listbox1.Items[i];
  END;
end;
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: So 18.02.07 22:17 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
procedure TFMain.Button1Click(Sender: TObject);
begin
  if checkbox_printable.checked THEN BEGIN
    Listbox1.Items.Assign(Printer.Fonts);
        showmessage(inttostr(listbox1.Items.Count));
    for i:= 0 to listbox1.items.count - 1 DO
      Listview_all.Items.Add.Caption:=listbox1.Items[i];
  END else BEGIN
    Listbox1.Items.Assign(Screen.Fonts);
    showmessage(inttostr(listbox1.Items.Count));
    for i:= 0 to listbox1.items.count - 1 DO
      Listview_all.Items.Add.Caption:=listbox1.Items[i];
  END;
end;

-1 vergessen :P

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Benjie Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 55

Win 98 SE / Win XP / xubuntu Linux / Mac OS 9.2
D6 Enterprise
BeitragVerfasst: So 18.02.07 22:19 
Du bist der HELD! VIELEN DANK!!!
ich bin doch der maximal unausgeschlafenste Typ!

:D :D