做了个图书管理数据库!~编译成功后!~选择run运行!出现如下错误:
Project book.exe raised exception class EInvalidOperation with message 'cannot focus a disabled or invisible window'.Process stopped. Use Step or Run to continue.
要连续按掉3个这样的错误提示,才会出现运行界面!~
请高手指点!~怎样把这个错误消除!~
Project book.exe raised exception class EInvalidOperation with message 'cannot focus a disabled or invisible window'.Process stopped. Use Step or Run to continue.
要连续按掉3个这样的错误提示,才会出现运行界面!~
请高手指点!~怎样把这个错误消除!~
你用了没有啊?
看看
在该函数会有如下语句:
begin
edit1.Clear ;
edit2.Clear ;
edit1.SetFocus ;
end;
//修改一下为这样
if edit1.canFocus then edit1.setfocus;把这句代码放到 Show 事件,删除create中的edit1.setfocus;