FreshFish Newbie
Joined: 28 Apr 2006 Posts: 1
|
Posted: Fri Apr 28, 2006 5:25 pm Post subject: Another Scrolling Question... |
|
|
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 |
|