Sign in to follow this  
Followers 0
thelex

Sizeable GUI

7 posts in this topic

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

still "variable used without being decleared" =/

Share this post


Link to post
Share on other sites

Oh,

should read until the end.

However for me it works in all versions(>3...10<).

Would try to reinstall and install new.

br, Reinhard

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

still "variable used without being decleared" =/

Maybe uyou should read the code... and see that
#include <GUIConstants.au3>
is missing :) Edited by Kilhian

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

*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

Autoit help file would want to be closer from you :)

Share this post


Link to post
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
Sign in to follow this  
Followers 0