Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   scintilla auf TPanel platzieren (https://www.delphipraxis.net/174536-scintilla-auf-tpanel-platzieren.html)

StarFire_ 27. Apr 2013 16:34

scintilla auf TPanel platzieren
 
Hallo Welt,

Ich moechte gerne die Scintilla Komponente verwenden, und diese auf ein TPanel platzieren; leider scheitere ich dabei, aber der Reihe nach:

Ich habe ein TAdvPage (TMS), auf dieses wird ein TFrame, bzw eine eigene Ableitung davon platziert. Auf dieses Frame kommt nachher ein TPanel mit Name "pnBackground". Auf dieses Panel versuche ich (im Create des abgeleiteten Frames) das Scintilla Fenster zu platzieren:

Delphi-Quellcode:
 Self.FScintillaMemoHandle := CreateWindowEx(
    0,
    'Scintilla',
    '',
    WS_CHILD OR WS_VISIBLE OR WS_TABSTOP OR WS_CLIPCHILDREN,
    Self.pnBackground.Left, Self.pnBackground.Top,
    Self.pnBackground.Width, Self.pnBackground.Height,
    Self.pnBackground.Handle,
    0,
    HInstance,
    nil);
Leider klappt das nicht, der Bereich ist weiss und sonst gar nichts. Das Scintilla Fenster wird (soweit ich das beurteilen kann) erzeugt: Der Handle ist gueltig und Versuche, das Fenster direkt auf das TAdvPage zu setzen, haben funktioniert (Ich brauche aber das Ding auf dem Panel, weil auf dem Page allenfalls noch ein zweites Fenster erzeugt werden kann; da kriege ich sonst Probleme mit dem Resizing).

Hat jemand eine Idee, was ich da falsch mache?

Danke im Voraus!
Andreas


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:25 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz