Jump to content

GuiCtrlCreateObj no scrollbars


Recommended Posts

Would you care to explain your question in a bit more detail?

Its quite simple i need to be able to use guictrlcreateobj for ie without scrollbars on the right or bottom.

[quote name='PsaltyDS' post='635433' date='Jan 27 2009, 07:04 AM']Larry is a mass murderer?! It's always the quiet, clean cut, bald guys... [/quote]

Link to comment
Share on other sites

Its quite simple i need to be able to use guictrlcreateobj for ie without scrollbars on the right or bottom.

I think they get created if the object space for the control is smaller than the ie page you are loading. So if you make the object space big enough for the page then the scroll bars dissapear

This modified helpfile example starts with a page that fits the object, then if you click bbc.co.uk button you will see that the BBC has a larger page and the scroll bars are activated automatically

#include <GUIConstants.au3>
; Simple example: Embedding an Internet Explorer Object inside an AutoIt GUI
;
; See also: http://msdn.microsoft.com/workshop/browser/webbrowser/reference/objects/internetexplorer.asp

$oIE = ObjCreate("Shell.Explorer.2")

; Create a simple GUI for our output
GUICreate ( "Embedded Web control Test", @DesktopWidth, @DesktopHeight-24, 0 ,0, BitOr($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS, $WS_CLIPCHILDREN))
$GUIActiveX      = GUICtrlCreateObj   ( $oIE,     10, 40 , 900 , 780)
$GUI_Button_Back    = GuiCtrlCreateButton   ("Back",     1044, 40, 100,  30)
$GUI_Button_Forward = GuiCtrlCreateButton   ("Forward", 1044, 140, 100,  30)
$GUI_Button_Home    = GuiCtrlCreateButton   ("BBC.co.uk",   1044, 240, 100,  30)
$GUI_Button_Stop    = GuiCtrlCreateButton   ("Stop",    1044, 340, 100,  30)

GUISetState ()    ;Show GUI

$oIE.navigate("http://www.2inept.co.uk")

; Waiting for user to close the window
    
While 1
    $msg = GUIGetMsg()
    
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case $msg = $GUI_Button_Home
            $oIE.navigate("http://www.bbc.co.uk")
        Case $msg = $GUI_Button_Back
            $oIE.GoBack
        Case $msg = $GUI_Button_Forward
            $oIE.GoForward
        Case $msg = $GUI_Button_Stop
            $oIE.Stop
    EndSelect
    
Wend

GUIDelete ()

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