Sign in to follow this  
Followers 0
Lemures

Can embedded IEs use unicode?

5 posts in this topic

I have an object created with "$ActiveX = GUICtrlCreateObj($oIE, -2, -2, $Popup_Width+5, $Popup_Height+5)".

It wont display a check mark unicode character.

Is this possible to do, and if so, what am I missing?

Share this post


Link to post
Share on other sites



Is this what you are looking for?

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

$sHTML = "&radic;"

$oIE = _IECreateEmbedded()
GUICreate("Embedded Test")
$GUIActiveX = GUICtrlCreateObj($oIE, 10, 10, 380, 380)
GUISetState()

_IENavigate($oIE, "about:blank")
_IEDocWriteHTML($oIE, $sHTML)

While 1
    $msg = GUIGetMsg()
    Switch $msg
        Case $GUI_EVENT_CLOSE
            ExitLoop
    EndSwitch
WEnd

Share this post


Link to post
Share on other sites

I think I didn't understand what I was saying when I posted.

I'm already using a radical sign, but I was hoping to use something like these: http://hsivonen.iki.fi/test/check-mark.html

However, the radical sign works ok for now. I'll just stick with that. Thanks!

Share this post


Link to post
Share on other sites

So something more like this...

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

$sHTML = ""
$sHTML &= "<HEAD>" & @CR
$sHTML &= "<style type='text/css'>" & @CR
$sHTML &= ".unicode {" & @CR
$sHTML &= " font-family: 'Arial Unicode MS';" & @CR
$sHTML &= "}" & @CR
$sHTML &= "</style>" & @CR
$sHTML &= "</HEAD>" & @CR
$sHTML &= "<BODY>" & @CR
$sHTML &= "<span class='unicode'>✓</span>" & @CR
$sHTML &= "</BODY>" & @CR
$sHTML &= "</HTML>"

$oIE = _IECreateEmbedded()
GUICreate("Embedded Test")
$GUIActiveX = GUICtrlCreateObj($oIE, 10, 10, 380, 380)
GUISetState()

_IENavigate($oIE, "about:blank")
_IEDocWriteHTML($oIE, $sHTML)

While 1
    $msg = GUIGetMsg()
    Switch $msg
        Case $GUI_EVENT_CLOSE
            ExitLoop
    EndSwitch
WEnd

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