Autor Beitrag
DD
ontopic starofftopic starofftopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 41

Win 2000
D6 Pers
BeitragVerfasst: Di 14.10.03 17:07 
Tag auch.

Kennt jmd. ein gutes Tutorial o.ä. zum Programmieren so eines kleinen Newstickers (beliebiger Text, der die ganze Zeit von rechts nach links läuft).
Wäre demjenigen, der mir weiterhelfen könnte sehr verbunden!

Gruß DD

_________________
Never change a running system!
StefanH
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: Di 14.10.03 17:18 
So was?

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
procedure TFormLauf.ButtonLaufClick(Sender: TObject); 
begin 
   LabelLauf.Caption := EditEingabe.Text; 
end

procedure TFormLauf.TimerLaufTimer(Sender: TObject); 
VAR Text : STRING
begin 
   Text := Copy (LabelLauf.Caption,2,length(LabelLauf.Caption)-1)+ 
                LabelLauf.Caption[1]; 
   LabelLauf.Caption := Text; 
end

procedure TFormLauf.FormCreate(Sender: TObject); 
begin 
   ButtonLaufClick(Sender); 
end;


Stefan

_________________
"Als es noch keine Computer gab, war das Programmieren noch relativ einfach."(Edsger W. Dijkstra)
"Ich bin nicht von Sinnen, sondern ich rede wahre und vernünftige Worte." (Paulus)
DD Threadstarter
ontopic starofftopic starofftopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 41

Win 2000
D6 Pers
BeitragVerfasst: Di 14.10.03 17:29 
Ups sorry...meine Schuld.
Meinte keinen Delphi-ticker. Das hätte ich dann selber geschafft.
Ich meine einen JavaScript ticker sprich für ne HP.
Aber trotzdem danke dir für deine Bemühungen.

Gruß, DD

_________________
Never change a running system!
NCortex
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 126

WIN 2000
D7 Enterprise
BeitragVerfasst: Di 14.10.03 19:58 
in php hab ich mir mal nen ganz simplen newsscript gemacht, der alles inner textdatei speichert... das is relativ simple...

sonst gibt es fertige java- applets dafür...

_________________
"...by all means, do not use a hammer." (aus einer IBM Technikerdokumentation ca. 1920)
--->außer es kam von Microsoft<---
fcg
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 360

WinXP
D3 Prof, D6 Pers
BeitragVerfasst: Di 14.10.03 20:03 
mal in PHP basierend auf na Textdatei die folgende Struktur hat:

ausblenden Quelltext
1:
2:
3:
 news1
 news2
 news3


der PHP Code dafür, der zufällig einen der NewsZeilen ausgibt:

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
<?php

$msg_file=file("news.txt");
$msg_count = count ($msg_file);

$rand_show=rand(0,$msg_count);

echo $msg_file[$rand_show];

?>


so geht es zumindest...

fcg

_________________
.: Wer für alles offen ist, kann nicht ganz dicht sein! :.