Autor Beitrag
DelphiMan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 73



BeitragVerfasst: Di 27.05.03 16:46 
Hallo zusammen!

Habe eine Paintbox und bei dieser ein OnPaint-Ereignis definiert.
Startet man das programm so wird alles wunderbar in die paintbox gezeichnet.
Fügt man nun ein Panel aufs formular, schiebt die Paintbox auf dieses und startet das programm wiederum so erscheint nix - es wird nichts auf paintbox gezeichnet. jedenfalls sieht man es nicht.
das scheint auch an dem befehl lockwindowupdate() den ich verwende zu liegen. kennt jemand eine lösung?
Vielen Dank schonmal!

MfG
DelphiMan
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Di 27.05.03 16:57 
Das Panel arbeitet als Container, Du musst die Paintbox im Panel einfügen. Dazu Paintbox markieren -> STRG+X, danach Panel markieren -> STRG+V

Und schon ist der Parent der Paintbox das Panel nicht mehr mainform und es funktioniert. DU kannst die Paintbox allerdings dann nicht mehr einfach so rausziehen, sondern nur wie oben.

Gruß
DelphiMan Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 73



BeitragVerfasst: Di 27.05.03 17:10 
Titel: nee
mit Paintbox aufs Panel schieben hab ich das mit STRG+X/V schon gemeint.
die Paintbox ist wirklich auf dem Panel.