Autor Beitrag
adler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 511

Windows XP
Delphi 05 Pers
BeitragVerfasst: Mo 24.05.04 13:12 
Hallo,

habe hier gesucht, aber ich glaube diese Frage wurde noch net gestellt.
Vllt. steh ich aufem schlauch?
Wie bekomme ich von nem SynEdit die Zeichen- und Zeilennummer zurückgegeben?
Oder kann ich das irgendwie ausrechnen?
Oder sonstiges? :D

_________________
Wo's nix zu gucken gibt, gibts vielleicht was zu hören.
mirage228
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 338

Win 7 Prof.
Delphi 2005 Prof., Delphi 2010 Prof.
BeitragVerfasst: Mo 24.05.04 13:49 
Hi,

wie wärs mit SynEdit.CaretXY ? ;)

mfG
mirage228

_________________
May the source be with you, stranger.
adler Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 511

Windows XP
Delphi 05 Pers
BeitragVerfasst: Mo 24.05.04 14:16 
Kann ich nichts mit anfangen ^^
Dann hab ich die Pixel und jetzt? :D

_________________
Wo's nix zu gucken gibt, gibts vielleicht was zu hören.
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Mo 24.05.04 14:22 
Nein... das Caret ist sowas wie der Cursor für die Tastatur - also der senkrechte Balken und das ist doch genau das was du suchst.. oder..?

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
adler Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 511

Windows XP
Delphi 05 Pers
BeitragVerfasst: Mo 24.05.04 14:24 
Ja, den cursor brauch ich,aber hab ich nur ein leerzeichen gemacht, hat es sich von 62 auf 70 erhöht?
EDIT: das x

EDIT2: ^^ mein fehler, sollte gehen ^^
In welchem event sollte ich das am besten reinschreiben?

_________________
Wo's nix zu gucken gibt, gibts vielleicht was zu hören.
mirage228
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 338

Win 7 Prof.
Delphi 2005 Prof., Delphi 2010 Prof.
BeitragVerfasst: Mo 24.05.04 15:32 
adler hat folgendes geschrieben:
Ja, den cursor brauch ich,aber hab ich nur ein leerzeichen gemacht, hat es sich von 62 auf 70 erhöht?
EDIT: das x

EDIT2: ^^ mein fehler, sollte gehen ^^
In welchem event sollte ich das am besten reinschreiben?


Du solltest es im OnStatusChange ausführen.

Aber du solltest vorher diese Bedingung einbauen:
if Changes * [scAll, scCaretX, scCaretY] <> [] then // ...

Dann wird die Aktualisierung deiner Anzeige nur dann durchgeführt, wann es nötig ist.

mfG
mirage228

_________________
May the source be with you, stranger.
adler Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 511

Windows XP
Delphi 05 Pers
BeitragVerfasst: Mo 24.05.04 16:00 
Die Ifabfrage dauert wahrscheinlich länger als das ausführen ^^

_________________
Wo's nix zu gucken gibt, gibts vielleicht was zu hören.
adler Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 511

Windows XP
Delphi 05 Pers
BeitragVerfasst: Sa 25.09.04 23:42 
Löschen Pls ;)

_________________
Wo's nix zu gucken gibt, gibts vielleicht was zu hören.