Autor Beitrag
TriphunEM
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 97



BeitragVerfasst: Di 17.01.06 09:44 
Hallo,

ich hab gesucht, aber nix weiter gefunden.
Ich möchte einen Text in die Titelbar eines Fensters links neben den drei Icons platzieren.
Allerdings nicht in einer Form von einem eigenen Programm sondern global auf jeden aktivien Fenster.
(siehe Screenshot im Anhang)

Ich hab mal ein Programm was die Uhrzeit in die Titelleiste eines Fensters setzt ebenfalls angehangen. Eigentlicht will ich das Programm nachbauen!!!

Kann mir jemand helfen

Moderiert von user profile iconNarses: Anhang "clock.zip" wegen Virenverdacht gelöscht.
Einloggen, um Attachments anzusehen!
Martin1966
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1068

Win 2000, Win XP
Delphi 7, Delphi 2005
BeitragVerfasst: Di 17.01.06 09:55 
user profile iconTriphunEM hat folgendes geschrieben:
Ich möchte einen Text in die Titelbar eines Fensters links neben den drei Icons platzieren.

<- Links - - - - - - Rechs ->

:mrgreen:

_________________
Ein Nutzer der Ecke ;-)
TriphunEM Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 97



BeitragVerfasst: Di 17.01.06 10:32 
naja ich meine rechts in der titelliste, aber links neben den icons !
[vsc]PrimeTime
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20

XP SP0
Delphi 6 Pers. (eng), Delphi 2005
BeitragVerfasst: Di 17.01.06 11:00 
Heyho,
ich als n00b hab es einfach mit Leerzeichen gemacht.

Ne deluxe-Version von dem ganzen geht auch, wenn man die Anzahl der Leerzeichen von der Breite der Form abhängig macht
z.B:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
procedure Form1.Create{... usw};
var
  titel: string
 {..}
begin
  titel:='Mein Titel';
  for i:=0 to Form1.Width-50 do //wieviel Leerzeichen man braucht musst du testen :-)
    begin
      titel:=titel+' ';
    end;
  Form1.Caption:=titel;
end;

Ich weiß, es ist nicht die feine englische Art, aber so kanns gehen. Ich hab's jetzt selbst nicht probiert, aber ich muss doch stark hoffen, dass es so funktionniert.

Greetz
Manu

_________________
-=the things you own, own you=-
JESUS SAVES, the rest of you takes full damage!
TriphunEM Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 97



BeitragVerfasst: Di 17.01.06 11:31 
sorry, aber wie im posting steht, meine ich nicht die eigene Form, sondern das gerade aktive fenster. egal ob IE, Firefox oder der Explorer!