Вниз
Скачать: 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 вся ветка

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



Память: 0.45 MB
Время: 0.024 c
15-1140772595
evgenij_
2006-02-24 12:16
2006.03.19
Хелп для Делфи


15-1140692490
XProger
2006-02-23 14:01
2006.03.19
TForm в 2 кб


2-1141566829
Fight
2006-03-05 16:53
2006.03.19
Раскладка клавиатуры


5-1127302633
RDS
2005-09-21 15:37
2006.03.19
Access violation in design time


15-1140190739
lak-b
2006-02-17 18:38
2006.03.19
Win Xp - порблемы с сетью




   Наверх