AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Alle Controlumrisse auf Image malen

Ein Thema von Neutral General · begonnen am 26. Dez 2004 · letzter Beitrag vom 26. Dez 2004
Antwort Antwort
Benutzerbild von Neutral General
Neutral General

Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#1

Alle Controlumrisse auf Image malen

  Alt 26. Dez 2004, 16:24
Ich würde gerne alle Controls von einer Form auf ein Image malen.
Ich mache das so, aber das Ergebnis ist irgendwie nicht zufriedenstellend
Die Controls werden in falscher Größe und Position gemalt

Das ist meine Procedure mit der es nicht richtig geht :

Delphi-Quellcode:
procedure ControlsMalen;
var i : Integer;
begin
  for i := 0 to Form1.ControlCount-1 do begin
   Form2.Image1.Canvas.Brush.Color := clblack;
   Form2.Image1.Canvas.Rectangle(Form1.Controls[i].Left,Form1.Controls[i].Top,
                                 Form1.Controls[i].Width,Form1.Controls[i].Height);
  end;
end;
Michael
"Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
  Mit Zitat antworten Zitat
pirechner

Registriert seit: 29. Jun 2004
36 Beiträge
 
Delphi 7 Professional
 
#2

Re: Alle Controlumrisse auf Image malen

  Alt 26. Dez 2004, 16:54
hi
wenn ich mich nicht vertue müsste es heißen:
Delphi-Quellcode:
Form2.Image1.Canvas.Rectangle(Form1.Controls[i].Left,Form1.Controls[i].Top,
                              Form1.Controls[i].Left+Form1.Controls[i].Width,
                             Form1.Controls[i].Top+Form1.Controls[i].Height);
ich hoffe ich konnt helfen.
pi ist Sonntags = 4
  Mit Zitat antworten Zitat
Benutzerbild von Neutral General
Neutral General

Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#3

Re: Alle Controlumrisse auf Image malen

  Alt 26. Dez 2004, 17:06
...
Michael
"Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 09:48 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