Autor Beitrag
p_m
Hält's aus hier
Beiträge: 9



BeitragVerfasst: So 20.05.07 14:01 
Und zwar möchte ich mein gesamtes Formular farbig hinterlegen
und hab folgenden Code

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
procedure TForm2.Hintergrund1Click(Sender: TObject);
begin
   if DFarbe.Execute then
             Begin
             Form2.Color    := DFarbe.Color;
             end;
end;


Kommt aber ne Fehlermeldung (Form2 nicht deklariert) obwohl ich mich in Unit2, wo ja eigentliich Form 2 deklariert ist befinde

Bitte um Hilfe!!!!!!!!!!

Moderiert von user profile iconTino: Delphi-Tags hinzugefügt.
Moderiert von user profile iconTino: Topic aus Sonstiges (Delphi) verschoben am So 20.05.2007 um 14:16
Regan
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2157
Erhaltene Danke: 72


Java (Eclipse), Python (Sublimetext 3)
BeitragVerfasst: So 20.05.07 14:03 
ich glaub da solltest du uns mal den gesamten code zeigen.
und benutze bitte delphi-tags, um quellcode zu schreiben,

einfach delphi in eckige klammern setzen: [delphi]
arj
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 378

Win XP/Vista, Debian, (K)Ubuntu
Delphi 5 Prof, Delphi 7 Prof, C# (#Develop, VS 2005), Java (Eclipse), C++, QT, PHP, Python
BeitragVerfasst: So 20.05.07 14:12 
Wenn du dich wirklich in der Klasse TForm2 befindest, kannst auch einfach
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
procedure TForm2.Hintergrund1Click(Sender: TObject);
begin
  if DFarbe.Execute then
  Begin
    Color := DFarbe.Color;
  end;
end;


schreiben.
Noob23
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 93

Win XP, Win Server 2003, Win 7, Ubuntu
Delphi 7, c/c++ Dev-c++, µC-8051 Keil, Webdesign Notepad++
BeitragVerfasst: So 20.05.07 14:14 
verstehe ich es richtig das du 2 form´s hast bei dem du die farbe von einem zum anderen übertragen willst? :roll: