Autor Beitrag
N47R0N
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 134



BeitragVerfasst: So 15.05.05 22:14 
Hi @ ALL

Ich habe mal son Programm im Internet gefunden ( Scobys Fakemailer! )

Das tool hatte ein bewegliches Caption , das war so wenn man das tool öffnet dann steht oben
beweglich der name des Coders der die ganse zeit von einer seite zur anderen bewegt .

Ich wollt mal wissen wie man sowas zustande bringt .

Danke an alle


Moderiert von user profile iconChristian S.: Topic aus Dateizugriff verschoben am Mo 16.05.2005 um 15:37
Tobias1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 454

Win 98, XP Prof
D3 Prof, D2005 Prof
BeitragVerfasst: So 15.05.05 22:16 
Ich würde einfach Leerzeichen einfügen.

_________________
Auch das schlechteste Buch hat seine gute Seite: die letzte. (John Osborne)
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: So 15.05.05 22:25 
Entweder so, oder man Zeichnet den NC-Bereich (Caption, Border, ...) selbst.

Zweiteres geht über das Überschreiben der WM_NCPAINT-Nachricht, macht aber extrem viel Aufwand, wenn man's richtig machen möchte.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
N47R0N Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 134



BeitragVerfasst: So 15.05.05 22:49 
:( :( :( Verstehe ich irgendwie nicht
Tobias1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 454

Win 98, XP Prof
D3 Prof, D2005 Prof
BeitragVerfasst: So 15.05.05 22:52 
Füge einfach Lehrzeichen z.B mit einem Timer ein, das ist das einfachste.
z.b so
ausblenden Delphi-Quelltext
1:
caption:=' '+caption;					

_________________
Auch das schlechteste Buch hat seine gute Seite: die letzte. (John Osborne)
N47R0N Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 134



BeitragVerfasst: Mo 16.05.05 00:19 
Danke aber das letztenendes verschwindet das Caption und kommt auch nicht wieder ich will das das Caption sich wenn auf der einen seite angekommen ist anfängt sich zur anderen seite hin zu bewegen und wenns geht soll das ganse auch etwas schneller gehen.
crakos
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 195


D2k5 Pers
BeitragVerfasst: Mo 16.05.05 00:26 
ja also ich würds lösen mit nem timer und zwar
erst leerzeichen einfügen, und wenn am ende des bildschirms, wieder löschen
dafür müsste man aber wissen, wann es aus dem bildschirm verschwindet.
wie mh ka ^^ muss ich mal ausprobieren, in welchem zusammenhang das mit label.length steht

_________________
Das Ende der Menschheit ist der Anfang der Unendlichkeit.
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Mo 16.05.05 08:04 
Guck dir des mal an:
Einloggen, um Attachments anzusehen!
delfiphan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2684
Erhaltene Danke: 32



BeitragVerfasst: Mo 16.05.05 09:22 
user profile iconFabian W.: Schon mal ganz okay (abgesehen von der fehlenden Einrückung im Code). Statt Form1.Width könnte/sollte man noch Form1.ClientWidth nehmen (Rand interessiert nicht). War aber nicht der Titel gemeint, der sich bewegen sollte?
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Mo 16.05.05 09:25 
Ich hab das nur kurz in D3 geschrieben, geklotzt ob's funzt und hochgeladen. Sonderlich viele Gedanken hab ich mir nicht dazu gemacht.
Einrückungen im Code sind bei dem Bissl doch net nötig.
crakos
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 195


D2k5 Pers
BeitragVerfasst: Mo 16.05.05 10:44 
ja ok, das ganze label verschieben geht auch :)
Aber wie Löse ich denn das, mit wem Leerzeichen addieren, solange bis das wort aus dem fenster kommt.
Beispiel
Hallo soll von Rechts nach Links auf dem Label wandern. Bis auf Welt trifft. Dann soll es wieder zurück, bis zum anfang des Labels und wieder zu Welt.

_________________
Das Ende der Menschheit ist der Anfang der Unendlichkeit.
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Mo 16.05.05 10:48 
Das mit den Leerzeichen ist so ne Sache, da bei unterschiedlichen Schriften, und unterschliedlichen Formulargrößen und Positionnen die Berechnung einfach zu kompliziert wird. Ich würde das Labelmm dann halt nur biss zu Welt.left verschieben.
crakos
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 195


D2k5 Pers
BeitragVerfasst: Mo 16.05.05 10:50 
Gut, sowas wollte ich hören :> Dann hab ich ja nix übersehen.
Achja natürlich kann man einfach selber gucken, wieviele Leerzeichen ins Label passen, bis der Text raus geht ;) Aber das ist ja dumm :>

_________________
Das Ende der Menschheit ist der Anfang der Unendlichkeit.
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Mo 16.05.05 10:52 
Eben , da gibt's viel elegantere Lösunge, wie diese :wink:
delfiphan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2684
Erhaltene Danke: 32



BeitragVerfasst: Mo 16.05.05 10:54 
user profile iconFabian W. hat folgendes geschrieben:
Das mit den Leerzeichen ist so ne Sache, da bei unterschiedlichen Schriften, und unterschliedlichen Formulargrößen und Positionnen die Berechnung einfach zu kompliziert wird. Ich würde das Labelmm dann halt nur biss zu Welt.left verschieben.

Siehe TextExtent, bzw. TextWidth. Soo kompliziert ist die Berechnung auch nicht. Aber ja, das mit den Leerzeichen ist tatsächlich etwas unschön... ;)
3rdnuss
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 139



BeitragVerfasst: Mo 16.05.05 10:56 
Schau doch mal bei den Jedi Komponenten.
Dort gibt es ein paar (8) Labels.
Die meisten bewegen sich auch (links - rechts/ oben - unten/ zickzack u.s.w)
crakos
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 195


D2k5 Pers
BeitragVerfasst: Mo 16.05.05 11:07 
Zitat:
Siehe TextExtent, bzw. TextWidth

Habs mal grad ausprobiert. Das muss man in einem Canvas machen Oo
Wie schreibt man da denn was?

_________________
Das Ende der Menschheit ist der Anfang der Unendlichkeit.
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Mo 16.05.05 13:38 
ausblenden Delphi-Quelltext
1:
Form1.Canvas.TextOut(10,10,'khucghfdi');					
3rdnuss
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 139



BeitragVerfasst: Mo 16.05.05 14:24 
user profile icon3rdnuss hat folgendes geschrieben:
Schau doch mal bei den Jedi Komponenten.
Dort gibt es ein paar ( 8 ) Labels.
Die meisten bewegen sich auch (links - rechts/ oben - unten/ zickzack u.s.w)
crakos
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 195


D2k5 Pers
BeitragVerfasst: Mo 16.05.05 14:29 
mh schön, habs beim ersten mal schon vernommen. Aber möchte erstmal keine/kaum zusätze haben Ich les öffters Jedi & Indy. Ich weiss nicht mehr, als das es zusätze mit mehr funktionen sind.

_________________
Das Ende der Menschheit ist der Anfang der Unendlichkeit.