draw a vertical line in a custom dialog

0 votes
asked Aug 23, 2010 by lannyboy

there is a way to draw horizontal line < control type="Line"... Width="370" Height="2" />. however it doesn't allow me to draw a vertical line with < control type="Line"... Width="2" Height="100" />. why???

2 Answers

0 votes
answered Aug 23, 2010 by christopher-painter

This is a limitation of the Windows Installer. The Line control can only describe be a horizontal line. The Height attribute is ignored. This is probably also a WiX defect in that the compiler should give an error when trying to provide a Height Attribute when the Type is Line.

Line Control (Windows Installer -MSDN )

0 votes
answered Sep 15, 2017 by lhristov

A workaround is to use bitmap - 1x1 pixel, black. Something like

<Control Id="VerticalLine" Type="Bitmap" X="120" Y="10" Width="1" Height="230" Text="WixUI_Bmp_Black"/>
Welcome to Q&A, where you can ask questions and receive answers from other members of the community.
Website Online Counter