Shoutbox

[Window XML] Some elements unexplained. - 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 XML] Some elements unexplained. (/showthread.php?tid=84537)

[Window XML] Some elements unexplained. by mynetx on 06-27-2008 at 10:26 AM

Today I had a browse through the Scripting Docs and found some elements whose meaning is somewhat unclear to me. Maybe (probably) anybody knows what they do or how they react.

  • ButtonControl/Attributes/DwmAnimations
    The only explanation is "Specifies if transition animations are allowed for this control in Windows Vista and above."

  • ComboBoxControl/Attributes/OwnerDraw
    Allowed options are None, Fixed or Variable.

  • Control/Position/Origins
    Description is "Allows to specify a size that's relative to the opposite border of the window."

  • Window/@TranslationSection
    How to use this property in scripts?

  • AllowRTL for ComboBoxControls
    For RichEditControls, there is the XML node RichEditControl/Attributes/AllowRTL to display a control in LTR mode even in an RTL window. How can this be done for ComboBoxControls?

RE: [Window XML] Some elements unexplained. by markee on 06-30-2008 at 12:15 PM

quote:
Originally posted by mynetx
ButtonControl/Attributes/DwmAnimations
The only explanation is "Specifies if transition animations are allowed for this control in Windows Vista and above."
This is the animation that vista puts on windows as you open/close/minimise/maximise/etc
RE: [Window XML] Some elements unexplained. by Eljay on 06-30-2008 at 01:09 PM

quote:
Originally posted by markee
quote:
Originally posted by mynetx
ButtonControl/Attributes/DwmAnimations
The only explanation is "Specifies if transition animations are allowed for this control in Windows Vista and above."
This is the animation that vista puts on windows as you open/close/minimise/maximise/etc

Why on earth would it be under ButtonControl then? :P

It controls fade in/out animations for when you hover over the button and also fading when you press it. Easy to see the difference if you make a small window with 2 buttons, 1 allowed and 1 disallowed.

quote:
Originally posted by mynetx
Window/@TranslationSection
How to use this property in scripts?
I think it's for internal use only.

quote:
Originally posted by mynetx
Control/Position/Origins
Description is "Allows to specify a size that's relative to the opposite border of the window."
That description is pretty terrible actually :P but here's what it does:
code:
<Control xsi:type="ButtonControl" Id="TestButton">
  <Position Top="20" Left="10" Height="20" Width="100">
    <Origins Width="Reverse"/>
  </Position>
  <Caption>Test Button</Caption>
</Control>

[Image: attachment.php?pid=915458]

The space with the red arrows is what is specified in Position/@Width, the width between the right edge of the button and the edge of the window's client area.