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

MouseMove в DriveComboBox?   Найти похожие ветки 

← →
Intell ©   (2003-03-30 14:35) [0]

Как создать процедуру MouseMove в DriveComboBox?


← →
vlad40 ©   (2003-03-30 16:00) [1]

Наверное, можно обрабатывать Application.OnMessage и определять, находится ли курсор в области DriveComboBox:

procedure TForm1.FormCreate(Sender: TObject);
begin
Application.OnMessage:=AppMessage;
end;

procedure TForm1.AppMessage( var Msg: TMsg; var Handled: Boolean);
begin
if msg.message=WM_MOUSEMOVE then
begin
if PtInRect(DriveComboBox1.BoundsRect,ScreenToClient(Mouse.CursorPos)) then
DriveComboBox1.Color:=clInfoBk
else
DriveComboBox1.Color:=clWindow;
end;
end ;


Может быть можно и проще


← →
Intell ©   (2003-03-31 15:19) [2]

Спасибо, попробую.



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

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



Память: 0.44 MB
Время: 0.012 c
14-30523
Александр Г.
2003-03-21 09:07
2003.04.10
Хук на нажатие кнопок в НТ?


3-30239
SasaR
2003-03-20 15:43
2003.04.10
FrameWork:FIBDataset


14-30521
Yuri20031
2003-03-21 19:15
2003.04.10
Как скрыть вкладку


1-30390
mask
2003-03-29 19:32
2003.04.10
Open API


9-30206
HellTrooper
2002-11-10 13:30
2003.04.10
2D карта




   Наверх