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

ControlAtPos   Найти похожие ветки 

 
Vladimir88 ©   (2005-10-20 17:34) [0]

procedure TfmMain.ApplicationEvents1Hint(Sender: TObject);
var
Control:TControl;
begin
Control:=ControlAtPos(ScreenToClient(Mouse.CursorPos),false);
showmessage(Control.Name);
end;


Почему-то Control всегда нил, в чём может быть проблема.


 
begin...end ©   (2005-10-20 17:40) [1]

> Vladimir88 ©   (20.10.05 17:34)
> Почему-то Control всегда нил, в чём может быть проблема.

Ну... Например, приведённый код не будет находить контролы, являющиеся потомками TWinControl. Может быть, в этом дело?


 
Vladimir88 ©   (2005-10-20 17:47) [2]

Хм, а почему TWinControl же потомок контрола.


 
begin...end ©   (2005-10-20 17:49) [3]

> Vladimir88 ©   (20.10.05 17:47) [2]

function ControlAtPos(const Pos: TPoint; AllowDisabled: Boolean, AllowWinControls:Boolean=False): TControl;

The AllowWinControls parameter determines whether descendants of TWinControl are considered when looking for the child control.


 
Vladimir88 ©   (2005-10-20 17:50) [4]

А, точно, стормозил, сенкс.



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

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



Память: 0.45 MB
Время: 0.031 c
4-1126187893
ANB
2005-09-08 17:58
2005.11.13
При каких условиях отрабатывает WaitFoInputIdle ?


2-1130246477
syte_ser78
2005-10-25 17:21
2005.11.13
table.active


2-1130050454
beglec
2005-10-23 10:54
2005.11.13
Можно ли узнать имя процедуры.


1-1129788909
Zhekson
2005-10-20 10:15
2005.11.13
Как на определённое время повесить надпись поверх всех окон?


6-1122488131
nippo
2005-07-27 22:15
2005.11.13
IMarkupServices::ParseString Method




   Наверх