What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Format Codes and Interface Windows

Format Codes and Interface Windows
Author: Message:
trevorpe
New Member
*


Posts: 12
28 / Male / Flag
Joined: Dec 2008
O.P. Format Codes and Interface Windows
Hi there,

I was wondering a few things.

1) Is there a table (list view, combo box, etc.), that can show the format codes as they should be? Like if the text was supposed to underlined, it really shows an underline?

2) What is the difference between a rich edit and an edit control (same goes for rich static and static).

Thanks.

This post was edited on 10-04-2009 at 12:07 PM by trevorpe.
10-04-2009 12:06 PM
Profile PM Find Quote Report
NanaFreak
Scripting Contest Winner
*****


Posts: 1476
Reputation: 53
32 / Male / Flag
Joined: Jul 2006
RE: Format Codes and Interface Windows
2. a Rich control supports the plus format codes (both IRC and BBCode) whereas the normal ones do not and will display them as just text
10-04-2009 12:18 PM
Profile PM Find Quote Report
trevorpe
New Member
*


Posts: 12
28 / Male / Flag
Joined: Dec 2008
O.P. RE: Format Codes and Interface Windows
Hi again,

I was wondering how you do that.

I tried :

code:
<Attributes><TextMode>Rich Text</TextMode></Attributes>

but it doesn't show as underlined, or italic, etc.
10-04-2009 03:16 PM
Profile PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
31 / Male / Flag
Joined: Apr 2004
RE: Format Codes and Interface Windows
  1. Unfortunately, there is no such control. Perhaps you could style the items or subitems in a ListViewControl using some sort of Win32 API message, but there's no native way to do this in Plus! itself.
  2. Actually, the Rich Edit Control doesn't support those tags. However, it does allow you to use PlusWnd::RichEdit_SetCharFormat to set the style of the current selection. This allows you to create a WYSIWYG editor with format buttons (although I have no idea how you would read the format out of the control afterwards).
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
10-04-2009 03:28 PM
Profile E-Mail PM Web Find Quote Report
trevorpe
New Member
*


Posts: 12
28 / Male / Flag
Joined: Dec 2008
O.P. RE: Format Codes and Interface Windows
Okay thanks!
10-04-2009 04:50 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Format Codes and Interface Windows
quote:
Originally posted by Matti
2. Actually, the Rich Edit Control doesn't support those tags. However, it does allow you to use PlusWnd::RichEdit_SetCharFormat to set the style of the current selection. This allows you to create a WYSIWYG editor with format buttons (although I have no idea how you would read the format out of the control afterwards).
XML code:
        <Control Id="lblWinner" xsi:type="RichStaticControl">
            <Position Top="182" Left="8" Width="185"/>
            <Attributes><Align>Center</Align></Attributes>
            <Caption>[c=#666666]Messenger Plus! [b][c=#FF9900]Live[/c][/b] Script Contest Winner[/c]</Caption>
        </Control>

10-05-2009 01:03 PM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
RE: Format Codes and Interface Windows
Matti was referring to the RichEditControl, not RichStaticControl
<Eljay> "Problems encountered: shit blew up" :zippy:
10-05-2009 01:37 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


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