Enable TrackBar DoubleClick event

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?
 
S

Stoitcho Goutsev \(100\)

_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).
 
G

Galcho[MCSD.NET]

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
 
D

_DD

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.
 
G

Galcho[MCSD.NET]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top