Advertisement
Guest User

Untitled

a guest
Jun 15th, 2018
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.46 KB | None | 0 0
  1. uses
  2.   Winapi.CommCtrl;
  3.  
  4. type
  5.   TTrackBar = class(Vcl.ComCtrls.TTrackBar)
  6.   private
  7.     procedure WMNotify(var Msg: TWMNotify); message WM_NOTIFY;
  8.   end;
  9.  
  10. implementation
  11.  
  12. procedure TTrackBar.WMNotify(var Msg: TWMNotify);
  13. begin
  14.   if Msg.NMHdr.code = TTN_NEEDTEXTW then
  15.   begin
  16.     PToolTipTextW(Msg.NMHdr)^.hInst := 0;
  17.     PToolTipTextW(Msg.NMHdr)^.lpszText := PChar('Position: ' + IntToStr((Max - Position) + Min));
  18.   end
  19.   else
  20.     inherited;
  21. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement