Autor Beitrag
violinenspieler1000
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 38



BeitragVerfasst: Do 11.09.08 06:22 
Hallo,

ich brauche auf einer Form rund 100 Image-Boxen um verschiedene Bilder unter anderem gleichzeitig anzeigen zu lassen.
Da ich nicht jede image-Box einzeln auf das Formular ziehen möchte, suche ich nach einer Möglichkeit, wie ich sowas automatisch, während der Laufzeit des Programmes reallisieren kann.

Danke,
Thomas


Moderiert von user profile iconNarses: Topic aus Sonstiges (Delphi) verschoben am Fr 12.09.2008 um 23:31
Bernhard Geyer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 721
Erhaltene Danke: 3



BeitragVerfasst: Do 11.09.08 06:39 
Kein Problem. Schleife darüber bauen wirst du wohl selber können (z.B. statt MyControl: TMyControl -> MyControl: array[0..99] of TMyControl

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
MyControl := TMyControl.Create(self);
MyControl.Left := 100;
MyControl.Top := 100;
MyControl.Widht := 100;
MyControl.Height := 100;
MyControl.Parent := self;
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Do 11.09.08 06:57 
Wenn du die GExperts installiert hast kannst du eine Komponente auf der Form konfigurieren und dann die Einstelleungen mit ComponentsToCode in Quelltext wandeln lassen.

_________________
Markus Kinzler.
Boldar
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1555
Erhaltene Danke: 70

Win7 Enterprise 64bit, Win XP SP2
Turbo Delphi
BeitragVerfasst: Fr 12.09.08 21:51 
Dass Programm wird mit den 100 Images aber wohl seeehhhr Langsam laufen. Besser alle in eine (Grosse) image-box zeichnen.