Autor Beitrag
McFarlane
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 68

WIN XP Prof.
Delphi 2005 PE, Turbo Delphi 2006, PHP (Eclipse)
BeitragVerfasst: Di 20.02.07 14:46 
Tach,
folgendes ist mein Quellcode:
ausblenden Delphi-Quelltext
1:
2:
3:
  diagcol.Execute();
  if Sender = bcol1 then col1.Color := diagcol.Color;
  if Sender = bcol2 then col2.Color := diagcol.Color;


Leider ändert es die Farbe auch, wenn ich im ColorDialog auf Abbrechen klicke. Wie kann ich das unterscheiden?

Danke, McFarlane

_________________
21 ist nur die halbe Wahrheit...
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Di 20.02.07 14:54 
ausblenden Delphi-Quelltext
1:
2:
if colordialog1.execute then
  machsachen;


führt den machsachen-code nur dann wenn der Colordialog erfolgreich (mit OK) beendet wurde.

lg el

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
McFarlane Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 68

WIN XP Prof.
Delphi 2005 PE, Turbo Delphi 2006, PHP (Eclipse)
BeitragVerfasst: Di 20.02.07 17:19 
dankeschön

_________________
21 ist nur die halbe Wahrheit...
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Mi 21.02.07 23:19 
keine Ursache! Funktioniert im übrigen mit jedem Dialog. (Wollt ihr nur mal so anmerken für die künftigen Suchenden)

lg el

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.