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 


Help! With moving a window with notitle

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
LinkSisco
Valued Newbie


Joined: 17 May 2002
Posts: 30
Location: UK

PostPosted: Sun May 19, 2002 11:49 am    Post subject: Help! With moving a window with notitle Reply with quote

How can i move my dialog around the screen if it has no title?
I want to be able to drag it around with a bitmap, but i dont know how.

Thank you...
Back to top
View user's profile Send private message
Mac
Professional Member
Professional Member


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

PostPosted: Sun May 19, 2002 2:19 pm    Post subject: Reply with quote

_____________________________________________________________
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
Back to top
View user's profile Send private message Send e-mail
LinkSisco
Valued Newbie


Joined: 17 May 2002
Posts: 30
Location: UK

PostPosted: Sun May 19, 2002 4:37 pm    Post subject: Reply with quote

Thank you, that perfect...
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
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