Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2006.03.19;
Скачать: CL | DM;

Вниз

Клик мыши на StatusBarе   Найти похожие ветки 

 
Alex_C ©   (2006-03-01 15:05) [0]

Как в событии OnMouseClick на StatusBar"е определить, на какой StatusBarPanel был клик?


 
clickmaker ©   (2006-03-01 15:42) [1]

GetCursorPos
искать в цикле, пользуясь Panels[i].Width


 
Alex_C ©   (2006-03-01 15:47) [2]

Дык это понятно. Думал - может какое готовое средство есть...


 
begin...end ©   (2006-03-01 17:10) [3]

> Alex_C ©   (01.03.06 15:47) [2]

uses CommCtrl;

type
 TForm1 = class(TForm)
   StatusBar1: TStatusBar;
 private
   procedure WMNotify(var Message: TWMNotify); message WM_NOTIFY;
 end;

procedure TForm1.WMNotify(var Message: TWMNotify);
begin
 with Message.NMHdr^ do
   if (hwndFrom = StatusBar1.Handle) and (code = NM_CLICK) then
     Caption := IntToStr(PNMMouse(Message.NMHdr).dwItemSpec);
 inherited
end;


 
Alex_C ©   (2006-03-02 08:28) [4]

ОК! Спасибо!



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

Текущий архив: 2006.03.19;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.045 c
15-1140609794
DorisAxline
2006-02-22 15:03
2006.03.19
Question about this forum


1-1139730336
Alextp
2006-02-12 10:45
2006.03.19
RLINK32: Too many resources to handle


2-1141544738
x.pro
2006-03-05 10:45
2006.03.19
Вопрос, конечно, ламерский...


15-1140716512
5*5=25
2006-02-23 20:41
2006.03.19
кто учился НЕ на программиста


15-1141096201
SkyRanger
2006-02-28 06:10
2006.03.19
Рекламма