Kryce-Online Is An Online Adventure Role-Playing Game. Designed To Bring The Best Entertainment For FREE!
Home­FAQ­Search­Register­Log in
Post new topic   Reply to topicShare | 
 

 Make the Updater Moveable *with code*

View previous topic View next topic Go down 
AuthorMessage
evilbunnie
Kryce Addict
Kryce Addict


Posts: 20
Join date: 2009-09-13
Age: 18
Location: New Zealand

PostSubject: Make the Updater Moveable *with code*   Tue Sep 22, 2009 7:29 am

Hey,

I find the updater quite annoying somtimes when i cant move it around the screen so i came up with this ideaa for you.

Make controlnamehere the control like the picture of the bar thing (i bet you knew that)
Make formnamehere the formname

Code:

Dim OldX as Integer, OldY as Integer, MoveIt as Boolean

Private Sub controlnamehere_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    If Button = vbLeftButton Then
        OldX = X
        OldY = Y
        MoveIt = True
    End If
End Sub

Private Sub controlnamehere_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If MoveIt = True Then
    formnamehere.Top = formnamehere.Top + Y - OldY
    formnamehere.Left = formnamehere.Left + X - OldX
End If
End Sub

Private Sub controlnamehere_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
    MoveIt = False
End Sub





But before you click ok you need to put

Code:

Option Explicit


At the very top of the form or whatever!


So hope it works !


Last edited by evilbunnie on Tue Sep 22, 2009 11:00 am; edited 4 times in total (Reason for editing : Forgot to tell where to put some code)
Back to top Go down
View user profile
kris_hole
Admin
Admin


Posts: 279
Join date: 2008-06-23
Age: 17
Location: Behind You!

PostSubject: Re: Make the Updater Moveable *with code*   Tue Sep 22, 2009 3:21 pm

yo know bunnie i never ythoght of ptting that in Razz

thanks i'll have a go layter XD

_________________
Kryce-Online Administrator...
Back to top Go down
View user profile http://kryce-online.co.cc
kris_hole
Admin
Admin


Posts: 279
Join date: 2008-06-23
Age: 17
Location: Behind You!

PostSubject: Re: Make the Updater Moveable *with code*   Sat Sep 26, 2009 2:06 pm

worked, i cant believe i never thought of doing that though Razz

_________________
Kryce-Online Administrator...
Back to top Go down
View user profile http://kryce-online.co.cc
evilbunnie
Kryce Addict
Kryce Addict


Posts: 20
Join date: 2009-09-13
Age: 18
Location: New Zealand

PostSubject: Re: Make the Updater Moveable *with code*   Sat Sep 26, 2009 9:54 pm

kris_hole wrote:
worked, i cant believe i never thought of doing that though Razz

Okay so is it in the next update?
Back to top Go down
View user profile
kris_hole
Admin
Admin


Posts: 279
Join date: 2008-06-23
Age: 17
Location: Behind You!

PostSubject: Re: Make the Updater Moveable *with code*   Sun Sep 27, 2009 9:43 am

aye. i'm gnna make a video later to show everyone the epic new pet system. its 1 pet per player now like but i think people will be really happy. once i get these last few LONNNNGGGGG bits of code done XD

_________________
Kryce-Online Administrator...
Back to top Go down
View user profile http://kryce-online.co.cc
evilbunnie
Kryce Addict
Kryce Addict


Posts: 20
Join date: 2009-09-13
Age: 18
Location: New Zealand

PostSubject: Re: Make the Updater Moveable *with code*   Thu Oct 01, 2009 10:01 pm

kris_hole wrote:
aye. i'm gnna make a video later to show everyone the epic new pet system. its 1 pet per player now like but i think people will be really happy. once i get these last few LONNNNGGGGG bits of code done XD

Ok well i am sorry i havent been on lately. Some mother f**ker stole my pc at school Sad. I am getting a new one at the moment right now i am on my friends pc ill try play...Smile
Back to top Go down
View user profile
 

Make the Updater Moveable *with code*

View previous topic View next topic Back to top 
Page 1 of 1

Permissions of this forum:You cannot reply to topics in this forum
Kryce-Online :: Kryce-Online Section :: Kryce-General-
Post new topic   Reply to topic