Autor Beitrag
spike0
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 77



BeitragVerfasst: Mi 07.12.05 17:19 
Wie der Titel schon sagt: Wie bekomme ich das Handle des Delphi-Quelltexteditors?
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5285
Erhaltene Danke: 29

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Mi 07.12.05 18:16 
was hast du denn vor, vielleicht geht das was du vorhast auch einfacher, ansonsten findest du die lösung in der suche, das wurde hier schon mehrmals behandelt ;) obwohl es beim qt-editor doch etwas anders ist :?
spike0 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 77



BeitragVerfasst: Mi 07.12.05 18:50 
ja, eben. Ich habe in der Suche schon nachgeguckt, und jetzt weiß ich, wie ich das machen kann (ich will einen Text in den Delphi-Editor einfügen), doch dazu brauche ich ja das Handle.
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5285
Erhaltene Danke: 29

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Mi 07.12.05 18:53 
ok dann brauchst du es glaube ich doch nicht, man kann delphi erweitern, also plugins schreiben, such dir dazu mal ein tutorial, da steht drin, wie du text in den quelltexteditor bekommst ;)
spike0 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 77



BeitragVerfasst: Mi 07.12.05 19:02 
Ok, danke, aber wo kann ich so ein tutorial denn finden? Muss der User dieses Plugin dann auch besitzen? Das wäre ja nicht so gut...
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5285
Erhaltene Danke: 29

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Mi 07.12.05 19:05 
genau wie der user auch dein programm besitzen muss um es zu nutzen ^^
spike0 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 77



BeitragVerfasst: Fr 09.12.05 21:55 
Hmmmmmm... hat sonst jemand ne Idee?
Manfred
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 90



BeitragVerfasst: Sa 31.12.05 00:12 
Hi!
Kannst Du mir mal kurz erklären, welche Art von Idee Du noch suchst? Worin liegt denn der Unterschied, ob der Anwender eine von Dir erstellte Software besitzt, die sich "Programm" schimpft, oder ob er eine von Dir erstellte Software besitzt, die sich "plugin" schimpft?

_________________
Computer können schneller rechnen als wir, deshalb machen sie auch mehr Fehler
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5285
Erhaltene Danke: 29

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Sa 31.12.05 12:13 
im grunde ist es das gleiche 8)
SAiBOT
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 323
Erhaltene Danke: 6

XP SP2; 7
D7; D2009
BeitragVerfasst: Sa 31.12.05 16:06 
versuche es mit X-Spy, wobei dein Weg wirklich nicht der beste ist!

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
var
  wnd: HWND;
begin
  wnd :=  FindWindow('TEditWindow', 'Unit1.pas');
  wnd :=  FindWindowEx(wnd, 0, 'TPanel', nil);
  wnd :=  FindWindowEx(wnd, 0, 'TPanel', nil);
  wnd :=  FindWindowEx(wnd, 0, 'TPanel', nil);
  wnd :=  FindWindowEx(wnd, 0, 'TPanel', nil);
  wnd :=  FindWindowEx(wnd, 0, 'TEditControl', nil);

  if wnd <> 0 then
  begin

  end;
end;