procedure TCustomForm.Hide;
begin
Visible := False;
end;procedure TCustomForm.SetVisible(Value: Boolean);
begin
if fsCreating in FFormState then
if Value then
Include(FFormState, fsVisible) else
Exclude(FFormState, fsVisible)
else
begin
if Value and (Visible <> Value) then SetWindowToMonitor;
inherited Visible := Value;
end;
end;上面这个hide方法执行之后怎么会去掉用SetVisible这个方法啊??? hide方法里并没有调用啊????
我迷惑很长时间了...
begin
Visible := False;
end;procedure TCustomForm.SetVisible(Value: Boolean);
begin
if fsCreating in FFormState then
if Value then
Include(FFormState, fsVisible) else
Exclude(FFormState, fsVisible)
else
begin
if Value and (Visible <> Value) then SetWindowToMonitor;
inherited Visible := Value;
end;
end;上面这个hide方法执行之后怎么会去掉用SetVisible这个方法啊??? hide方法里并没有调用啊????
我迷惑很长时间了...
解决方案 »
- 如何将文件夹设置为共享?
- 跪求delphi 中的bitbutton 中的bmp图标
- 请教高手:C/S版的办公自动化系统如何在Internet上使用
- 请问:这条SQL语句要怎么写?
- 高手指点如何进行文字图像的混排操作,这是我得
- 请问如何改变DBGrid中的某一个单元格的字体颜色?知道者请进,不知道者请帮忙UP,参与者都有分!!!
- saveDialog的一个大问题
- 谁能帮我把下面这段BV的改成DELPHI
- TDataSet.OnPostError 事件。
- Delphi 4 程序员代码编写标准指南
- 高分求助:C语言写的函数转成delphi语言,急。
- BDE 的 10058 invalid time 错误如何处理?
DefPenData: TPenData = (
Handle: 0;
Color: clBlack;
Width: 1;
Style: psSolid);
这个const加在这里算是做什么的啊????
procedure SetData(const PenData: TPenData);
这两个方法是TPen里面的方法;
为什么GetDate要把它设置成var
SetDate要设置成Const呢????
const 表示参数不能被修改这些问题太基础了,建议看看《Delphi精要》。
const 在编译开关{$c+}打开时,初始化一次就可以了。类似于 以c++ 中的Static。
const 表示参数不能被修改