Autor Beitrag
Wolle92
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1296

Windows Vista Home Premium
Delphi 7 PE, Delphi 7 Portable, bald C++ & DirectX
BeitragVerfasst: Fr 22.06.07 10:37 
Hallo, ich brauche die Möglichkeit, über einen Index auf Images zuzugreifen... also nach dem Array-Prinzip...
Kann mir jemand sagen wie das geht?
noidic
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 851

Win 2000 Win XP Vista
D7 Ent, SharpDevelop 2.2
BeitragVerfasst: Fr 22.06.07 10:48 
Wie wärs mit einer TImageList?

_________________
Bravery calls my name in the sound of the wind in the night...
Wolle92 Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1296

Windows Vista Home Premium
Delphi 7 PE, Delphi 7 Portable, bald C++ & DirectX
BeitragVerfasst: Fr 22.06.07 11:01 
gute idee, danke...
aber ich meine, es gab auch noch eine andere lösung
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: Fr 22.06.07 11:07 
ausblenden Delphi-Quelltext
1:
var myImgArray: array of TImage					


und wie ein ganz normales Array behandeln..

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
setlength(myImgArray, 5);
for i:= low(myImgArray) to high(myImgArray) do
begin
 myImgArray[i]:= TImage.create(self);
 myImgArray[i].SchiessMichTod;
end;


LG
Stefan

_________________
Wer Provokationen, Ironie, Sarkasmus oder Zynismus herauslesen kann soll sie ignorieren um den Inhalt meiner Beiträge ungetrübt erfassen zu können.
Martok
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 3661
Erhaltene Danke: 604

Win 8.1, Win 10 x64
Pascal: Lazarus Snapshot, Delphi 7,2007; PHP, JS: WebStorm
BeitragVerfasst: Fr 22.06.07 11:10 
Suche in: Delphi-Forum FINDCOMPONENT

@Zeitgeist: oder so... ;)

_________________
"The phoenix's price isn't inevitable. It's not part of some deep balance built into the universe. It's just the parts of the game where you haven't figured out yet how to cheat."
Wolle92 Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1296

Windows Vista Home Premium
Delphi 7 PE, Delphi 7 Portable, bald C++ & DirectX
BeitragVerfasst: Fr 22.06.07 12:12 
ich kriege bei setLength immer die Fehlermeldung "Incompatible Types"
Wolle92 Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1296

Windows Vista Home Premium
Delphi 7 PE, Delphi 7 Portable, bald C++ & DirectX
BeitragVerfasst: Fr 22.06.07 12:22 
ok, das geht jetzt, aber "self" ist ein "Undeclared identifer", sagt der Compiler