Вниз
Скачать: CL | DM;

Как узнать предыдущий фокус   Найти похожие ветки 

 
Mars   (2004-11-04 15:25) [0]

Необходимо при клике на CheckBox"e
узнать, с какого контрола переходит фокус.

Кто знает, помогите.


 
Семен Сорокин ©   (2004-11-04 15:31) [1]

В OnExit для фокусных элементов поместить, OldObject := TControl(Sender);, где OldObject - переменная формы типа TControl и будет тебе счастье.


 
Digitman ©   (2004-11-04 15:32) [2]

The WM_SETFOCUS message is sent to a window after it has gained the keyboard focus.

WM_SETFOCUS  
hwndLoseFocus = (HWND) wParam; // handle of window losing focus


Parameters

hwndLoseFocus

Value of wParam. Identifies the window that has lost the keyboard focus (may be NULL).



Return Values

An application should return zero if it processes this message.

Remarks

To display a caret, an application should call the appropriate caret functions when it receives the WM_SETFOCUS message.


 
Rem ©   (2004-11-04 15:34) [3]

Назначить OnExit для нужных контролов:


type
 TForm1 = class(TForm)
 private
   FLastControl: TControl;
   ...
 end;

procedure TForm1.OnExit(Sender: TObject);
begin
 FLastControl := TControl(Sender);
end;



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

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.026 c
1-1100089536
Cheburek
2004-11-10 15:25
2004.11.21
Как склеить динамические массивы ? Как вырекзать элемнт из него ?


3-1098778531
goldenmax
2004-10-26 12:15
2004.11.21
не работает запрос Поооооомоооооооооогите SOS!!!!!


1-1099837483
snake1977
2004-11-07 17:24
2004.11.21
DropDown


14-1099891610
kaZaNoVa
2004-11-08 08:26
2004.11.21
Покупаю принтер, какой взять ?


3-1098457682
ka
2004-10-22 19:08
2004.11.21
выборка из двух таблиц - ничего сложного?




   Наверх