Autor Beitrag
pHaRyNx
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 94

win 95, win 2000, win xp, VISTA, Ubuntu 8.04
Delphi 7 PE
BeitragVerfasst: Sa 10.12.05 11:43 
hallo!
ich frag mich gerade, da ich ein einderes tolles programm gesehen hab (war glaube ich aber nicht in delphi), ob in delphi (7) laufschriften möglich sind, dass z.B. der text von oben nach unten scrollt oder in einer laufschrift vorbeisaust...
wie geht das, oder geht das garnicht???


Moderiert von user profile iconChristian S.: Topic aus Off Topic verschoben am Sa 10.12.2005 um 12:06
andras
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 460

Win XP, Win Vista Home Premium, Ubuntu Dapper Drake
Delphi 2005 Pers
BeitragVerfasst: Sa 10.12.05 11:49 
hallo!
nimm einfach einen timer und ein label und mit dem timer änderst du andauernd die position des labels.
Codewalker
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 46



BeitragVerfasst: Sa 10.12.05 11:54 
In der JVCL sind dafür einige schon fertige Komponenten vorhanden. Soweit ich weiss, ist das ein scrollendes Label (links<-->rechts) und scrollender, mehrzeiliger Text (oben<-->unten). Infos über Installation und Download der JVCL bekommst du unter www.dsdt.info/jedi/jvcl/
pHaRyNx Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 94

win 95, win 2000, win xp, VISTA, Ubuntu 8.04
Delphi 7 PE
BeitragVerfasst: Sa 10.12.05 11:56 
jo, danke für die infos. werde es mal mit dem timer und label testen.
mfg pHaRyNx
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Sa 10.12.05 18:15 
Hab ich letztens für Version 2 von Suche in der Entwickler-Ecke DF-INFO gebastelt:

ausblenden Globale Variablen
1:
2:
3:
  NewsTicker: Array of String;
  News:       String;
  AktPos:     Integer;

ausblenden OnCreate
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
  News := 'News-Ticker +++ DF-Info 2 by GTA-Place (made for Delphi-Forum.de) ' +
          '+++ Es folgen News von N24.de +++ News werden geladen... +++ ';
  SetLength(NewsTicker, Length(News));

  for X := 1 to Length(News) do
    NewsTicker[X - 1] := News[X];

  AktPos := 1;

  Ticker.Enabled := True;

ausblenden Ticker-Timer
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
var
  TempStr: String;
  X:       Integer;
begin
  TempStr := '';
  X       := AktPos;

  while Length(TempStr) < 46 do
  begin
    if X = Length(NewsTicker) then
      X := 0;

    TempStr := TempStr + NewsTicker[X];

    inc(X);
  end;

  inc(AktPos);
  if AktPos > Length(NewsTicker) then
    AktPos := 0;

  TickerLab.Caption := TempStr;

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)