Autor Beitrag
ardely
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 66



BeitragVerfasst: Fr 30.10.09 10:29 
Hallo,
Wie kann ich die länge des Horizontal ScrollBars eines richedit ermitteln?

Z.B in die properties von einem Scrollbox gib es ein
ScrollBox1.HorzScrollBar.Range

in einem TRichedit gibt dieses properties nicht...

Danke für ihre hilfe.
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Fr 30.10.09 11:26 
Hallo,

was willst Du denn mit dem Wert erreichen?

Du könntest die Breite des RTF-Textes berechnen, Stichwort EM_FORMATRANGE

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
ardely Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 66



BeitragVerfasst: Fr 30.10.09 11:47 
Möchte gern die gleiche horizontale länge vom richedit und Scrollbox einbehalten..
beide Komponet laufen parallel..

Weiss noch nicht wie…

Danke.

---Moderiert von user profile iconNarses: Beiträge zusammengefasst---

Ich möchte gern so etwas erreichen:
ausblenden Delphi-Quelltext
1:
ScrollBox1.HorzScrollBar.Range := richedit1.(HorzScrollBar.Range)??					


Danke.
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Fr 30.10.09 12:50 
Hallo,

helfen Dir GetScrollRange(...) oder GetScrollPos(...) weiter?

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
ardely Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 66



BeitragVerfasst: Fr 30.10.09 15:08 
Danke Lannes,
GetScrollRange(...) hat mir geholfen, ich komme +/- zurecht...

Schönes Wochenende, grüss.
Ardely