| View previous topic :: View next topic |
| Author |
Message |
JRoza Contributor


Joined: 17 Aug 2003 Posts: 182 Location: Netherlands
|
Posted: Mon Jan 17, 2005 9:40 pm Post subject: VDS Browser once again |
|
|
Hi,
I'm at a loss trying to use the browser dialog element.
Created this line via the Dialog Designer:
DIALOG ADD,BROWSER,BROWSER1,10,9,583,377,http://www.dialogscript.com
At runtime it always end in "invalid parameter to control"
I've looked in the scarse documentation someone provided a while ago in this forum but am unable to find out what's wrong.
Anyone any ideas?
Do you need to include vdsbrowser.dll as external dll with #define statements to enable the browser command and functions?
I just want to show a printfile I just created in html-format to the user in a preview window which has a browser element.
I think this browser element needs a good work-over with good documentation in VDS6.
Hope one of you can get me on the road again.
Jan |
|
| Back to top |
|
 |
jwfv Valued Contributor

Joined: 19 Mar 2002 Posts: 422 Location: Beaufort, SC
|
Posted: Mon Jan 17, 2005 10:12 pm Post subject: |
|
|
Yes, it is treated like any other external DLL. Add this to the beginning of your code:
external vdsbrw50
#define command, browser
#define function, browser _________________ Joe Floyd |
|
| Back to top |
|
 |
JRoza Contributor


Joined: 17 Aug 2003 Posts: 182 Location: Netherlands
|
Posted: Mon Jan 17, 2005 10:58 pm Post subject: |
|
|
Thanks!
I got it going now, so I'm back on track again.
I was mislead by the fact that the element is a standard element you can use in the Dialog Designer even without specifying the External bit.
The way the element now works is a bit of a hybrid partly built in partly external.
Sure hope this one will be more integrated in VDS6.
 |
|
| Back to top |
|
 |
jwfv Valued Contributor

Joined: 19 Mar 2002 Posts: 422 Location: Beaufort, SC
|
Posted: Tue Jan 18, 2005 12:55 am Post subject: |
|
|
I agree. It would be nice to not have to include those calls for the browser element. I remember there was some discussion about how including it in the main VDS .DLL would increase the size quite a bit, though. Maybe there is some other way to make it an external .DLL (that has to be distributed along with your .EXE) but that has functions and commands that are already integrated into VDS. (No need to define them ... if the compiler sees that command, it looks for the VDSBRW50.dll).
Of course, there may be more to it than I realize and for simplicity's sake, treating it like other external .DLLs may make sense. _________________ Joe Floyd |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Tue Jan 18, 2005 9:07 am Post subject: |
|
|
| jwfv wrote: | I agree. It would be nice to not have to include those calls for the browser element. I remember there was some discussion about how including it in the main VDS .DLL would increase the size quite a bit, though. Maybe there is some other way to make it an external .DLL (that has to be distributed along with your .EXE) but that has functions and commands that are already integrated into VDS. (No need to define them ... if the compiler sees that command, it looks for the VDSBRW50.dll).
Of course, there may be more to it than I realize and for simplicity's sake, treating it like other external .DLLs may make sense. |
The element does already use standard DIALOG and other commands. The separate BROWSER command and function are only needed for things for which there is no equivalent. So yuou only need to #DEFINE those if you need them. The need for the EXTERNAL command is unavoidable, and I don't see it as a problem, as the developer must realize the element is an external one because they have to include it with the application. It's really a fault of the help file, which probably doesn't say that you need to add these lines to use this element.
There will undoubtedly be other external dialog elements for VDS in future. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Wed Jan 19, 2005 7:47 am Post subject: |
|
|
i prefer to have the browser element not included with the vds run time file as this way you only need to include it in your distribution file if and when you use and this in turn reduces the run time file/distribution file of my programs
looking forward to...
| Quote: | | other external dialog elements |
serge _________________
|
|
| Back to top |
|
 |
JRoza Contributor


Joined: 17 Aug 2003 Posts: 182 Location: Netherlands
|
Posted: Wed Jan 19, 2005 11:57 am Post subject: |
|
|
I didn't mean to have vdsbrowser included in the runtime, as I agree that would make the runtime heavier with stuff not everybody uses.
I was mislead by the element being available in the Dialog Designer without it being clear that I needed to include the dll.
I'm perfectly happy now that I got things going.
The only complaint being the lack of proper documentation for this dll.
It could be integrated in the vds helpfile, but better would be to include a separate helpfile with the dll (just like most developers do with their dll).
That way anyone who wants to use the dll has the documentation at hand.
Jan |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Wed Jan 19, 2005 6:38 pm Post subject: |
|
|
Everything that comes with VDS as standard should be in the help file.
I've just been going through the help file and there is quite a lot of stuff that is missing or just plain wrong, including things that haven't been true since VDS 2 was around (remember dialogs being created in one big DIALOG CREATE command?)
Probably the only way to ensure VDS 6 has a decent help file is to do it myself... _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
Boo Valued Contributor


Joined: 31 Oct 2003 Posts: 599 Location: Gulf Breeze, Florida USA
|
Posted: Wed Jan 19, 2005 6:58 pm Post subject: |
|
|
There is no one more qualified.  |
|
| Back to top |
|
 |
JRoza Contributor


Joined: 17 Aug 2003 Posts: 182 Location: Netherlands
|
Posted: Wed Jan 19, 2005 7:28 pm Post subject: |
|
|
I agree with Boo, no one can be better qualified than mister VDS himself. It seems if he is not minding the shop Commercial Research is cutting too many edges.
I really like what I read about VDS 6 until now......can hardly wait till it's ready.
Jan |
|
| Back to top |
|
 |
Hooligan VDS Developer


Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Wed Jan 19, 2005 11:08 pm Post subject: |
|
|
It seems to me a new forum or even just a new thread could be created to post help page suggestions by those who feel a better write-up would be beneficial. That way Mr. VDS can concentrate on coding VDS 6.0, and then grabbing the suggestions and editing them as necessary when that time comes... If this gets me VDS 6.0 sooner, I am all for it! I'd be willing to edit some help pages for everyones benefit.
What do you guys think?
Hooligan _________________ Hooligan
Why be normal? |
|
| Back to top |
|
 |
JRoza Contributor


Joined: 17 Aug 2003 Posts: 182 Location: Netherlands
|
Posted: Thu Jan 20, 2005 7:06 am Post subject: |
|
|
I'm all for it.
Don't mind to do some work for a product I like and use so much.
 |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Thu Jan 20, 2005 8:52 am Post subject: |
|
|
A little while ago, I suggested to make an interactive help file, where people can add comments to the help pages themselves. An example of such a helpfile is the online helpfile of PHP.net (example). This way, people can hand out tips and tricks to other VDS users and correct false statements in the help file...  _________________ [ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial! |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Thu Jan 20, 2005 9:22 am Post subject: |
|
|
| Hooligan wrote: | It seems to me a new forum or even just a new thread could be created to post help page suggestions by those who feel a better write-up would be beneficial. That way Mr. VDS can concentrate on coding VDS 6.0, and then grabbing the suggestions and editing them as necessary when that time comes... If this gets me VDS 6.0 sooner, I am all for it! I'd be willing to edit some help pages for everyones benefit.
What do you guys think?
Hooligan |
That would be a really great idea. There are a lot of good suggestions made on this forum (for improvements to VDS itself, as well) but if I'm unable to act on them right at the time, it isn't easy to go back and see whether I've forgotten any of them later. So I'm all in favour of having specific topics for suggestions so I can easily find them. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Thu Jan 20, 2005 11:24 am Post subject: |
|
|
By the way, has anyone ever seen the VDS Application Wizard? _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
|