Вниз
Скачать: 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.45 MB
Время: 0.013 c
3-30267
yurikon03
2003-03-21 10:19
2003.04.10
Населить TTreeView данными из таблицы...


6-30496
PoiSoN_BoX
2003-02-19 11:33
2003.04.10
Помогите с popup в IE!!!


3-30240
Yura88
2003-03-20 15:53
2003.04.10
Как ComboBox в своей программе сделать выборку алиасов,


9-30205
APTEMKA
2002-10-23 02:25
2003.04.10
Как прикрепить камеру к объекту


3-30264
Silver_
2003-03-21 09:48
2003.04.10
LookupFields = КОШМАР на улицах Дельфи




   Наверх