Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- uses
- Winapi.CommCtrl;
- type
- TTrackBar = class(Vcl.ComCtrls.TTrackBar)
- private
- procedure WMNotify(var Msg: TWMNotify); message WM_NOTIFY;
- end;
- implementation
- procedure TTrackBar.WMNotify(var Msg: TWMNotify);
- begin
- if Msg.NMHdr.code = TTN_NEEDTEXTW then
- begin
- PToolTipTextW(Msg.NMHdr)^.hInst := 0;
- PToolTipTextW(Msg.NMHdr)^.lpszText := PChar('Position: ' + IntToStr((Max - Position) + Min));
- end
- else
- inherited;
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement