Enable TrackBar DoubleClick event

  • Thread starter Thread starter _DD
  • Start date Start date
D

_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?
 
_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).
 
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
 
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.
 
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
 
Back
Top