不是 Delphi 的错!请看原码:procedure TButton.CMDialogChar(var Message: TCMDialogChar);
begin
with Message do
if IsAccel(CharCode, Caption) and CanFocus then // 由父控件决定
begin
Click;
Result := 1;
end else
inherited;
end;procedure TSpeedButton.CMDialogChar(var Message: TCMDialogChar);
begin
with Message do
if IsAccel(CharCode, Caption) and Enabled and Visible and
(Parent <> nil) and Parent.Showing then // 由自己决定
begin
Click;
Result := 1;
end else
inherited;
end;
begin
with Message do
if IsAccel(CharCode, Caption) and CanFocus then // 由父控件决定
begin
Click;
Result := 1;
end else
inherited;
end;procedure TSpeedButton.CMDialogChar(var Message: TCMDialogChar);
begin
with Message do
if IsAccel(CharCode, Caption) and Enabled and Visible and
(Parent <> nil) and Parent.Showing then // 由自己决定
begin
Click;
Result := 1;
end else
inherited;
end;
解决方案 »
- 程序死掉[UDP阻塞?]
- 50分,再求SQL问题
- 求助关于将mtsql数据导出到access的问题。
- ---=== RxRichEdit如何保存文本内容? ===---
- 如何判断一个机器的ip地址不在规定的号段中,就封锁其ip,谢谢....万分感谢
- 求助ToolBar图标问题?
- 各位大侠:谁能解决这个问题,特别谢谢。打开一个Excel文件,如何直接进入打印预览状态?
- 随机函数具体怎么用,Randomize;和random具体什么区别?????
- charindex函数的问题??
- 各位,请教菜鸟问题?
- 哪位大哥能说说 goto 语句怎样使用吗?举个例子吧!goto 标号; 这个标号怎样定义和使用呢?
- 怎样解决控件移动中的闪烁问题?
(Parent <> nil) and Parent.Showing and Parent.Enabled then
你说得很有道理。SpeedButton本身没有焦点,这跟Label控件相似,Label控件也有类似的毛病。