Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sun May 19, 2002 2:19 pm Post subject: |
|
|
_____________________________________________________________
Here's a simple example for VDS3. If you have VDS4
the @mousedown() function would make it neater.
You can also adjust the XY to grab it wherever the
mouse is clicked.
Click to grab, click again to release...
| Code: |
DIALOG CREATE,"Test",-1,0,200,100,NOTITLE,CLICK
DIALOG ADD,BUTTON,Exit,2,179,20,20,"X"
DIALOG SHOW
:EVLOOP
WAIT EVENT
goto @event()
:CLICK
REPEAT
%x = @mousepos(X)
%y = @mousepos(Y)
WINDOW POSITION,"Test",%y,%x
UNTIL @event()
goto EVLOOP
:ExitBUTTON
EXIT
|
_________________ 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
 |
|