如何取得ColorDialog返回的值
像这样
procedure TForm1.Edit4Change(Sender: TObject);
begin
if ColorDialog1.Execute then
edit4.Text := ColorDialog1.Color;
end;应该怎么写呀
像这样
procedure TForm1.Edit4Change(Sender: TObject);
begin
if ColorDialog1.Execute then
edit4.Text := ColorDialog1.Color;
end;应该怎么写呀
if ColorDialog1.Execute then Shape1.Color := ColorDialog1.Color;end;
你要赋值给edit4.text的话得先转换类型.
begin
if ColorDialog1.Execute then
edit4.color := ColorDialog1.Color;
end;
procedure TForm1.Edit4Change(Sender: TObject);
begin
if ColorDialog1.Execute then
edit4.text := inttostr(ColorDialog1.Color);
end;