I defined control width constants in a .wxi file as such: <?xml version="1.0" encoding="utf-8"?> <Include> <?define TinyControlWidth = "36" ?> <?define SmallControlWidth = "70" ?> <?define MediumControlWidth = "110" ?> <?define LargeControlWidth = "180" ?> </Include>
I then included it in a .wxs file containing a dialog. I used one of the above constants for the width of a control on that dialog like this: <Control Id="MyControl" Type="ComboBox" X="160" Y="56" Width="$(var.TinyControlWidth)" Height="16" ... /> It builds successfully. But, Visual Studio 2012 gives this warning: Warning 1 The 'Width' attribute is invalid - The value '$(var.TinyControlWidth)' is invalid according to its datatype 'http://schemas.microsoft.com/wix/2006/wi:LocalizableInteger' - The Pattern constraint failed. Is there a way to suppress this warning or a different/better way to use constants for control width, height, x, and y? Josh Davis ------------------------------------------------------------------------------ HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing & Easy Data Exploration http://p.sf.net/sfu/hpccsystems _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users