What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Ask]RichEdit Control and Syntax Color

[Ask]RichEdit Control and Syntax Color
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [Ask]RichEdit Control and Syntax Color
js code:
var EM_SETSEL = 0xb1;

function OnWindowIdEvent_EditTextChanged( pPlusWnd, sControlId ) {
    if ( sControlId === 'MyRichEditControl' ) {
        var hObjWnd = pPlusWnd.GetControlHandle ( sControlId );
        Interop.Call( 'user32', 'SendMessageW', hObjWnd, EM_SETSEL, 0, 10 );
    }
}

This is just an example on how to select text. What are you trying to highlight? Code?
You also need to make sure the control in the XML has the following set:
xml code:
<Attributes><TextMode>Rich Text</TextMode></Attributes>

This post was edited on 08-11-2009 at 12:50 PM by matty.
08-11-2009 12:47 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Ask]RichEdit Control and Syntax Color - by Lén on 08-09-2009 at 04:44 PM
RE: [Ask]RichEdit Control and Syntax Color - by matty on 08-10-2009 at 08:10 PM
RE: [Ask]RichEdit Control and Syntax Color - by Lén on 08-10-2009 at 08:24 PM
RE: [Ask]RichEdit Control and Syntax Color - by matty on 08-10-2009 at 08:27 PM
RE: [Ask]RichEdit Control and Syntax Color - by Lén on 08-10-2009 at 08:33 PM
RE: [Ask]RichEdit Control and Syntax Color - by matty on 08-11-2009 at 12:47 PM
[no subject] - by Lén on 08-11-2009 at 03:20 PM
RE: [Ask]RichEdit Control and Syntax Color - by matty on 08-11-2009 at 04:59 PM
RE: [Ask]RichEdit Control and Syntax Color - by Lén on 08-11-2009 at 05:52 PM
RE: [Ask]RichEdit Control and Syntax Color - by matty on 08-11-2009 at 06:37 PM
RE: [Ask]RichEdit Control and Syntax Color - by Lén on 08-11-2009 at 07:17 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On