Autor Beitrag
Millo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 147



BeitragVerfasst: Sa 31.08.02 17:05 
Moin

Ich lasse mein Programm jede Sekunde einen Strich immer um eins versetzt zeichnen, das Problem ist das ja irgendwann das TImage zu klein wird.
Gibt es eine Möglichkeit das man das TImage scrollen kann oder das wenn es zu klein wird nur noch den aktuellen Teil zeigt?
DeCodeGuru
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1333
Erhaltene Danke: 1

Arch Linux
Eclipse
BeitragVerfasst: Sa 31.08.02 17:10 
setz die TImagekompo in eine ScrollBox und stell bei der imagekompo die eigentschaft autosize auf true.

_________________
Viele Grüße
Jakob
Millo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 147



BeitragVerfasst: Sa 31.08.02 19:29 
THX

Hab da schon Stunden mit verbracht
DeCodeGuru
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1333
Erhaltene Danke: 1

Arch Linux
Eclipse
BeitragVerfasst: Sa 31.08.02 23:23 
hauptsache es funktioniert :mrgreen:

_________________
Viele Grüße
Jakob
Millo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 147



BeitragVerfasst: So 01.09.02 00:57 
Ne klappt irgentwie net, das Image verändert seine Größe nicht, obwohl es auf Autosize = True steht
hast du sonst noch ne idee.
PS: Ich zeichne mit Canvas
DeCodeGuru
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1333
Erhaltene Danke: 1

Arch Linux
Eclipse
BeitragVerfasst: So 01.09.02 09:39 
zeichne mal in eine Variable vom Typ TBitmap und füge die dann in die Image-Komponente ein. Und stell dann die Größe des Images auf die Größe der Bitmap. Vielleicht funktioniert das.

_________________
Viele Grüße
Jakob
Millo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 147



BeitragVerfasst: Di 03.09.02 21:01 
Titel: Sorry
Moin

und erstmal Sorry das das so lang gedauert hat aber ich hab grad die Schule gewechselt.

Also. Irgentwie schaff ich das immer noch nicht ich gleub langsam das ich zu blöd dafür bin. Hier ist mal der Quelltext.
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
           bild.Canvas.Pen.Color := clred;
           bild.Canvas.MoveTo(i,j);
           bild.Canvas.LineTo(i,288);
           Form3.Image1.Height := bild.Height;
           Form3.Image1.Width := bild.Width;
           Form3.Image1.Picture.Graphic := bild;

also bei mir zeichnet er einfach nicht in das Image das bleibt dann einfach grau.