![]() |
Scintilla: X-Position bestimmen
Bin grad am testen von Scintilla und brauche euer Fachwissen:
Y-Koordinate gibt's mit
Delphi-Quellcode:
Aber wie bekomm ich die X-Koordinate? :roll:
StatusBar1.Panels[2]:='Zeile '+IntToStr(Scintilla1.GetCurrentLineNumber);
|
Re: Scintilla: X-Position bestimmen
Ist kein Scintilla-Kenner hier? :-(
|
Re: Scintilla: X-Position bestimmen
Bin wohl der einzige bis jetzt. ^^
Also bei OnUpdateUI deines Scintillas fügst du einfach folgenden Code ein:
Delphi-Quellcode:
MFG Chris.
StatusBar1.SimpleText := 'Zeile: ' + IntToStr(Scintilla1.LineFromPosition(Scintilla1.GetCurrentPos) + 1) + ' Spalte: ' + IntToStr(Scintilla1.GetColumn(Scintilla1.GetCurrentPos) + 1);
|
Re: Scintilla: X-Position bestimmen
Also das geht schonmal ganz gut, danke :-)
Aber in welchem Event soll ich das aufrufen!? OnUpdateUI? |
Re: Scintilla: X-Position bestimmen
Zitat:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:08 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz