forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Scroll in a VDS dialog
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Marcelito Escort
Newbie


Joined: 22 Jun 2004
Posts: 10

PostPosted: Tue Jun 22, 2004 2:00 pm    Post subject: Scroll in a VDS dialog Reply with quote

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
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Tue Jun 22, 2004 2:23 pm    Post subject: Reply with quote

Hi Marcelo, and welcome to the VDSWORLD forums... Smile 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... Rolling Eyes
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Tue Jun 22, 2004 3:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
Marcelito Escort
Newbie


Joined: 22 Jun 2004
Posts: 10

PostPosted: Tue Jun 22, 2004 7:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Tue Jun 22, 2004 8:09 pm    Post subject: Reply with quote

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. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Marcelito Escort
Newbie


Joined: 22 Jun 2004
Posts: 10

PostPosted: Tue Jun 22, 2004 8:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Tue Jun 22, 2004 8:42 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Marcelito Escort
Newbie


Joined: 22 Jun 2004
Posts: 10

PostPosted: Tue Jun 22, 2004 9:39 pm    Post subject: Reply with quote

i got the following...

"Error: in external command or function at line 9"
Back to top
View user's profile Send private message
jwfv
Valued Contributor
Valued Contributor


Joined: 19 Mar 2002
Posts: 422
Location: Beaufort, SC

PostPosted: Tue Jun 22, 2004 9:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Tue Jun 22, 2004 10:10 pm    Post subject: Reply with quote

Please make sure you are using the package I mentioned above. Smile
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
jwfv
Valued Contributor
Valued Contributor


Joined: 19 Mar 2002
Posts: 422
Location: Beaufort, SC

PostPosted: Wed Jun 23, 2004 12:13 am    Post subject: Reply with quote

I think I downloaded it directly from your post .... I'll double-check.
_________________
Joe Floyd
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Wed Jun 23, 2004 1:55 am    Post subject: Reply with quote

You might want to try downloading this updated DLL directly instead:
http://www.vdsworld.com/vdsdll/vds5/vdscscroll.dll

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Vic D'Elfant
Past Contributor
Past Contributor


Joined: 26 Jun 2002
Posts: 673
Location: The Netherlands

PostPosted: Wed Jun 23, 2004 5:55 am    Post subject: Reply with quote

[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 Wink) because
there're different versions of the dll everywhere.

Vic
[/offtopic]

_________________
phpBB Development Team
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Wed Jun 23, 2004 11:41 am    Post subject: Reply with quote

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. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
jwfv
Valued Contributor
Valued Contributor


Joined: 19 Mar 2002
Posts: 422
Location: Beaufort, SC

PostPosted: Wed Jun 23, 2004 1:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
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

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group