Viewer: change image rotation through RightClick
Viewer: change image rotation through RightClick
Hi,
how may I intercept the event: Right click on viewer and change rotation?
There's PageChange and Zoom_Change events, but I don't how to recognize 'user has changed the rotation' and maybe he wants to change even the image on file, from 'user has changed zoom', nothing happens on file.
Tks
how may I intercept the event: Right click on viewer and change rotation?
There's PageChange and Zoom_Change events, but I don't how to recognize 'user has changed the rotation' and maybe he wants to change even the image on file, from 'user has changed zoom', nothing happens on file.
Tks
Hi,
To catch the Right Click Event:
For the rotation event I will add a new Rotation Event within the next release.
Regards,
Loïc
To catch the Right Click Event:
Code: Select all
Private Sub GdViewer1_MouseDownControl(Button As Integer, shift As Integer, X As Single, y As Single)
If Button = 2 Then
'Write your code here
End If
End Sub
For the rotation event I will add a new Rotation Event within the next release.
Regards,
Loïc
change image rotation through RightClick
Tks
Patrizia
Patrizia
Re: Viewer: change image rotation through RightClick
I can catch the event, no problem. But (using VB6) how would I cancel the right-click? My code executes and is immediately followed by the context menu. I want to get rid of that menu (or have the ability to customize it) because I don't want people to have the "Copy to Clipboard" option.
Private Sub oGdViewer_MouseDownControl(Button As Integer, shift As Integer, X As Single, y As Single)
If Button = 2 Then
MsgBox ("click")
'MouseDownControl.Cancel
End If
End Sub
Private Sub oGdViewer_MouseDownControl(Button As Integer, shift As Integer, X As Single, y As Single)
If Button = 2 Then
MsgBox ("click")
'MouseDownControl.Cancel
End If
End Sub
Re: Viewer: change image rotation through RightClick
Hi,
You can disable the contextual menu changing the value of the property EnableMenu to False.
Into the next GdPicture V5 release we will add a method to disable specific features from this menu.
Best regards,
Loïc Carrère
You can disable the contextual menu changing the value of the property EnableMenu to False.
Into the next GdPicture V5 release we will add a method to disable specific features from this menu.
Best regards,
Loïc Carrère
Who is online
Users browsing this forum: No registered users and 1 guest