XxxKills Posted June 25, 2009 Share Posted June 25, 2009 I cant fiqure out how to resize my gui after entering game. Ill post the code for what I start with and what I needto change too: Global $Form1 = GUICreate("XBOTv0.1",785, 583, 187, 113,-1 ,BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE),"Diablo II") Global $Edit1 = GUICtrlCreateEdit("", 0, 0, 801, 601, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE),"Diablo II") GUICtrlSetData(-1, "") GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKTOP) GUISetState(@SW_SHOW) WinMove("XBOTv0.1", "", 0, 0) and i need to change these once in game: $Edit1 1 ( 0, 0, 661, 503, -1 BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE),"Diablo II") $Form1 1( 645, 485, 193, 125, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE),"Diablo II") How would I go about doing this in the quickest working way? I've been trying to use Dim and ReDim. but its not working out too well, Not really sure how to use them, just been experimenting with it all to kind of help teach myself. Link to comment Share on other sites More sharing options...
picea892 Posted June 25, 2009 Share Posted June 25, 2009 not sure what you were doing with the dims? Anyways For the main GUI WinMove("XBOTv0.1","",645, 485, 193, 125) for controls do this GUICtrlSetPos($Edit1,0, 0, 661, 503) you already have the styles that you want so need to to add more. If you did, you would use GUICtrlSetStyle Link to comment Share on other sites More sharing options...
XxxKills Posted June 25, 2009 Author Share Posted June 25, 2009 Thank you, I had to redo the #'s but that works perfectly. Thank You again. WinMove("XBOTv0.1","",0, 0, 648, 515) GUICtrlSetPos($Edit1,0, 0, 650, 515) 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