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 


Another Scrolling Question...

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Advanced Help for VDS 5 & Up
View previous topic :: View next topic  
Author Message
FreshFish
Newbie


Joined: 28 Apr 2006
Posts: 1

PostPosted: Fri Apr 28, 2006 5:25 pm    Post subject: Another Scrolling Question... Reply with quote

Please excuse any ignorance as I'm a hobbyist new to VDS and this is my first post... and of course I need help! My goal is to create a program that is capable of scrolling a "group" outside of the window boundaries. In combination with a scrollbar (which I have already) this would allow access to the entire set of objects regardless of the window size. I have tried many potential solutions including winpos, window position, and vds3.dll (I can not get it to scroll an entire group, just a single object at a time). Each time, the problem ultimately is moving the group into the negative region (Top = -1,-2,etc.) Unfortunately, due to the complexity and size of my "group", removing it and recreating each time (dialog create can use negative numbers) would be extremely tasking... Looking for a more elegant solution... any help would be appreciated.

Below is an example:

Code:
DIALOG CREATE,New Dialog,-1,0,500,400
  REM DIALOG ADD,LINE,LINE1,34,35,449,358
  DIALOG ADD,Group,Group,70,150,199,277,Moving Up...
  DIALOG ADD,BUTTON,BUTTON1,309,276,64,24,OK
  DIALOG ADD,BUTTON,BUTTON2,309,203,64,24,Cancel
  DIALOG ADD,SHAPE,SHAPE,94,175,150,195,WHITE,BLACK,,RECTANGLE
  DIALOG ADD,TEXT,TEXT,118,190,,,Please Enter:
  DIALOG ADD,EDIT,EDIT,143,191,117,127,Sample
  DIALOG ADD,STATUS,STATUS
  DIALOG SHOW
 
  PARSE "%T;%L;%W;%H",@DLGPOS(GROUP,TLWH)

:REPOSITION 
  REM ATTEMPTING WITH SETPOS...
  DIALOG SETPOS,GROUP,%T,%L,%W,%H
  WAIT 0.01
 
  REM ATTEMPTING WITH WINDOW POSITION...
  WINDOW POSITION,@WINEXISTS(~GROUP),%T,%L,%W,%H
 
  REM ANY OTHER IDEAS...?
   
  WAIT 0.01
  REM REPOSITIONING HIGHER BY 1 PIXEL
  DIALOG SET,STATUS,COORDINATES: Top = %T; Left = %L; Width = %W; Height = %H
  %T = @FADD(%T,-1)
GOTO REPOSITION

_________________
- FreshFish
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 -> Advanced Help for VDS 5 & Up 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