Shoutbox

Format Codes and Interface Windows - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Format Codes and Interface Windows (/showthread.php?tid=92465)

Format Codes and Interface Windows by trevorpe on 10-04-2009 at 12:06 PM

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.


RE: Format Codes and Interface Windows by NanaFreak on 10-04-2009 at 12:18 PM

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


RE: Format Codes and Interface Windows by trevorpe on 10-04-2009 at 03:16 PM

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.
RE: Format Codes and Interface Windows by Matti on 10-04-2009 at 03:28 PM

  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).

RE: Format Codes and Interface Windows by trevorpe on 10-04-2009 at 04:50 PM

Okay thanks!


RE: Format Codes and Interface Windows by matty on 10-05-2009 at 01:03 PM

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>


RE: Format Codes and Interface Windows by Spunky on 10-05-2009 at 01:37 PM

Matti was referring to the RichEditControl, not RichStaticControl