Вниз
Скачать: 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.016 c
3-30266
sapsi
2003-03-19 15:06
2003.04.10
Скрытие строк в гриде


3-30226
Жук
2003-03-20 17:13
2003.04.10
Создание БД


1-30361
Tyo
2003-03-31 17:25
2003.04.10
Combo в StringGrid


14-30530
Nox
2003-03-24 10:49
2003.04.10
Visual Assembler


4-30667
KDenis
2003-02-10 19:41
2003.04.10
Как узнать Handle процесса по Handle у его главного окна?




   Наверх