Escanor Posted March 14, 2016 Author Share Posted March 14, 2016 Hello,I have remove the main border to add mine. I draw the new border in modgraphics but I can't move the game screen.I have no idea how to make the move.Can You help me please ?Here the result when I draw the border![](http://image.noelshack.com/fichiers/2016/11/1457960168-capture.png) Link to comment Share on other sites More sharing options...
jcsnider Posted March 14, 2016 Share Posted March 14, 2016 This will require a bit of custom coding.Basically you check for a mouse down event. In that event you see if the mouse is positioned on top of the border. If so, you set a movement variable to true.. Then whenever the mouse moves check if that movement variable is true, if so move the game screen the same amount as the displacement of your mouse.When the mouse button is released, set the movement variable to false. Link to comment Share on other sites More sharing options...
BeNjO Posted March 15, 2016 Share Posted March 15, 2016 Something like this would be useful although you will need to edit it as it will put the client's very top left corner at your mouse position, edit it to suite your needs:```Private mouseClicked As BooleanPrivate Sub picTitleGUI_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single) mouseClicked = TrueEnd SubPrivate Sub picTitleGUI_MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single) mouseClicked = FalseEnd SubPrivate Sub picTitleGUI_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single) If mouseClicked Then frmMain.Left = frmMain.Left + x frmMain.Top = frmMain.Top + y End IfEnd Sub``` Link to comment Share on other sites More sharing options...
Escanor Posted March 15, 2016 Author Share Posted March 15, 2016 Thank you to you I managed Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now