Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Mouse wheel question (Read 4945 times)
JR
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 86
Joined: Jun 12th, 2007
Mouse wheel question
Feb 27th, 2012 at 3:55pm
Print Post  
Hello,

I have a little problem.
My diagram have scrollbars.
I want to scroll the diagram with the mouse wheel but it does not work.

How can I do this ? Is there a property to set ?

Thanks

Regards
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Mouse wheel question
Reply #1 - Feb 27th, 2012 at 3:58pm
Print Post  
Hi,

Handle the MouseWheel event and add its delta argument to flowchart.ScrollY.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
JR
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 86
Joined: Jun 12th, 2007
Re: Mouse wheel question
Reply #2 - Feb 27th, 2012 at 4:23pm
Print Post  
Hi,

Do you have an example because the result is amazing.
The language is Powerbuilder. It seems that we go out of the diagram.

Code
Select All
Ocx_Flowchart.ScrollY = Ocx_Flowchart.ScrollY - delta 



Regards
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Mouse wheel question
Reply #3 - Feb 27th, 2012 at 5:30pm
Print Post  
Hi,
Code
Select All
Private Sub fcx_MouseWheel(ByVal delta As Integer, ByVal keys As Integer, ByVal docX As Long, ByVal docY As Long)
    fcx.ScrollY = fcx.ScrollY - delta / 20
    If fcx.ScrollY < fcx.DocTop Then fcx.ScrollY = fcx.DocTop
End Sub 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
JR
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 86
Joined: Jun 12th, 2007
Re: Mouse wheel question
Reply #4 - Feb 28th, 2012 at 8:42am
Print Post  
Great

Thanks
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint