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 


Slide...

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Visual DialogScript 3 Source Code
View previous topic :: View next topic  
Author Message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Tue Sep 17, 2002 12:21 pm    Post subject: Slide... Reply with quote

Not sure how useful this is...
Code:

OPTION SCALE, 96
TITLE By Mac
DIALOG CREATE,"Slide Example",-1,0,207,240
  DIALOG ADD,STYLE,Blue,Arial,12,,LTBLUE,WHITE
  DIALOG ADD,TEXT,Slide,0,0,100,20,"0",Blue,CLICK
  DIALOG ADD,TEXT,Info,3,105,100,60,"Click on the bar to grab it. Move off the ends to release it."
  DIALOG ADD,PROGRESS,ProgBar,220,0,207,20
DIALOG SHOW

:EVLOOP
  WAIT EVENT
  goto @event()

:SlideCLICK
  REPEAT
    %x = @mousepos(X)
    %y = @mousepos(Y)
    %t = @winpos("Slide Example", T)
    %l = @winpos("Slide Example", L)
    %p = @diff(%y, @sum(%t, 30))
    if @greater(%p, 200)
       %p = 200
    end
    if @greater(0, %p)
       %p = 0
    end
    DIALOG SETPOS, Slide, %p
    DIALOG SET, Slide, %p
    DIALOG SET, ProgBar, @div(%p, 2)
  UNTIL @greater(%x, @sum(%l, 100))@greater(%l, %x)
  goto EVLOOP

:CLOSE
  EXIT

Cheers, Mac

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Visual DialogScript 3 Source Code All times are GMT
Page 1 of 1

 
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