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

Вниз

Использую Flash в своих прогах есть проблема???   Найти похожие ветки 

 
bearoman   (2002-12-18 16:55) [0]

При нажатии второй клавиши мыши появляется меню флеша. Как его убрать? Может перехватывать нажатие второй клавиши мышки. Пожалуйста пример перехвата или что то другое?


 
CeT   (2003-02-09 23:04) [1]

Пожалуйста:

Removing the popup menu in Macromedia Flash .OCX
Note: Click Title to view in Edit Box for easier copying.

Related Links
Displaying Macromedia Flash .SWF files in your Delphi Application!
Macromedia Flash Resizing

In Delphi 5, place an "Application Events" component onto the form.

On the "OnMessage" Event place the following code:

procedure TForm1.ApplicationEvents1Message(var Msg: tagMSG;
var Handled: Boolean);
begin
if Msg.message = WM_RBUTTONDOWN then Handled := True;
end;

If by chance you wanted to place your own popupmenu, then do the following:

procedure TForm1.ApplicationEvents1Message(var Msg: tagMSG;
var Handled: Boolean);
begin
if Msg.message = WM_RBUTTONDOWN then
begin
popupmenu1.Popup(Mouse.CursorPos.X, Mouse.CursorPos.Y);
Handled := True;
end;
end;

Hope that helps someone that wanted to know how to do this.

C хуками еще поработай...
Удачи!!!



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

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

Наверх




Память: 0.46 MB
Время: 0.015 c
1-70391
Seldon
2003-05-09 18:29
2003.05.22
Подсветка синтаксиса в RichEdit


14-70439
xman
2003-05-02 12:59
2003.05.22
Кто знает?


14-70437
fighter@str
2003-04-30 18:56
2003.05.22
Жесткий диск IBM


14-70436
zumo
2003-05-02 08:10
2003.05.22
Проигрывание avi


8-70405
Призрак_Коммунизма
2003-02-09 11:12
2003.05.22
DXDraw и спрайты