Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.04.01;
Скачать: CL | DM;

Вниз

MDI-приложение: как определить активно родительское окно(дочерних ещё нет) или дочернее(тогда узнать какое)?   Найти похожие ветки 

 
kserg@ukr.net   (2002-03-20 11:48) [0]

У самого чё-то не получается.
Спасибо.


 
Alx2 ©   (2002-03-20 11:56) [1]

ActiveForm?


 
kserg@ukr.net   (2002-03-20 12:55) [2]

>Alx2 если правильно понял, попытался сделать проверку типа

if MainForm.Active then ...
Но всегда получается =false ???
(я еще понимаю, если бы было всегда =true)

Наверно я не так делаю.


 
Alx2 ©   (2002-03-20 13:02) [3]

Имелось в виду TScreen.ActiveForm.
Из программы до нее достучаться можно так: Screen.ActiveForm

Вот описание TScreen.ActiveForm. (см Help)


Indicates which form currently has focus.

property ActiveForm: TForm;

Description

Read ActiveForm to learn which form in the application has input focus. If the application is not currently active, ActiveForm is the form that will have focus when the application becomes active again.

ActiveForm is a read-only property. To change the ActiveForm, use the SetFocus method of the form that should receive focus. ActiveForm will also change if the SetFocusedControl method of an inactive form is called to set focus to a control on that inactive form.

After focus shifts from one form to another, the screen receives an OnActiveFormChange event.


 
kserg@ukr.net   (2002-03-20 13:42) [4]

>Alx2 - спасибо, всё заработало.



Страницы: 1 вся ветка

Текущий архив: 2002.04.01;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.013 c
1-155
SB.John
2002-03-21 12:47
2002.04.01
как узнать сколько памяти занимает какой-либо объект?


1-164
Shadow77
2002-03-22 09:16
2002.04.01
Текущий язык Windows


3-9
Андре
2002-03-04 12:07
2002.04.01
IBSQL


1-199
vlad451
2002-03-20 10:30
2002.04.01
DLL


6-256
Yuraz
2002-01-17 18:30
2002.04.01
Есть кусок HTML кода, хотелось бы хоть примитивно преобразовать его в наглядную страницу