Jump to content
Sign in to follow this  
TheOnlyOne

square root sign in edit

Recommended Posts

okay

i am trying to create some math calculations and show me the results

the only thing i really need is how to create the square root in a edit.

i know i could edit the font to symbol or something and then choose Ô but i only want 1 letter to be this font ? so can i do so its only the square root sign there is that font and the other letters will be a other font?

also how do you create the ^2 sign?

Share this post


Link to post
Share on other sites

ah thank you

i tryed this now but dosent seem to work

$len1=Sqrt(($x1^2)+($y1^2))
    $len2=Sqrt(($x2^2)+($y2^2))
    $answer=(($x1*$x2)+($y1*$y2))/($len1*$len2)
    _GUICtrlRichEdit_SetText ($edit1,"COS V"&@crlf&@crlf&" | a | = "&chr(251)&" x1² + y1²  "&@crlf&" = "&chr(251)&round($x1,2)&"²"&" + "&round($y1,2)&"² = "&round($len1,2)&@crlf&"| b | = "&chr(251)&"x2² + y2² "&@crlf&" = "&chr(251)&round($x2,2)&"² + "&round($y2,2)&"² = "&round($len2,2)&@crlf&" ( x1 * x2 + y1 * y2 ) / ( | a | * | b | )"&@crlf&"( "&round($x1,2)&" * "&round($x2,2)&" + "&round($y1,2)&" * "&round($y2,2)&" ) / ( "&round($len1,2)&" * "&round($len2,2)&" = "&round($answer,2)&")")
$tekst=_GUICtrlRichEdit_FindText ($edit1,chr(251))
_GUICtrlRichEdit_SetFont($edit1,$tekst,"symbol")

any help here?

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...