StMaSi Posted April 10, 2017 Posted April 10, 2017 Is there any way to embed characters/codes/data/etc. within a text file so that when the script reads the text file to populate the edit box, said characters/codes/data/etc. can let the script know this word needs to be capitalized, that word needs to be underscored, etc.? For example, the text file would contain something along these lines... <bold>This is the title</bold> This is a <italic>sample</italic> text file. This is <underscore>only</underscore> a text file. Does that make sense? Thanx.
Skitty Posted April 10, 2017 Posted April 10, 2017 (edited) try using a rich edit control autoit comes with a UDF called guirichedit.au3 that you can use, then just create your styled text in wordpad or something and load it with ... $sText = FileRead(".\readme.rtf") _GUICtrlRichEdit_SetText($hRichEdit, $sText) ... Edited April 10, 2017 by Skitty
StMaSi Posted April 10, 2017 Author Posted April 10, 2017 That looks interesting, but can't figure out how to embed the font-formatting codes within the text file so that the text is automatically formatted when read into the form. Thanx.
StMaSi Posted April 10, 2017 Author Posted April 10, 2017 Sweet! That works. Now, is there any way to hide or disable the blinking cursor within the richedit control? Thanx again.
Skitty Posted April 13, 2017 Posted April 13, 2017 huh idunno I don't think i experienced that when i used it lol
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