Andrew Peacock Posted December 31, 2007 Share Posted December 31, 2007 Hi all, I'm using a rich text edit box as defined here: $editRichText = ObjCreate("RICHTEXT.RichtextCtrl.1") I'm trying to get the text to scroll so that the highlighted text is roughly in the middle of the box. Has anyone done this before and can point a way? Regards, Andy Link to comment Share on other sites More sharing options...
kjactive Posted January 3, 2008 Share Posted January 3, 2008 (edited) Hallo Andrew something like this With $ComponetPool .SelStart = 0 DllCall("user32.dll","long","SendMessage","hwnd",.Hwnd,"int",$EM_LINESCROLL,"int",0,"int",$iLines) EndWith This will scroll the component int $ilines from top This post should actually have been listed in ActiveX/Com support... kjactive Edited January 3, 2008 by kjactive Au3PP 4.1 - Autoit3 preprocessor, optimize speed, performance to scripts and do executes....[/url]Au3Calibur - Create libraries of commonly used code excerptsWords manipulate UDF, functions that is lent from the rexx language, topics and index file includedCustomDialog UDF to include custom made dialogs like a extended colorpick requester to scripts...[url="ftp://fritidshjemmet.com/Autoit3/SysColor.zip"]SysColor UDF a low level color library to manipulate RGB and Hex values...Shell32 UDF to Automate Windows® operating tasks from native dialog and Wizards browsers... Optimized the CodeWicard with options to generate browser code etc... Link to comment Share on other sites More sharing options...
Andrew Peacock Posted January 3, 2008 Author Share Posted January 3, 2008 Thanks kjactive, that should help. I must confess, I'd not actually noticed the Activex/COM forum before :-) Regards, Andy Hallo Andrew something like this With $ComponetPool .SelStart = 0 DllCall("user32.dll","long","SendMessage","hwnd",.Hwnd,"int",$EM_LINESCROLL,"int",0,"int",$iLines) EndWith This will scroll the component int $ilines from top This post should actually have been listed in ActiveX/Com support... kjactive 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