Autor Beitrag
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: So 30.03.03 11:02 
Gibt es vorgefertigte Methoden, mit der ich einen Text mit soundsoviel Zeilen nicht auf einmal in eine Memo (oder was ähnliches) reinschreibe, sondern langsam Zeile für Zeile, so dass das aussieht, wie der Abspann im Kino?
Das ganze sollte dann auch noch in einer Schleife ablaufen, d.h wenn der Text zuende ist, gehts von vorne los.

Sonst muss ich mir das selber zusammenbasteln. (Wär ja auch nicht Soooo kompliziert, denk ich mal)

_________________
We are, we were and will not be.
chritzl
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 49

WIN 98 - bald Linux! :-)
Delphi 1, 4, 6
BeitragVerfasst: So 30.03.03 12:53 
Bei den schweizern findest du sowas:
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
procedure ScrollMemoDown(Memo: TMemo); 
begin 
  SendMessage(Memo.Handle,{ HWND of the Memo Control } 
    WM_VSCROLL,    { Windows Message } 
    SB_PAGEDOWN,   { Scroll Command } 
    0)             { Not Used } 
end; 

procedure ScrollMemoUp(Memo: TMemo); 
begin       
  SendMessage(Memo.Handle, { HWND of the Memo Control } 
    WM_VSCROLL,    { Windows Message } 
    SB_PAGEUP,     { Scroll Command } 
    0);            { Not Used } 
end; 

// Example, Beispiel: 
procedure TForm1.Button1Click(Sender: TObject); 
begin   
  ScrollMemoDown(Memo1); 
end;
Gausi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: So 30.03.03 13:31 
jep, danke, das funktioniert.
Was ich jetzt noch nicht hinbekomme, ist ein weiches Scrollen. Es soll halt nicht Zeilenweise passieren, sondern pixelweise (oder so), damit der Eindruck einer flüssigen Bewegung entsteht...
Weiss da noch jemand Rat?

_________________
We are, we were and will not be.
maximus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 896

Win XP, Suse 8.1
Delphi 4/7/8 alles prof
BeitragVerfasst: So 30.03.03 14:01 
Das mit memos hab ich keinen plan!

Aber in der Jedi-VCL gibt es tausende componenten, die unteranderen auf diverse scroll-bänder/captions/felder haben!

-> www.delphi-jedi.org
wulfskin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: So 30.03.03 14:22 
Hallo Gausi!

Schau dir mal im PSDK die Function SetScrollInfo an! Mit dieser sollte sich das bewerkstelligen lassen.

Gruß wulfskin!

_________________
Manche antworten um ihren Beitragszähler zu erhöhen, andere um zu Helfen.