Вниз
Скачать: 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.44 MB
Время: 0.034 c
14-1130140271
syte_ser78
2005-10-24 11:51
2005.11.13
какие базы (локальные) поодерживают украинскую локализацию?


1-1130300515
MikeGipson
2005-10-26 08:21
2005.11.13
Не шевелится поток в ХР


9-1119953464
Маздай
2005-06-28 14:11
2005.11.13
OpengGL vs 2d


8-1117391048
Grief
2005-05-29 22:24
2005.11.13
воспроизведение звука


6-1122645473
CAMCOH
2005-07-29 17:57
2005.11.13
Как отправить html письмо с помощью Insy IdSmtp




   Наверх