Autor Beitrag
lblbw
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 122

Win XP, Win 7
Delphi7 Enterprise
BeitragVerfasst: Do 10.04.08 22:28 
Hallo,

ich bins mal wieder. Ich habe folgendes Problem: An meinem Rechner, an dem ich programmiere, habe ich hinter den Stream-Titel keine 2 senkrechten Balken. An meinem Laptop, und an jeden anderen Rechner sind diese Balken vorhanden. (siehe Screenshots).

In den betreffenden Quelltext habe ich bisher auch nichts derartiges gefunden:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
  url:='http://netbeat.fm:8000';
  BassPlayer1.PlayNetStream(url);
  radio:=true;
  BassPlayer1.GetNetStreamInfo(Memo1.Lines);
  csTickerStatic1.Caption:=Memo1.Lines.Text;


Woher können nun diese Balken kommen?
Einloggen, um Attachments anzusehen!
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Fr 11.04.08 09:11 
Diese senkrechten Striche stehen normalerweise für nicht-darstellbare Zeichen.
Welche Schriftart verwendest du da?
lblbw Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 122

Win XP, Win 7
Delphi7 Enterprise
BeitragVerfasst: Fr 11.04.08 09:13 
Ich verwende MS Sans Serif. Diese Schriftart verwende ich bei allen Labeln.
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: Fr 11.04.08 09:17 
Wie sieht denn die Funktion aus, die den Titel liefert? Und wie sieht die Ausgabe in der Memo aus - sind da auch diese Striche?

_________________
We are, we were and will not be.
lblbw Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 122

Win XP, Win 7
Delphi7 Enterprise
BeitragVerfasst: Fr 11.04.08 09:31 
Ich habe die Memo1 al sichtbar gemacht. In der Memo ist der Titel korrekt angezeigt. Im Ticker aber nicht.

Die Funktion die den Titel liefert sieht so aus:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
procedure TBassPlayer.GetNetStreamInfo(ErgebnisListe: TStrings);
var
  metainfo: PChar;
  posi, count: integer;
begin
  metainfo := BASS_ChannelGetTags(Channel, BASS_TAG_META);
  if (metainfo <> nil) then
  begin
    posi := Pos('StreamTitle=', metainfo);
    if Posi <> 0 then
    begin
      posi := posi + system.length('StreamTitle=') + 1;
      count := Pos(';', metainfo) - posi - 1;
      ErgebnisListe.add(Copy(metainfo, posi, count));
    end else
      ErgebnisListe.Add('n/a');
  end;
end;
Einloggen, um Attachments anzusehen!
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Fr 11.04.08 09:34 
2 Stück davon, am Ende des Titels.. ich behaupte mal, dass das ein Zeilenumbruch ist..

Setz um den Ausgabestring mal ein trim()
Diese Funktion entfernt dir solche Steuerzeichen.

Alternativ könntest du auch nur die erste Zeile des Memos in das Label schreiben - nicht den gesamten Text.


Zuletzt bearbeitet von Xentar am Fr 11.04.08 09:35, insgesamt 1-mal bearbeitet
zuma
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 660
Erhaltene Danke: 21

Win XP, Win7, Win 8
D7 Enterprise, Delphi XE, Interbase (5 - XE)
BeitragVerfasst: Fr 11.04.08 09:35 
könnte es sein, das das vom Memo.lines.text kommt ?
das das evt. die Steuerzeichen für Zeilenumbruch sind ?

Edit:
ups, da war einer schneller ;)

_________________
Ich habe nichts gegen Fremde. Aber diese Fremden sind nicht von hier! (Methusalix)
Warum sich Sorgen ums Leben machen? Keiner überlebts!
lblbw Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 122

Win XP, Win 7
Delphi7 Enterprise
BeitragVerfasst: Fr 11.04.08 09:39 
Danke, das wars. Da hätte man auch selbst drauf kommen können. :D