Shoutbox

window from left to right ! - 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: window from left to right ! (/showthread.php?tid=92680)

window from left to right ! by rakan938 on 10-26-2009 at 09:32 AM

How do I make the window from left to right by a file XML .. I tried to do so by code:

code:
<Window Id="WndPreferences" Version="1">
    <Attributes>
        <Align>right</Align>
    </Attributes>
</Window>

And fails.

Is there a way to do that?
RE: window from left to right ! by mynetx on 10-26-2009 at 09:38 AM

Hello rakan938,

There is a flag parameter for MsgPlus.CreateWnd.

Syntax

code:
[object] CreateWnd(
    [string] XmlFile,
    [string] WindowId,
    [number,optional] Options
);

Parameters

XmlFile

[string] Path to the Interface XML file. This is where the entire window is defined. The path is relative to the script's directory by default, to override this behavior, prefix the path with "\". Example: "\C:\directory\windows.xml".

WindowId

[string] Unique identifier of the window to create. A window with the same identifier has to be found in the XML file for the function to succeed.

Options

[number,optional] If specified, this parameter can be one of the following numbers:

WNDOPT_NORMAL (0)
WNDOPT_INVISIBLE (1)
WNDOPT_NOACTIVATE (2)

Display the window normally (default)
Don't show the window after it's been created
Don't activate the window after its creation

The following flags can also be added to specify additional characteristics:

WNDOPT_RTL (128)

Display the window with a right-to-left layout (if supported by the system).
Requires Messenger Plus! 4.10 or above.

RE: window from left to right ! by rakan938 on 10-26-2009 at 09:48 AM

Thank you very much .. The technique worked ..

code:
MsgPlus.CreateWnd("index.xml","WndPreferences",128);

(F)
RE: window from left to right ! by mynetx on 10-26-2009 at 09:51 AM

You’re welcome! :)