Autor Beitrag
Tor
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23


D5 Ent
BeitragVerfasst: Fr 08.10.04 10:56 
Wie kann ich Richedit dazu bewegen das wenn die letzte eingabe getätigt wurde und das ende der Richedits erreicht ist das es automatisch nach unten scrollt wie in einem chat halt?
.Chef
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1112



BeitragVerfasst: Fr 08.10.04 11:01 

_________________
Die Antworten auf die 5 häufigsten Fragen:
1. Copy(), Pos(), Length() --- 2. DoubleBuffered:=True; --- 3. Application.ProcessMessages bzw. TThread --- 4. ShellExecute() --- 5. Keine Vergleiche von Real-Typen mit "="!
Tor Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23


D5 Ent
BeitragVerfasst: Fr 08.10.04 11:06 
noch mal THX
Tor Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23


D5 Ent
BeitragVerfasst: Fr 08.10.04 11:14 
Ähm ich hab da noch ein Kleines Problem mit deinem Code und zwar wird der Text nicht mehr angezeigt bis ich auf dem scroööbalken klicke dan ist er wieder sicht bar.
Elite
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Fr 08.10.04 11:22 
Einfach im OnChange Ereignis des Richedits folgendes eintragen:
ausblenden Delphi-Quelltext
1:
DeinRichEdit.Perform(WM_VSCROLL,SB_BOTTOM,0);					

Hab damit kein derartiges Problem wie du es beschreibst.
Tor Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23


D5 Ent
BeitragVerfasst: Fr 08.10.04 11:28 
ich habe den gleichen code aber ich habe das Problem nun mal kann das auch am Delphi 5 liegen
Tor Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23


D5 Ent
BeitragVerfasst: Fr 08.10.04 12:12 
Lösung des Problems

in den OncHange schreiben
ausblenden Delphi-Quelltext
1:
 txtChatText.Perform(WM_VSCROLL,SB_TOp,0);					


und ein Setfokus erst auf den Richtext und anschließend gleich auf das Editfeld

diese Variante Klapt zumindest unter Delphi 5