Shoutbox

help? (read-only field) - 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: help? (read-only field) (/showthread.php?tid=68940)

help? (read-only field) by roflmao456 on 11-28-2006 at 09:03 PM

hello i need help if this is possible... now im working with interface windows.


how do you undo the text control thingy like say

someone types in the text control in the window then it automatically removes the letter they just typed like:

set text  "hello"  they change it to "hello!" adding the '!' with the hello but it just undoes the '!' so it ends up like normal "hello"

can anyone help :(


RE: help? by matty on 11-28-2006 at 09:43 PM

Not exactly sure what you mean.

Do you mean not allow the text to be changed?


RE: help? by roflmao456 on 11-28-2006 at 09:47 PM

yeah that .. precisely :S


RE: help? by matty on 11-28-2006 at 09:58 PM

Why not set an attribute to readonly?

code:
<Control xsi:type="EditControl" Id="EdtTest">
    <Attributes>
        <ReadOnly>True</ReadOnly>
    </Attributes>
    <DefaultText>Hello</DefaultText>
</Control>

RE: RE: help? by roflmao456 on 11-28-2006 at 10:00 PM

quote:
Originally posted by Matty
Why not set an attribute to readonly?


:P im just starting on interface windows... thanks


1 more thing though... how can i align the text
RE: help? by matty on 11-28-2006 at 10:05 PM

http://mpscripts.net/docs.php#element_align_link02169e70


RE: help? by roflmao456 on 11-28-2006 at 10:27 PM

i do not get it, sorry but can you like paste a code plz :)


RE: help? by matty on 11-28-2006 at 10:33 PM

I am pretty sure this is how its done... I can't test it tho as I am at work.

code:
<Control xsi:type="EditControl" Id="EdtTest">
    <Attributes Align="Right">
        <ReadOnly>True</ReadOnly>
    </Attributes>
    <DefaultText>Hello</DefaultText>
</Control>
or
code:
<Control xsi:type="EditControl" Id="EdtTest">
    <Attributes>
        <Align>Right</Align>
        <ReadOnly>True</ReadOnly>
    </Attributes>
    <DefaultText>Hello</DefaultText>
</Control>

RE: help? by roflmao456 on 11-28-2006 at 10:40 PM

the second one works, thanks :D