Вниз
Скачать: 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.01 c
4-30662
Songoku
2003-02-05 15:58
2003.04.10
МАСТЕРА помогите!!! Как в EDIT поставить фон в виде рисунка!!!


14-30546
Oleg_Gashev
2003-03-23 23:08
2003.04.10
Frequently Unanswered Questions


1-30440
XTC
2003-03-27 09:43
2003.04.10
Резидентная программа


14-30562
MasterA
2003-03-25 06:57
2003.04.10
Speech Api


14-30564
uu
2003-03-24 21:33
2003.04.10
Справочник по математике




   Наверх