Advertisement
TLama

Untitled

Jun 9th, 2015
480
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.27 KB | None | 0 0
  1. type
  2.   TMenuItemHelper = class helper for TMenuItem
  3.   public
  4.     function AddSeparator: TMenuItem;
  5.   end;
  6.  
  7. implementation
  8.  
  9. function TMenuItemHelper.AddSeparator: TMenuItem;
  10. begin
  11.   Result := TMenuItem.Create(Owner);
  12.   Result.Caption := '-';
  13.   Self.Add(Result);
  14. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement