tslusny Posted July 7, 2012 Author Share Posted July 7, 2012 So this is fix for resizing glitch that occur when you resizing main window.CLIENT SIDE**Find:**```Public Sub HandleMouseMove(ByVal x As Long, ByVal y As Long, ByVal Button As Long)```**Here find:**```GlobalX = xGlobalY = y```**Replace it with this:**```GlobalX = (12090 / frmMain.width) * xGlobalY = (9420 / frmMain.height) * y```**Optional if you want to have it in Pixels then replace this:**```GlobalX = xGlobalY = y```**With this:**```GlobalX = (800 / frmMain.scalewidth) * xGlobalY = (600 / frmMain.scaleheight) * y``` Link to comment Share on other sites More sharing options...
Eaglefly Posted July 7, 2012 Share Posted July 7, 2012 Srry im newbie where can you find that Link to comment Share on other sites More sharing options...
jcsnider Posted July 7, 2012 Share Posted July 7, 2012 Client Source in Sub HandleMouseMove..Personally though, it does the same thing but I have used…```GlobalX = (800 / frmMain.scalewidth) * xGlobalY = (600 / frmMain.scaleheight) * y```Keeping it in Pixels keeps it simple :P Link to comment Share on other sites More sharing options...
tslusny Posted July 7, 2012 Author Share Posted July 7, 2012 @jcsnider:> Client Source in Sub HandleMouseMove..> > Personally though, it does the same thing but I have used…> ```> GlobalX = (800 / frmMain.scalewidth) * x> GlobalY = (600 / frmMain.scaleheight) * y> ```> Yea :P> > Keeping it in Pixels keeps it simple :P Link to comment Share on other sites More sharing options...
Eaglefly Posted July 7, 2012 Share Posted July 7, 2012 IM REALY NOOB SRRY SRRY SRRY can some one send a screenshot of where i can find that Link to comment Share on other sites More sharing options...
Joyce Posted July 7, 2012 Share Posted July 7, 2012 Open the client in VB6, hit Control + F and search for it. Link to comment Share on other sites More sharing options...
JohnPony Posted July 7, 2012 Share Posted July 7, 2012 ``` x = CLng(x) / (frmMain.ScaleWidth / 800) Y = CLng(Y) / (frmMain.ScaleHeight / 600)```I had been using this, but have run into problems here and there. Link to comment Share on other sites More sharing options...
Synergy Posted July 8, 2012 Share Posted July 8, 2012 Stupid question probably, but how _do_ you actually resize the CS:DE game window? >.<I can't work it out, it's a bit frustrating.. Link to comment Share on other sites More sharing options...
tslusny Posted July 8, 2012 Author Share Posted July 8, 2012 @Synergy:> Stupid question probably, but how _do_ you actually resize the CS:DE game window? >.<> I can't work it out, it's a bit frustrating..You must change frmMain borders from Fixed to Sizable Link to comment Share on other sites More sharing options...
Synergy Posted July 8, 2012 Share Posted July 8, 2012 @Deathbeam:> You must change frmMain borders from Fixed to SizableSigh. And there was me, thinking I'd tried everything.I feel rather stupid. :embarrassed:Thanks anyway. :) 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