Einzelnen Beitrag anzeigen

Benutzerbild von Luckie
Luckie

Registriert seit: 29. Mai 2002
37.621 Beiträge
 
Delphi 2006 Professional
 
#6

Re: Hilfe Button in Bordericons

  Alt 19. Mai 2007, 18:24
So geht es:
Delphi-Quellcode:
type
  TForm1 = class(TForm)
    Button1: TButton;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
    procedure WndProc(var msg: TMessage); override;
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.WndProc(var msg: TMessage);
begin
  case msg.Msg of
  WM_SYSCOMMAND:
    begin
      if msg.WParam = SC_CONTEXTHELP then
      begin
        ShowMessage('Hilfe');
        exit;
      end
    end;
  end;
  inherited;
end;
Michael
Ein Teil meines Codes würde euch verunsichern.
  Mit Zitat antworten Zitat