Autor Beitrag
Hackepjotre
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 45



BeitragVerfasst: So 29.04.07 20:37 
Hallo alle miteinander,

ich würde gerne die Steuerelemente eines Frames drucken wollen. Weiss jemand wie das gehen könnte. Also würde eventuell über einen Screenshot gehen aber das is ne ziemlich unsaubere und fumlige Arbeit, vllt weiss jemand etwas besseres.

Schöne Grüße
Adrian
Hackepjotre Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 45



BeitragVerfasst: So 29.04.07 20:37 
Und könnte man diese vllt in ein Picture reinkopieren und dann als Bildspeichern?
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: So 29.04.07 21:47 
Du kannst bei TForm PrintTo ein Canvas übergeben. Genauso kannst Du Dir über das Form-Canvas eine direkte Kopie des Client-Inhaltes (also ohne Titelleiste) holen und diese in ein TBitmap kopieren und Speichern.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Hackepjotre Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 45



BeitragVerfasst: So 29.04.07 21:53 
Ja schon mal ganz gut, danke, aber wie geht das mit einer Groupbox oder einem Panel, dass nur diese Steuerelement als Bildgespeichert werden?? Vllt eventuell mit den apssenden Befehlen.

Danke im Vorraus
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: So 29.04.07 22:09 
Du kannst Dir von jedem Control sein Rechteck geben lassen und dieses mit Hilfe von ClientToScreen und ScreenToClient auf die Form umrechnen.

Also: Rechteck eines Buttons auf einem Panel:
ausblenden Delphi-Quelltext
1:
ButtonRectOnForm := Form.ScreenToClient(Panel.ClientToScreen(ButtonRect));					


HTH.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Hackepjotre Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 45



BeitragVerfasst: So 29.04.07 22:46 
Also ganz hab ich das noch nich verstanden mit dem Printto^^ sorry aber....