CGTalk > Software > Autodesk 3ds max > 3dsMax SDK and MaxScript
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 09-20-2009, 08:54 PM   #1
PEN
R&D/Technical Director
 
PEN's Avatar
portfolio
Paul Neale
PEN Productions
Canada
 
Join Date: Jun 2002
Posts: 7,416
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-20-2009, 09:06 PM   #2
denisT
MAX Doctor
 
denisT's Avatar
portfolio
Denis Trofimov
CA, USA
 
Join Date: Jul 2009
Posts: 9,511
Send a message via ICQ to denisT
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-20-2009, 09:29 PM   #3
denisT
MAX Doctor
 
denisT's Avatar
portfolio
Denis Trofimov
CA, USA
 
Join Date: Jul 2009
Posts: 9,511
Send a message via ICQ to denisT
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-20-2009, 09:32 PM   #4
PEN
R&D/Technical Director
 
PEN's Avatar
portfolio
Paul Neale
PEN Productions
Canada
 
Join Date: Jun 2002
Posts: 7,416
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-20-2009, 09:41 PM   #5
PEN
R&D/Technical Director
 
PEN's Avatar
portfolio
Paul Neale
PEN Productions
Canada
 
Join Date: Jun 2002
Posts: 7,416
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-20-2009, 09:49 PM   #6
denisT
MAX Doctor
 
denisT's Avatar
portfolio
Denis Trofimov
CA, USA
 
Join Date: Jul 2009
Posts: 9,511
Send a message via ICQ to denisT
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-20-2009 at 09:57 PM.
 
Old 09-20-2009, 10:00 PM   #7
denisT
MAX Doctor
 
denisT's Avatar
portfolio
Denis Trofimov
CA, USA
 
Join Date: Jul 2009
Posts: 9,511
Send a message via ICQ to denisT
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-20-2009, 10:00 PM   #8
CGTalk Moderation
Lord of the posts
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,480
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.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 11:50 PM.


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