Jump to content



Photo

Resize Window Help


  • Please log in to reply
5 replies to this topic

#1 tylerh27

tylerh27

    Seeker

  • Active Members
  • 29 posts

Posted 05 August 2012 - 07:15 PM

I want to be able to re size the window by dragging the corners, and it automatically gets larger or smaller from dragging the corner. can someone help me? iv looked everywhere and cant find this.







#2 funkey

funkey

    New Dad

  • Active Members
  • PipPipPipPipPipPip
  • 484 posts

Posted 05 August 2012 - 07:18 PM

You need the style $WS_SIZEBOX

Programming today is a race between software engineers striving to

build bigger and better idiot-proof programs, and the Universe

trying to produce bigger and better idiots.

So far, the Universe is winning.


#3 tylerh27

tylerh27

    Seeker

  • Active Members
  • 29 posts

Posted 05 August 2012 - 07:23 PM

also, i cant seem to be able to click the maximize button, why is this?

oh well, now those buttons are gone, only the exit button is there >.>

Edited by tylerh27, 05 August 2012 - 07:33 PM.


#4 Zedna

Zedna

    AutoIt rulez!

  • MVPs
  • 8,315 posts

Posted 05 August 2012 - 08:04 PM

#include <GUIConstantsEx.au3> #include <WindowsConstants.au3> GUICreate("My GUI", 300, 200, Default, Default, BitOr($GUI_SS_DEFAULT_GUI,$WS_MAXIMIZEBOX,$WS_SIZEBOX )) GUISetState(@SW_SHOW) While 1     $msg = GUIGetMsg()     If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd

  • ncc1701 likes this

#5 tylerh27

tylerh27

    Seeker

  • Active Members
  • 29 posts

Posted 05 August 2012 - 09:33 PM

that worked! thanks a lot!

#6 ncc1701

ncc1701

    Seeker

  • Active Members
  • 6 posts

Posted 17 February 2013 - 12:57 PM

I am trying to do the same thing only imbed the IE browser window. Is there a way to make that automatically resize when the main window resizes?

Here is a snippet of my code:

GUICreate("Test",900,600,Default, Default, BitOr($GUI_SS_DEFAULT_GUI,$WS_MAXIMIZEBOX,$WS_SIZEBOX ))
GUISetState()
$oIE = _IECreateEmbedded ()
$GUIActiveX = GUICtrlCreateObj($oIE, 270, 6, 620, 540)
_IENavigate ($oIE, $site,0 )

Edited by ncc1701, 17 February 2013 - 12:58 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users