| View previous topic :: View next topic |
| Author |
Message |
steeld Valued Newbie

Joined: 03 May 2006 Posts: 26 Location: Cambridge, UK
|
Posted: Sun Jan 27, 2008 11:19 am Post subject: IMAGE in VDS6 |
|
|
I could not find a list of new features on the VDS Web site in order to assess whether VDS6 has anything new to offer me for my specific use over and above the features in VDS5. It's only through coming here and searching a few threads that I discovered that this is only listed in the VDS6 help (why make it so difficult to find?).
Anyhow, I want to create a shell to run a command-line app that creates an image file as an output. Now, can anyone help me here? I see that there is an IMAGE command that can load an image into a dialog element and I see that it also supports CLICK events and that I can retrieve the coordinates of where the image was clicked so can I do the following task:
Display a image file in a dialog but scaled to fit the dialog but with the option to display the image at actual pixels by clicking on certain points in the image? I'm not sure how (or if) it is possible to translate the coordinates of the position of the click in the dialog element to showing a magnified portion of the image centered around the click point. The ability to scroll around the image would also be icing on the cake. The bottom line is that I simply want to run the command-line app and look at the output quickly and simply without the need to fire up Photoshop.
Maybe there is a ready-made extension that does this. Any ideas?
Many thanks _________________ David |
|
| Back to top |
|
 |
steeld Valued Newbie

Joined: 03 May 2006 Posts: 26 Location: Cambridge, UK
|
Posted: Sun Jan 27, 2008 12:49 pm Post subject: |
|
|
I just found the Thumbnail Image Viewer (viewer.dsu) which appears to be everything I want but.... it keeps crashing on exit. The ReadMe file suggests that it was fixed but it is crashing for me on XP. Anybody any experience of this?
Thanks _________________ David |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Sun Jan 27, 2008 11:38 pm Post subject: |
|
|
Hmm,
It seems like you are asking for a program that does these things not a programming language which Visual DialogScript (VDS) is. I do not know why your getting the error though? I have tried the demos for this DLL on Windows XP SP2 and I am not getting any errors. _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
steeld Valued Newbie

Joined: 03 May 2006 Posts: 26 Location: Cambridge, UK
|
Posted: Sun Jan 27, 2008 11:46 pm Post subject: |
|
|
It's strange but this DLL crashes the IDE every time but causes no complaints when running as a compiled executable. _________________ David |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Sun Jan 27, 2008 11:53 pm Post subject: |
|
|
I tried it in both the IDE and compiled and I still don't see an error. Maybe you could post the code that you are trying to use. I suspect the error is somewhere in your code. _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
DaveR Valued Contributor


Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Mon Jan 28, 2008 3:32 am Post subject: |
|
|
I was just reading the readme file and noticed the credits:
| Code: | Thanks:
to DragonSpere who help figure out why the VDS app was crashing on exit |
It's a very cool dsu.
But I also get a VDS has caused an exception of class "EAccessViolation"error when closing the app while in the IDE (on both VDS 5 and VDS 6 demo). I added | Code: | :Close
freelib viewplus.dll
freelib thumbs.dll
exit |
and it then gave 3 access viloation errors. One for each 'freelib' command and one for the 'exit' command.
Before you can answer the VDS Oops error message Windows pops up a vds.exe has encountered a problem and needs to close message. Pressing Close in this windows dialog results in a "Close, error, Close error' loop. The only way to close it is to select Debug instead of Close.
I've tried moving the files to a shortnamed directory off the root of a drive just in case it was caused by the path length. I also copied the dll files to the VDS directory and to my VDS default project directory. Neither of these things stopped the access violation error.
I hope this helps someone figure what is going on. _________________ cheers
Dave
Last edited by DaveR on Mon Jan 28, 2008 4:59 am; edited 1 time in total |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Mon Jan 28, 2008 3:38 am Post subject: |
|
|
Didn't Tommy Sools have something in his VDSDLL extension that also allowed zooming in and or out on images? _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Mon Jan 28, 2008 1:10 pm Post subject: |
|
|
| DaveŽ wrote: | | Code: | :Close
freelib viewplus.dll
freelib thumbs.dll
exit |
|
What are those DLL's for? We were talking about the vdsimg60.dll that comes with VDS 6. Also it is never nessary to freelib a VDS extension and in most cases it will cause errors if you do since there was no loadlib before the freelib. The External command is not the same as loadlib/freelib.
Also this error "VDS has caused an exception of class "EAccessViolation"" has nothing to do with vdsimg60.dll...
Dave I think you are talking about the DLL's from Marty? Either way Marty does not support those anymore and I doubt he would be interested in updating them for VDS 6. You could ask him really nice and maybe he will fix them but I really can't say. _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
steeld Valued Newbie

Joined: 03 May 2006 Posts: 26 Location: Cambridge, UK
|
Posted: Mon Jan 28, 2008 1:46 pm Post subject: |
|
|
Er, sorry, maybe it's me that is causing the confusion here.
My first post was about the IMAGE command in VDS6 but I then saw the ViewPlus Thumbnail Image Viewer Extension which seems to do much of what I want albeit it crashes the IDE after running. The only way I can run this is to compile it with my VDS5 license (I haven't worked out what VDS6 can do for me yet). If IMAGE in VDS6 can do what I want then I'll consider upgrading but since I use VDS for about 1 applet a year and have bought VDS3, 4 and 5 in the past, I don't want to rush out and buy VDS6 if I can't do what I want anyway.
So, I am using the ViewPlus extension with VDS5 right now though I see that it has suddenly disappeared from the list of freeware extensions today.
If there are other or better ways of splatting an image into a dialog and permitting me to zoom in and roam around it then I'll willingly consider it. If ViewPlus is no longer supported then it seems a shame that so much interesting functionality for VDS is dependent on external DLLs which aren't always maintained. I'm not criticising the respective authors because much of it is freeware/shareware and they have other things in their life to think about. Now, and coming back to my original question, if VDS6 can do this... _________________ David |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Mon Jan 28, 2008 2:21 pm Post subject: |
|
|
Ok I tried the viewplus and thumbsplus again and you are correct. I don't remember but I don't think they ever worked in the IDE? It was something about how these DLL's subclassed the main dialog and the fact that the main dialog in the IDE is the IDE itself and not the end Exe. I have no idea because they were written in Delphi I would not be able to begin to explain why they are not working. I have never had this issue with my DLL's which are written in C All I know is that when the elements get the signal to close they are not disconnecting from the parent window cleanly. _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
steeld Valued Newbie

Joined: 03 May 2006 Posts: 26 Location: Cambridge, UK
|
Posted: Mon Jan 28, 2008 2:46 pm Post subject: |
|
|
OK, that makes sense. So, any ideas of what I can do? Any other extensions out there or can the VDS6 IMAGE command help?
Thanks _________________ David |
|
| Back to top |
|
 |
marty Professional Member


Joined: 10 May 2001 Posts: 789
|
Posted: Tue Jan 29, 2008 3:24 am Post subject: |
|
|
Hi,
I am the author of Thumbnail Image Viewer DSU and not the DLLs that come with it (like mentionned in the readme)
The only thing that was fixed was on the exit of the COMPILED VDS application. It will always crash using it in the IDE on exit after youran it.
But it works fine once COMPILED.
I used it some of my apps.
And you can still download it btw
http://www.vdsworld.com/download.php?id=479&sid=b0fa5bf1e2e0c6e29279df28ad234064
Thanks |
|
| Back to top |
|
 |
steeld Valued Newbie

Joined: 03 May 2006 Posts: 26 Location: Cambridge, UK
|
Posted: Tue Jan 29, 2008 11:13 pm Post subject: |
|
|
Thanks Marty. In a compiled app it is fine and I haven't yet found anything else that comes close to its usefulness.
If you ever decide to enhance it, might I suggest a click and drag to zoom in on an area and the ability to set some kind of magnification/zoom via code.
Also, if I do a dialog resize I am executing another viewplus add with the new dialog size - I'm not sure whether that's good practice but it seems to work. Anyhow, these thoughts are just icing on the cake - thanks for making this available, it is really useful without having to fire up an external program just to view an image file.
Thanks again. _________________ David |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Mon Feb 04, 2008 12:59 pm Post subject: |
|
|
I have trouble with the new v6 image DLL, when testing all the transitions, only about 15 or 20 percent of them worked for me.
In other words they were blank or nothing happened..
Don't know if I'll ever need transitions anyways.
Does anyone know of a DLL that will capture movie or parts of AVI type files while they are playing. |
|
| Back to top |
|
 |
|