Mega Code Archive

 
Categories / Delphi / Examples
 

Show help

Title: Show help Question: How to show my own help in standard Delphi form? Answer: {If you need to show own help in standard form you need code below... } type TForm1 = class(TForm) private procedure wmNCLButtonDown(var Msg: TWMNCLButtonDown); message WM_NCLBUTTONDOWN; procedure wmNCLButtonUp(var Msg: TWMNCLButtonUp); message WM_NCLBUTTONUP; end; var Form1: TForm1; implementation {$R *.DFM} procedure TForm1.wmNCLButtonDown(var Msg: TWMNCLButtonDown); begin if Msg.HitTest = HTHELP then begin Msg.Result := 0; end else inherited; end; procedure TForm1.wmNCLButtonUp(var Msg: TWMNCLButtonUp); begin if Msg.HitTest = HTHELP then begin Msg.Result := 0; ShowMessage('This is simple helpfull text'); // Write your help here or just call help file end else inherited; end;