| View previous topic :: View next topic |
| Author |
Message |
Marcelito Escort Newbie
Joined: 22 Jun 2004 Posts: 10
|
Posted: Tue Jun 22, 2004 2:00 pm Post subject: Scroll in a VDS dialog |
|
|
How can i do to make a scrollable window in vds5.
I need to put a bmp that is larger than my dialog and i want to do a scroll up/down
Can anybody help my with an example?
Thanks a lot!!!
Marcelo |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Tue Jun 22, 2004 2:23 pm Post subject: |
|
|
Hi Marcelo, and welcome to the VDSWORLD forums... You could use the browser element to show the BMP with, but that way you can't use normal VDS styles and events with it, like "click" and so on. Another way to do it is by using the vdsdll 3, from Tommy Sools, which has a "wnd" command if I'm right. Still looking for a place to download it...  _________________ [ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial! |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Tue Jun 22, 2004 3:16 pm Post subject: |
|
|
Yes, the VDSDLL has a scroll for the VDS Dialogs. _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
Marcelito Escort Newbie
Joined: 22 Jun 2004 Posts: 10
|
Posted: Tue Jun 22, 2004 7:49 pm Post subject: |
|
|
VDSDLL have a VDSCSCRL function but dont work whit VDS5.
Is that right? if not can anybody tell me how to use it (an example please)
thanks a lot!!! |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Tue Jun 22, 2004 8:09 pm Post subject: |
|
|
Hi,
You can download the latest compatible package for VDS 5 at:
http://www.vdsworld.com/vdsdll/vds5/3.18/vdsdll3s.zip
Try it again using the new package if you were experiencing errors the first time.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Marcelito Escort Newbie
Joined: 22 Jun 2004 Posts: 10
|
Posted: Tue Jun 22, 2004 8:32 pm Post subject: |
|
|
Thanks a lot again.... but....
i´m using this example that comes with VDSDLL3S
---------------------------------------------------------------
| Code: | directory change,@path(%0)
external vdscscrl.dll
option decimalsep,.
DIALOG CREATE,Scrollbar Example,-1,0,361,230,CLASS VDSSCROLL
DIALOG ADD,STATUS,sStatus
DIALOG SHOW
cscroll window,#VDSSCROLL
cscroll add,scScroll,@diff(@dlgpos(,H),44),10,@diff(@dlgpos(,W),20),16,0,change
cscroll min,scScroll,0
cscroll max,scScroll,100
cscroll small,scScroll,5
cscroll large,scScroll,10
cscroll page,scScroll,0
cscroll data,scScroll,0
:scScroll|change
dialog set,sStatus,@cscroll(data,scScroll)
:evloop
wait event
goto @event()
:close |
-------------------------------------------------
and i receive error in line 7,8, 9 10, 11,12, etc
What i´m doing wrong?
Thanks again...
Marcelo
Edited by FreezingFire, added [code:1:e99602ed93] tag for ease of reading. |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Tue Jun 22, 2004 8:42 pm Post subject: |
|
|
If you're using VDS 5, you will need to define the commands and functions
that come with the DLL.
Try this example:
| Code: | #define command,cscroll
#define function,cscroll
directory change,@path(%0)
external vdscscrl.dll
option decimalsep,.
DIALOG CREATE,Scrollbar Example,-1,0,361,230,CLASS VDSSCROLL
DIALOG ADD,STATUS,sStatus
DIALOG SHOW
cscroll window,#VDSSCROLL
cscroll add,scScroll,@diff(@dlgpos(,H),44),10,@diff(@dlgpos(,W),20),16,0,change
cscroll min,scScroll,0
cscroll max,scScroll,100
cscroll small,scScroll,5
cscroll large,scScroll,10
cscroll page,scScroll,0
cscroll data,scScroll,0
:scScroll|change
dialog set,sStatus,@cscroll(data,scScroll)
:evloop
wait event
goto @event()
:close |
_________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Marcelito Escort Newbie
Joined: 22 Jun 2004 Posts: 10
|
Posted: Tue Jun 22, 2004 9:39 pm Post subject: |
|
|
i got the following...
"Error: in external command or function at line 9" |
|
| Back to top |
|
 |
jwfv Valued Contributor

Joined: 19 Mar 2002 Posts: 422 Location: Beaufort, SC
|
Posted: Tue Jun 22, 2004 9:41 pm Post subject: |
|
|
I tried it also with the #define and got the same error.
Was this .dll ever upgraded to work with VDS5? _________________ Joe Floyd |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Tue Jun 22, 2004 10:10 pm Post subject: |
|
|
Please make sure you are using the package I mentioned above.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
jwfv Valued Contributor

Joined: 19 Mar 2002 Posts: 422 Location: Beaufort, SC
|
Posted: Wed Jun 23, 2004 12:13 am Post subject: |
|
|
I think I downloaded it directly from your post .... I'll double-check. _________________ Joe Floyd |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
|
| Back to top |
|
 |
Vic D'Elfant Past Contributor


Joined: 26 Jun 2002 Posts: 673 Location: The Netherlands
|
Posted: Wed Jun 23, 2004 5:55 am Post subject: |
|
|
[offtopic]
FreezingFire, shouldn't we put a .zip online which contains all vdsdlls from
which we are sure that they're compatible with vds5, together with the
examples?
I think it's a bit difficult to understand (for newbies at least ) because
there're different versions of the dll everywhere.
Vic
[/offtopic] _________________ phpBB Development Team |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Wed Jun 23, 2004 11:41 am Post subject: |
|
|
I think Tommy will put out a new version since he may be not as busy soon.
I can't speak for certain however, and you should probably ask him
before distributing his files in a different package.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
jwfv Valued Contributor

Joined: 19 Mar 2002 Posts: 422 Location: Beaufort, SC
|
Posted: Wed Jun 23, 2004 1:16 pm Post subject: |
|
|
You know, I tried downloading from the link above, but keep getting errors. I don't know what I'm doing wrong. I assume the example has worked for others with VDS5? _________________ Joe Floyd |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|