lannyboy
lannyboy

Reputation: 459

draw a vertical line in a custom dialog

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???

Upvotes: 1

Views: 744

Answers (2)

LHristov
LHristov

Reputation: 1123

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"/>

Upvotes: 0

Christopher Painter
Christopher Painter

Reputation: 55581

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 )

Upvotes: 3

Related Questions