开发者

How to align or resize controls on Form?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜