Picture Changed Event
-
- Posts: 24
- Joined: Tue Nov 27, 2007 2:50 am
Picture Changed Event
Hey Loïc,
Earlier this year, at my request, you added a picture change event. I am now pleading with you to reconsider adding a picture changed event that is triggered after the picture has changed (not before) and only when the image is different than the image already loaded in the viewer. You supplied a workaround at the end of the previous post listed above. This feature would make my life and coding experience so much easier, so please I am begging you (Sorry to sound so pathetic). I've been away for several months and didn't realize version 4 came out. WOW, nice work!
Earlier this year, at my request, you added a picture change event. I am now pleading with you to reconsider adding a picture changed event that is triggered after the picture has changed (not before) and only when the image is different than the image already loaded in the viewer. You supplied a workaround at the end of the previous post listed above. This feature would make my life and coding experience so much easier, so please I am begging you (Sorry to sound so pathetic). I've been away for several months and didn't realize version 4 came out. WOW, nice work!
-
- Posts: 24
- Joined: Tue Nov 27, 2007 2:50 am
-
- Posts: 24
- Joined: Tue Nov 27, 2007 2:50 am
-
- Posts: 24
- Joined: Tue Nov 27, 2007 2:50 am
-
- Posts: 24
- Joined: Tue Nov 27, 2007 2:50 am
No problem Loic. I can't find the latest fixed version. I have re-download the package but it is the same as the non working 4.5.1. I have also checked...
https://www.gdpicture.com/ressources/ocx/
https://www.gdpicture.com/ressources/betas/
...and can't find it.
Thanks
https://www.gdpicture.com/ressources/ocx/
https://www.gdpicture.com/ressources/betas/
...and can't find it.
Thanks
Hi,
I think that your browser didn't refresh the content of the website.
I can find the 4.5.2 release in both https://www.gdpicture.com/softwares.php folder and https://www.gdpicture.com/ressources/ocx/
Regards,
Loïc
I think that your browser didn't refresh the content of the website.
I can find the 4.5.2 release in both https://www.gdpicture.com/softwares.php folder and https://www.gdpicture.com/ressources/ocx/
Regards,
Loïc
-
- Posts: 24
- Joined: Tue Nov 27, 2007 2:50 am
Hey Loic,
That must have been it. I downloaded the latest version (5.4.2) and tested it but no luck. How are you testing it? I just created a button and put a "DisplayFromFile" to load a "hard coded" image in the click event. When I click the button for a second time (the same picture loads) both the change and changed events trigger when they shouldn't (because the picture didn't change).
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
oGdViewer.DisplayFromFile("path")
End Sub
Private Sub oGdViewer_PictureChange(ByVal sender As Object, ByVal e As System.EventArgs) Handles oGdViewer.PictureChange
MsgBox("Change")
End Sub
Private Sub oGdViewer_PictureChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles oGdViewer.PictureChanged
MsgBox("Changed")
End Sub
I am using VS.net 2008
That must have been it. I downloaded the latest version (5.4.2) and tested it but no luck. How are you testing it? I just created a button and put a "DisplayFromFile" to load a "hard coded" image in the click event. When I click the button for a second time (the same picture loads) both the change and changed events trigger when they shouldn't (because the picture didn't change).
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
oGdViewer.DisplayFromFile("path")
End Sub
Private Sub oGdViewer_PictureChange(ByVal sender As Object, ByVal e As System.EventArgs) Handles oGdViewer.PictureChange
MsgBox("Change")
End Sub
Private Sub oGdViewer_PictureChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles oGdViewer.PictureChanged
MsgBox("Changed")
End Sub
I am using VS.net 2008
Last edited by fbmachines on Fri Dec 14, 2007 9:24 pm, edited 1 time in total.
Re: Picture Changed Event
Hi,
I am trying to use the picturechanged event to display a AJAX style loader, however I am getting an error:
Expected ')' on the first line of
Private Sub oGdViewer_PictureChange(ByVal sender As Object, ByVal e As System.EventArgs) Handles oGdViewer.PictureChange
MsgBox("Change")
End Sub
Any ideas?
I am trying to use the picturechanged event to display a AJAX style loader, however I am getting an error:
Expected ')' on the first line of
Private Sub oGdViewer_PictureChange(ByVal sender As Object, ByVal e As System.EventArgs) Handles oGdViewer.PictureChange
MsgBox("Change")
End Sub
Any ideas?
Re: Picture Changed Event
Hi,
I have never programmed with Ajax.
However I suppose that the syntax should be quite different ?
maybe this link could help you: http://weblogs.asp.net/bleroy/archive/2 ... asses.aspx
Best regards,
Loïc
I have never programmed with Ajax.
However I suppose that the syntax should be quite different ?
maybe this link could help you: http://weblogs.asp.net/bleroy/archive/2 ... asses.aspx
Best regards,
Loïc
Re: Picture Changed Event
Hi Loic,
It is not Ajax as such, more Client Side appearance.
I want to use the local event _PictureChange and _PictureChanged to show an img instead of "nothing" while the picture/PDF loads into a hidden DIV then reappears.
This is done with this code here, it the _PictureChange event / routine worked.
Is there something else I would need to do, to make this work? I am operating in ASP classic environment, using VBScript as client side Scripting tool, on IE 6.
Private Sub MyGdViewer_PictureChange(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyGdViewer.PictureChange
MsgBox("Change")
document.getElementById("loader").style.display = ""
document.getElementById("picture").style.display = "none"
End Sub
Private Sub MyGdViewer_PictureChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyGdViewer.PictureChanged
MsgBox("Changed")
document.getElementById("picture").style.display = ""
document.getElementById("loader").style.display = "none"
End Sub
(Only just revisting this now, although I did not receive email notification of your reply?)
It is not Ajax as such, more Client Side appearance.
I want to use the local event _PictureChange and _PictureChanged to show an img instead of "nothing" while the picture/PDF loads into a hidden DIV then reappears.
This is done with this code here, it the _PictureChange event / routine worked.
Is there something else I would need to do, to make this work? I am operating in ASP classic environment, using VBScript as client side Scripting tool, on IE 6.
Private Sub MyGdViewer_PictureChange(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyGdViewer.PictureChange
MsgBox("Change")
document.getElementById("loader").style.display = ""
document.getElementById("picture").style.display = "none"
End Sub
Private Sub MyGdViewer_PictureChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyGdViewer.PictureChanged
MsgBox("Changed")
document.getElementById("picture").style.display = ""
document.getElementById("loader").style.display = "none"
End Sub
(Only just revisting this now, although I did not receive email notification of your reply?)
Who is online
Users browsing this forum: No registered users and 1 guest