TheOnlyOne Posted May 9, 2010 Share Posted May 9, 2010 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? Link to comment Share on other sites More sharing options...
darkjohn20 Posted May 9, 2010 Share Posted May 9, 2010 http://answers.yahoo.com/question/index?qid=20080605214323AAaaBCg Link to comment Share on other sites More sharing options...
TheOnlyOne Posted May 10, 2010 Author Share Posted May 10, 2010 (edited) see i allready knew that but actully im asking how to create two fonts in one edit? Edited May 10, 2010 by TheOnlyOne Link to comment Share on other sites More sharing options...
darkjohn20 Posted May 10, 2010 Share Posted May 10, 2010 Ah. Perhaps use a RichEdit control? That way you can also color specific text and not the whole thing. Link to comment Share on other sites More sharing options...
TheOnlyOne Posted May 12, 2010 Author Share Posted May 12, 2010 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? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now