Jump to content

Need some advice on resizeing gui


Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...