Jump to content

Sizeable GUI


thelex
 Share

Recommended Posts

I just wan't it to be sizeable bu the user. (it's a shout box to use while playing games etc. btw.)

I tried using WS_sizebox, and thickframe, but i get an error "variable used without being decleared"

Please help. here it is

_WITH the sizebox style_

#include <GUIConstants.au3>
#include <IE.au3>


$PanTask = _IECreateEmbedded()
GUICreate("MMOwned Shout Bawx", 670, 300, 0, 0, $WS_SIZEBOX)
$PanGUI = GUICtrlCreateObj($PanTask, 0, -210, 670, 500)
;----------------------------------left,top,with,height-----------
GUISetState()
_IENavigate ($PanTask, "http://www.mmowned.com/forums/mgc_chatbox.php?do=view_chatbox", 0)
WinSetOnTop("MMOwned Shout Bawx", "", 1)
WinSetTrans ("MMOwned Shout Bawx", "", 130)
While 1
    $GUI = GUIGetMsg()
    Select
        Case $GUI = $GUI_EVENT_CLOSE
            Exit
    EndSelect
WEnd
Link to comment
Share on other sites

Something like this?

HTH, Reinhard

#include <IE.au3>

$PanTask = _IECreateEmbedded()
GUICreate("MMOwned Shout Bawx", 670, 300, 0, 0, BitOr($WS_SIZEBOX, $WS_MAXIMIZEBOX, $WS_MINIMIZEBOX, $WS_CAPTION, $WS_POPUP, $WS_SYSMENU))
$PanGUI = GUICtrlCreateObj($PanTask, 0, -210, 670, 500)
GUICtrlSetResizing (-1,$GUI_DOCKAUTO)

;----------------------------------left,top,with,height-----------
GUISetState()
_IENavigate ($PanTask, "http://www.mmowned.com/forums/mgc_chatbox.php?do=view_chatbox", 0)
WinSetOnTop("MMOwned Shout Bawx", "", 1)
WinSetTrans ("MMOwned Shout Bawx", "", 0)
While 1
    $GUI = GUIGetMsg()
    Select
        Case $GUI = $GUI_EVENT_CLOSE
            Exit
    EndSelect
WEnd
Link to comment
Share on other sites

Maybe uyou should read the code... and see that

#include <GUIConstants.au3>
is missing :)
*DOH*

Thanks, and one last quickie for another project

What is the command to make a IE window (inside the GUI) refresh?

and maybe refresh each 10 seconds? O.o

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...