deminizer Posted April 6, 2017 Author Share Posted April 6, 2017 Please tell me how to make a border less form move.Thank You. Link to comment Share on other sites More sharing options...
deminizer Posted April 8, 2017 Author Share Posted April 8, 2017 Bump~ Link to comment Share on other sites More sharing options...
Slasheree Posted April 15, 2017 Share Posted April 15, 2017 Pseudo-code would probably go something along these linesCreate 3 variables:int mx, myboolean mmov–- On form events ---MouseDown: (X and Y are received by parameter)If inDraggableAreaCheckHere Then ' inDraggableAreaCheckHere is where you calculate if the click was within an acceptable area (usually if clickY<10px or something like a windows top bar)mx = Xmy = Ymmov = TrueEnd IfMouseUp:mmov = FalseMouseMove: (X and Y are received by parameter)If mmov ThenForm.x = Form.x - (X-mx)Form.y = Form.y - (Y-my)End If Link to comment Share on other sites More sharing options...
deminizer Posted April 16, 2017 Author Share Posted April 16, 2017 @'Slasheree':> Pseudo-code would probably go something along these lines> > Create 3 variables:> int mx, my> boolean mmov> > –- On form events ---> MouseDown: (X and Y are received by parameter)> If inDraggableAreaCheckHere Then ' inDraggableAreaCheckHere is where you calculate if the click was within an acceptable area (usually if clickY<10px or something like a windows top bar)> mx = X> my = Y> mmov = True> End If> > MouseUp:> mmov = False> > MouseMove: (X and Y are received by parameter)> If mmov Then> Form.x = Form.x - (X-mx)> Form.y = Form.y - (Y-my)> End IfThank you 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