我在窗体上放了一个colordialog和button
程序如下
procedure TForm1.Button1Click(Sender: TObject);
begin
if colordialog1.execute then
shape1.brush.color:=colordialog1.color;
end;
我不明白if colordialog1.execute then 是什么意思,execute是什么意思,起什么作用
我直接写 shape1.brush.color:=colordialog1.color;和用execute 结果完全不同,
请教各位大哥,为什么,差别在哪里
程序如下
procedure TForm1.Button1Click(Sender: TObject);
begin
if colordialog1.execute then
shape1.brush.color:=colordialog1.color;
end;
我不明白if colordialog1.execute then 是什么意思,execute是什么意思,起什么作用
我直接写 shape1.brush.color:=colordialog1.color;和用execute 结果完全不同,
请教各位大哥,为什么,差别在哪里
EXECUTE 到底是什么意思???
所有回复的人我一定都会加分的
ADOQuery1.Open?
the same of ColorDialog1.Execute.
colordialog1.color颜色缺省为0(black)
所以如果直接写 shape1.brush.color:=colordialog1.color,那就变成黑色