Cannot focus a disabled or invisible windows
Cannot focus a disabled or invisible windows
Есть процедура:
procedure Myform1.BtClick(. ;
begin
.
MyForm2.show;
.
Myform2.hide; //после етого появляєтся ошибка
// Cannot focus a disabled or invisible window
.
end;
ПОчему ета ошибка появляэтся? Кто нибудь знает?
Я пробовал перед Myform2.hide; писать
Myform1.BringToFront;
Myform1.show;
Myform1.Visible:=true;
ничего не помагаэт
← →
harismatik ( 2003-01-25 15:40 ) [1]
А у тебя форма с которой вызывается окно видимо и доступно? Откуда ты его вызываешь?
← →
Kventin ( 2003-01-25 15:43 ) [2]
Да.
Вызываю из обработчика клика по некоторой кнопке.
← →
Юрий Зотов ( 2003-01-25 17:42 ) [3]
После Myform2.hide происходит какое-то обращение к Myform2 (или к одному из ее контролов), которое требует, чтобы Myform2 была видимой. Myform1 здесь ни при чем.
Пройдите отладчиком и найдите ТОЧНОЕ место.
← →
Stager ( 2003-01-25 19:33 ) [4]
Абсолютно согласен с Юрием. От себя добавлю, что эта ошибка часто бывает, когда выполняется метод SetFocus. Чтобы не заниматься развернутой интеллектуальной обработкой, я обычно пользуюсь конструкцией:
try
Edit1.SetFocus;
except
end;
C уважением, Алексей.
← →
Stager ( 2003-01-25 20:41 ) [6]
2 Юрий Зотов.
Понял, спасибо, буду использовать.
Cannot focus a disabled or invisible windows
Есть процедура:
procedure Myform1.BtClick(. ;
begin
.
MyForm2.show;
.
Myform2.hide; //после етого появляєтся ошибка
// Cannot focus a disabled or invisible window
.
end;
ПОчему ета ошибка появляэтся? Кто нибудь знает?
Я пробовал перед Myform2.hide; писать
Myform1.BringToFront;
Myform1.show;
Myform1.Visible:=true;
ничего не помагаэт
← →
harismatik ( 2003-01-25 15:40 ) [1]
А у тебя форма с которой вызывается окно видимо и доступно? Откуда ты его вызываешь?
← →
Kventin ( 2003-01-25 15:43 ) [2]
Да.
Вызываю из обработчика клика по некоторой кнопке.
← →
Юрий Зотов ( 2003-01-25 17:42 ) [3]
После Myform2.hide происходит какое-то обращение к Myform2 (или к одному из ее контролов), которое требует, чтобы Myform2 была видимой. Myform1 здесь ни при чем.
Пройдите отладчиком и найдите ТОЧНОЕ место.
← →
Stager ( 2003-01-25 19:33 ) [4]
Абсолютно согласен с Юрием. От себя добавлю, что эта ошибка часто бывает, когда выполняется метод SetFocus. Чтобы не заниматься развернутой интеллектуальной обработкой, я обычно пользуюсь конструкцией:
try
Edit1.SetFocus;
except
end;
C уважением, Алексей.
← →
Stager ( 2003-01-25 20:41 ) [6]
2 Юрий Зотов.
Понял, спасибо, буду использовать.
cannot focus a disabled or invisible window
I’m getting an error when running my compiled program. I’ve taken every precaution I can think of to prevent the error such as enabling forms before I hide or focus them. The application shows a DimmerForm (grey fade overlay) and then a NewFileForm on top of the overlay. The NewFileForm does its stuff and determines the file that is to be made and creates a new tabsheet in the page control on the MainForm and shows the newly created tab sheet. All this works so far (I can break before the NewFileForm closes and any error occurs and see that the tab sheet has been created and shown successfully). The NewFileForm then closes, which is again working fine.
I wrote pretty much the exact same code in a previous version of my application and then decided to restructure it all from the ground up. The previous version of the application worked without a hitch with the form focusing.
Here is the code to open up the NewFileForm :
I was logged into Skype 5.0 today and it was working fine, but about an hour or two ago it randomly stopped working. Now when I try to sign in, I get the message, «Skype can’t connect. Get help fixing this problem,» with an active link to the troubleshooting guide. I went through the entire troubleshooting guide which included rebooting my computer and also uninstalling and reinstalling the software. Nothing worked. I then tried restoring my C drive to yesterday’s settings, as Skype was working perfectly then. Also, when I quit Skype I get this message: «Cannot focus a disabled or invisible window.» I’ve Google searched this problem and the only solution I found was to make another user profile on the computer, as the person who posted assumes that it has something to do with the registry. My internet connection is fine. Is there another way to fix this problem??
Brought to you by: niklauslee
Forums
Cannot focus a disabled or invesilbe window
Can anyone explain me why suddently this occurs.
I happens everytime I insert a new extension point.
Thanks in advance,
HDLP
Try to open the StartUML application couple of times and it works without giving this error. After doing so if the error persists then reinstall the application to make it work without any errors. Also try from the start menu once, it works sometimes.
I got this error when I moved the desktop icon to quick launch folder. When I reinstalled and used the desktop icon it works.
I’ve got the same message. I think it’s because your «Message» window is auto-hidden or hidden, and the system wants to access to it.
Cheers,
I do not know what the cause is, but I have exactly the same problem.
Message box «Cannot focus a disabled or invisible window» appears continuously
I cannot work anymore
I’ve solved my problem setting Output, Model Explorer and Properties windows to Visible. After this just re-open your model and you will be fine.
Thank you. The suggestion to make the output, model exp and prop. windows visible solved my problem.
Cannot focus a disabled or invisible windows
Профиль
Группа: Участник
Сообщений: 26
Регистрация: 29.1.2010
Репутация: нет
Всего: нет
Эксперт
Профиль
Группа: Завсегдатай
Сообщений: 2233
Регистрация: 2.12.2005
Где: Екатеринбург
Репутация: 9
Всего: 54
Профиль
Группа: Участник
Сообщений: 26
Регистрация: 29.1.2010
Репутация: нет
Всего: нет
Эксперт
Профиль
Группа: Завсегдатай
Сообщений: 2233
Регистрация: 2.12.2005
Где: Екатеринбург
Репутация: 9
Всего: 54
Профиль
Группа: Участник
Сообщений: 26
Регистрация: 29.1.2010
Репутация: нет
Всего: нет
вроде полегчало. Спасибо!
Эксперт
Профиль
Группа: Модератор
Сообщений: 11363
Регистрация: 13.10.2004
Где: Питер
Репутация: 192
Всего: 484
Профиль
Группа: Участник
Сообщений: 26
Регистрация: 29.1.2010
Репутация: нет
Всего: нет
Эксперт
Профиль
Группа: Завсегдатай
Сообщений: 2233
Регистрация: 2.12.2005
Где: Екатеринбург
Репутация: 9
Всего: 54
есть еще метод CanFocus
Профиль
Группа: Участник
Сообщений: 26
Регистрация: 29.1.2010
Репутация: нет
Всего: нет
Цитата(Frees @ 21.7.2010, 10:51) |
есть еще метод CanFocus |
1. Публиковать ссылки на вскрытые компоненты 2. Обсуждать взлом компонентов и делиться вскрытыми компонентами Если Вам понравилась атмосфера форума, заходите к нам чаще! С уважением, Snowy, MetalFan, bems, Poseidon, Rrader.
[ Время генерации скрипта: 0.1353 ] [ Использовано запросов: 21 ] [ GZIP включён ]
|