Jump to content

Recommended Posts

Posted

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.

Posted (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 by Skitty
Posted

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.

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
×
×
  • Create New...