Hellfire Posted January 14, 2006 Share Posted January 14, 2006 Is it possible to have a rich edit instead of just a normal edit control? I need to beable to change colors of specific words in an edit box. Thanks. Link to comment Share on other sites More sharing options...
BigDod Posted January 14, 2006 Share Posted January 14, 2006 Is it possible to have a rich edit instead of just a normal edit control?I need to beable to change colors of specific words in an edit box.Thanks.Have a look at this Topic Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
Hellfire Posted January 14, 2006 Author Share Posted January 14, 2006 (edited) Hmm. That would be good but only 350 lines can be on the rtf edit...or it has a character limit since it cuts off the words on my last line in it. Is there anyway to increase that? Edited January 14, 2006 by Hellfire Link to comment Share on other sites More sharing options...
Gene Posted January 14, 2006 Share Posted January 14, 2006 Hmm.That would be good but only 350 lines can be on the rtf edit...or it has a character limit since it cuts off the words on my last line in it.Is there anyway to increase that? Direct a polite PM to LazyCat describing what you are trying to do, and what you need. Maybe he can extend the length without too much trouble.Gene [font="Verdana"]Thanks for the response.Gene[/font]Yes, I know the punctuation is not right... Link to comment Share on other sites More sharing options...
Hellfire Posted January 14, 2006 Author Share Posted January 14, 2006 Direct a polite PM to LazyCat describing what you are trying to do, and what you need. Maybe he can extend the length without too much trouble.Alright. Also does anyone know how to disable the RTF Edit? This doesn't work with it. GUICtrlSetState ( $edit1, $GUI_DISABLE ) Link to comment Share on other sites More sharing options...
Sokko Posted January 14, 2006 Share Posted January 14, 2006 Create it with the $WS_DISABLED style. Sadly, this turns the entire background gray and there's apparently no way to fix it (the usual commands for color-setting don't work). I don't know about the line limit problem, my rich edits have gone into the hundreds of lines without ever stopping, but I've never actually counted them. Link to comment Share on other sites More sharing options...
Hellfire Posted January 14, 2006 Author Share Posted January 14, 2006 Hm, doesn't $WS_DISABLED also make it so you can't scroll? That would be a big problem if it does. Well I have 1 more question I thought of. Is it possible to remove contents of the RTF Edit. Say, remove the very first line of the rtf edit. Link to comment Share on other sites More sharing options...
Hellfire Posted January 15, 2006 Author Share Posted January 15, 2006 bump Link to comment Share on other sites More sharing options...
Stumpii Posted January 15, 2006 Share Posted January 15, 2006 Have you looked at this example of using the RTF control. Will give you full control of the RTF:http://www.autoitscript.com/forum/index.ph...topic=13161&hl= Give a man a script; you have helped him for today. Teach a man to script; and you will not have to hear him whine for help.AutoIt4UE - Custom AutoIt toolbar and wordfile for UltraEdit/UEStudio users.AutoIt Graphical Debugger - A graphical debugger for AutoIt.SimMetrics COM Wrapper - Calculate string similarity. Link to comment Share on other sites More sharing options...
Hellfire Posted January 15, 2006 Author Share Posted January 15, 2006 That doesn't look like the same one I am using. I'm using LazyCats RTF plugin. Link to comment Share on other sites More sharing options...
Stumpii Posted January 15, 2006 Share Posted January 15, 2006 That doesn't look like the same one I am using.I'm using LazyCats RTF plugin.I think that LazyCats is a wrapper around the same control, but does not give you access to all the methods and properties. Give a man a script; you have helped him for today. Teach a man to script; and you will not have to hear him whine for help.AutoIt4UE - Custom AutoIt toolbar and wordfile for UltraEdit/UEStudio users.AutoIt Graphical Debugger - A graphical debugger for AutoIt.SimMetrics COM Wrapper - Calculate string similarity. Link to comment Share on other sites More sharing options...
Gene Posted January 16, 2006 Share Posted January 16, 2006 (edited) That doesn't look like the same one I am using.I'm using LazyCats RTF plugin. You might want to read my post at Kjactive's RTF example for an additional suggestion.Gene Edited January 16, 2006 by Gene [font="Verdana"]Thanks for the response.Gene[/font]Yes, I know the punctuation is not right... Link to comment Share on other sites More sharing options...
tonedeaf Posted January 17, 2006 Share Posted January 17, 2006 Make sure you've the latest beta version of AutoItDownload: http://www.autoitscript.com/autoit3/files/beta/autoit/Download Microsoft's RichText Edit control from here:http://www.ascentive.com/support/new/suppo...me=RICHTX32.OCXRegister the control: Windows NT or 2000:regsvr32 \WINNT\system32\RICHTX32.OCXWindows XP:regsvr32 \windows\system32\RICHTX32.OCXUser kjactive's rich text example as the starting point:http://www.autoitscript.com/forum/index.php?showtopic=13161Refer the MSDN for furthur properties/methords of RichText control:http://msdn.microsoft.com/library/default....boxctltasks.aspThis is by far the best way I've found for a working Rich Text box in AutoIt. 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