Jump to content
Sign in to follow this  
timgames

How to make Html show inside GuiCtrlCreateEdit(?

Recommended Posts

timgames

Is there anyway to show html pages like it is shown in IE inside a GuiCtrlCreateEdit("")?

or is it only possible by opening a IE browser?

Share this post


Link to post
Share on other sites
Zedna

Look at GUICtrlCreateObj()

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

$oIE = _IECreateEmbedded()
$gui = GUICreate ('HTML in AutoIt', @DesktopWidth - 3, @DesktopHeight - 50,0,0, $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS)
GUISetState (@SW_MAXIMIZE) 
$size = WinGetClientSize($gui)
GUICtrlCreateObj ($oIE, 3, 3, $size[0] - 2 * 3, $size[1] - 2 * 3)
GUISetState (@SW_SHOW) 
_IENavigate($oIE, 'www.autoit3.com', 0) ; don't wait

While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend

Share this post


Link to post
Share on other sites
timgames

thanks Zedna, i never worked with GUICtrlCreateObj, but i like it already <_<

Share this post


Link to post
Share on other sites
Richard Robertson

Yeah, Dale's IE UDFs are very popular.

To answer your question though, no an edit cannot contain anything but straight text.

Share this post


Link to post
Share on other sites
timgames

Is there also a way to make a horizontal scroll bar?

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.