By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,163 Members | 1,432 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,163 IT Pros & Developers. It's quick & easy.

Enable TrackBar DoubleClick event

P: n/a
_DD
TrackBar DoubleClick event is not accessible via the Control
Properties event pane. So I tried adding the handler directly:

this.ColTrackBar.DoubleClick += new
System.EventHandler(this.ColTrackBar_DoubleClick);

It compiles but never fires. I suspect that individual Click events
are getting gobbled up by the main trackbar position event handler.
Any way around this?

May 19 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
_DD,

That's why the DoubleClick event is hidden from the property grid.

I'm afraid you can't handle that. The WNDCLASS doesn't have CS_DBLCLKS style
and cannot be added (or at least I can't do it).
--

Stoitcho Goutsev (100)

"_DD" <_D*@nospam.com> wrote in message
news:2t********************************@4ax.com...
TrackBar DoubleClick event is not accessible via the Control
Properties event pane. So I tried adding the handler directly:

this.ColTrackBar.DoubleClick += new
System.EventHandler(this.ColTrackBar_DoubleClick);

It compiles but never fires. I suspect that individual Click events
are getting gobbled up by the main trackbar position event handler.
Any way around this?

May 19 '06 #2

P: n/a
I am not sure that this is good idea as this won't be user friendly
feature.

This could be well hidden feature :)) unless it is documented :)

Regards
Galin Iliev[MCSD.NET]
www.galcho.com

May 19 '06 #3

P: n/a
_DD
On 19 May 2006 11:28:58 -0700, "Galcho[MCSD.NET]" <ga****@gmail.com>
wrote:
I am not sure that this is good idea as this won't be user friendly
feature.


Thanks for the replies. In this case it *is* a user-friendly feature,
and maybe even intutive. I want to center an audio panning control.
It's tough to get the slider exactly zero'd manually.

I could have sworn I saw this documented somewhere.

May 20 '06 #4

P: n/a
you can check if user is dragging slider and if position is very close
to 0 the you can throw slider to 0.
check how WinAmp behaves when you move its windows close to desktop
border.

I hope this helps
Galin Iliev[MCSD.NET]
www.galcho.com

May 20 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.