Autor Beitrag
starsurfer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 334

Win 95, Win 98, Win XP, Win Vista, Linux
D5 Enterprise ,D2005, D6 Personal, Visual C++ Express 2005, C++ Builder 6 E, Dev-C++
BeitragVerfasst: Sa 01.04.06 16:19 
Hallo,

in meinem aktuellen Projekt (www.delphi-forum.de/...57179&highlight=) möchte ich es jetzt ermöglichen das die Zeilen nummeriert angezeigt werden, Bsp.:

Zeile 1
Zeile 2

...wird zu...

1:Zeile 1
2:zeile 2

allerdings muss ich dazu wissen welche Zeile(Zeilennummer) aktuelle ganz oben im Memo angezeigt wird...

Wie kann man das herausfinden ?

_________________
GEIZ IST GEIL! - Ihr Sozialamt
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: Sa 01.04.06 16:38 
Hallo,

versuchs mal damit:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
var i : Integer;
    s : String;
begin
  i := SendMessage(Memo1.Handle, EM_GETFIRSTVISIBLELINE, 0, 0);
  s := IntToStr(i)+': '+ Memo1.Lines[i];
  showmessage(s);

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

Win 95, Win 98, Win XP, Win Vista, Linux
D5 Enterprise ,D2005, D6 Personal, Visual C++ Express 2005, C++ Builder 6 E, Dev-C++
BeitragVerfasst: Sa 01.04.06 16:44 
ahh, genau Das was ich gesucht habe :wink:
Danke

_________________
GEIZ IST GEIL! - Ihr Sozialamt