开发者

How to align or resize controls on Form?

开发者 https://www.devze.com 2023-03-26 17:26 出处:网络
WixEdit cannot align (to right) controls on form. SharpDevelop doesn\'t save chang开发者_Python百科es in wxs file. How to do it?Set RightAligned attribute of Control element to \'yes\'. It will make t

WixEdit cannot align (to right) controls on form. SharpDevelop doesn't save chang开发者_Python百科es in wxs file. How to do it?


Set RightAligned attribute of Control element to 'yes'. It will make text in the control right-aligned. Not all controls support this attribute.

Sample code:

<Control Type="Text" RightAligned="yes"
         Width="77" Height="17" X="26" Y="126"
         Id="label1" Text="This label has the long text:" />
<Control Type="Text" RightAligned="yes"
         Width="77" Height="17" X="26" Y="150"
         Id="label2" Text="Short:" />

Note: the widths are same. The text in the label control is displayed flush right.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号