Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

No OnMouseUp with TTrackBar?

Posted on 1997-07-30
2
Medium Priority
?
788 Views
Last Modified: 2008-02-26
There doesn't seem to be an event to tell me when the user
finishes sliding the track bar.

Any clues on this one?

Ta chris

(C++Bulider qusetion, hoping Delphi is the same ;-)
0
Comment
Question by:chrishart
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
CyberWolf earned 400 total points
ID: 1340220
Hi Chris,

I encountered that problem too. Here is the way I solved it in delphi :

//file: exttrackbar.pas (Extended Trackbar by CyberWolf)
//
// If you use it, please send me your comments, suggestions
// or modifications at CyberWolf_cool@hotmail.com !
//
//
unit ExtTrackBar;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, CommCtrl, ComCtrls;

type
  TExtendedTrackBar = class(TTrackBar)
  private
    { Private declarations }
  protected
    { Protected declarations }
  public
    procedure ClearTics;
  published
    property OnMouseDown;
    property OnMouseMove;
    property OnMouseUp;
  end;

procedure Register;

implementation

procedure TExtendedTrackBar.ClearTics;
begin
SendMessage(Handle,TBM_CLEARTICS,LongInt(True),0);
end;

procedure Register;
begin
  RegisterComponents('CyberWolf', [TExtendedTrackBar]);
end;

end.



As you can see I fixed the bug of the missing ClearTics function too! To use this new trackbar, simply install the new component and then use this one instead of the original TTrackbar!

I hope this will solve your problem,

See ya,

CyberWolf
0
 

Author Comment

by:chrishart
ID: 1340221
That looks great, thanks. It looks a little tricky for a novice like me but I'll give it a go!

I'll let you know how I get on,

many thanks from chris
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question