M
mmdst23
I'm working on a video player app, and I want to implement a trackbar
that behaves like the one in Media Player, that is the cursor position
moves to where the user clicked instead of moving in that direction by
a fixed value. Has anyone implemented something like this before? I
haven't found anything on codeproject, or searching the .NET
newsgroups. This seems like it would be a common control type, am I
missing the easy solution?
I have been trying to make one by overridding the mouseUp event (so
that it can be either clicked or dragged) but I can't get the cursor to
move to the correct position, and the difference between the click and
where the cursor gets moved changes depending on where in the trackbar
I click.
I'm manaully building the DShow player graph in a DLL, and the UI is in
a VB app. I need full control over the graph and playback, so I don't
think I can use the Media Player object.
Thanks,
Mike
that behaves like the one in Media Player, that is the cursor position
moves to where the user clicked instead of moving in that direction by
a fixed value. Has anyone implemented something like this before? I
haven't found anything on codeproject, or searching the .NET
newsgroups. This seems like it would be a common control type, am I
missing the easy solution?
I have been trying to make one by overridding the mouseUp event (so
that it can be either clicked or dragged) but I can't get the cursor to
move to the correct position, and the difference between the click and
where the cursor gets moved changes depending on where in the trackbar
I click.
I'm manaully building the DShow player graph in a DLL, and the UI is in
a VB app. I need full control over the graph and playback, so I don't
think I can use the Media Player object.
Thanks,
Mike