Lorsque je selection une couleur de mon TColorDialog, peu importe la couleur choisi y me retournera toujours les valeurs suivante :
R = 212
G = 208
B = 200
Voici ma procedure :
procedure TForm1.PIClick(Sender: TObject);
var
RGBColor : LongInt;
begin
if Couleur.Execute then
begin
RGBColor := ColorToRgb(Color);
IR.Text := IntToStr(GetRValue(RGBColor));
TIR.Position := GetRValue(RGBColor);
IG.Text := IntToStr(GetGValue(RGBColor));
TIG.Position := GetGValue(RGBColor);
IB.Text := IntToStr(GetBValue(RGBColor));
TIB.Position := GetBValue(RGBColor);
PI.Color := Color;
end;
end;
Et le Panel(PI) n'affiche aucune couleur