Registriert seit: 10. Jun 2002
Ort: Unterhaching
11.412 Beiträge
Delphi 12 Athens
|
Re: Kennt TMainMenu nicht OnPopup
19. Apr 2004, 10:26
Zitat von Luckie:
Was kann man da machen?
In der DP nachfragen
Code:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Menus;
type
TForm1 = class(TForm)
MainMenu1: TMainMenu;
File1: TMenuItem;
Exit1: TMenuItem;
N1: TMenuItem;
PrintSetup1: TMenuItem;
Print1: TMenuItem;
private
{ Private declarations }
[color=#ff0012]procedure WMENTERMENULOOP(var Msg: TMessage); message WM_ENTERMENULOOP;[/color]
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
{ TForm1 }
[color=#ff0012]procedure TForm1.WMENTERMENULOOP(var Msg: TMessage);
begin
MessageBeep(0);
inherited;
end;[/color]
end.
... ...
Daniel Lizbeth Ich bin nicht zurück, ich tue nur so
|
|
Zitat
|