dotNet scroll control event handler problems

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 09 September 2009   #1
dotNet scroll control event handler problems

I'm using a scroll control and I'm having a hard time getting any of the mouse event handlers to work. mouseDown, mouseUp... are just not working. Any solutions? I'm trying to call these when scrolling.
__________________
Paul Neale
http://paulneale.com
 
Old 09 September 2009   #2
Quote:
Originally Posted by PEN
I'm using a scroll control and I'm having a hard time getting any of the mouse event handlers to work. mouseDown, mouseUp... are just not working. Any solutions? I'm trying to call these when scrolling.


what scroll control are you using? where do you put it? (dialog, floater, form?)
 
Old 09 September 2009   #3
i don't know why do you need mouse events, but mouseUp, mouseDown, mouseClick, mouseDoubleClick don't work in HScrollBar and VScrollBar...

mouseMove kinda works.

Scroll event gives almost everything to handle the control.
 
Old 09 September 2009   #4
Well I need to stop other things from drawing until the scroll is complete. My UI is starting to get a bit slow. Maybe a hack with a timer, wouldn't be the first time I have had to do it in this tool.
__________________
Paul Neale
http://paulneale.com
 
Old 09 September 2009   #5
I should mention that it is in a tab that is in a rollout, well indirectly, there are a few other controls in there as well but something like that.
__________________
Paul Neale
http://paulneale.com
 
Old 09 September 2009   #6
Quote:
Originally Posted by PEN
Well I need to stop other things from drawing until the scroll is complete. My UI is starting to get a bit slow. Maybe a hack with a timer, wouldn't be the first time I have had to do it in this tool.


you can set .Capture property to capture the mouse, but it didn't work well for me.

also you can listen MouseCaptureChanged event. It calls for every mouse up and down...

to get end of scrolling you can listen Scroll event and check its type. EndScroll is the end.

Last edited by denisT : 09 September 2009 at 09:57 PM.
 
Old 09 September 2009   #7
Quote:
Originally Posted by PEN
Maybe a hack with a timer, wouldn't be the first time I have had to do it in this tool.


i used a timer a lot to this kind of things, but i hate the using of it.
 
Old 09 September 2009   #8
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 03:57 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.