Autor Beitrag
Jakob_Ullmann
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1747
Erhaltene Danke: 15

Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
BeitragVerfasst: Mo 26.11.07 20:09 
Hallo,

ich habe kürzlich rausbekommen, wie man den TWebBrowser in den Editiermodus versetzt. Kann man da irgendwie auf die Selektion zugreifen und dort Schriften setzen? Oder wenigstens den selektierten Code abfragen und diesen setzen? Danke schonmal.
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: Mo 26.11.07 22:47 
Hallo,

kennst du die Seite?:
MSHTML-Editiermodus in Delphi-Applikationen
Im Abschnitt "Den Editiermodus aktivieren und Befehle geben" ist genau Dein Vorhaben beschrieben.

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
Jakob_Ullmann Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1747
Erhaltene Danke: 15

Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
BeitragVerfasst: Di 27.11.07 16:51 
Cool, danke!
Jakob_Ullmann Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1747
Erhaltene Danke: 15

Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
BeitragVerfasst: Sa 01.12.07 17:39 
Noch eine Frage: Wie kann auf ein Attribut des selektierten Tags verändern? Ich würde gerne den Border eines P-Absatzes auf "1px solid black" verstellen. Aber mit activeElement scheint der Body verändert zu werden...