Reputation: 1109
I'm using the WiX Mondo UI dialogs set for my installer, with a custom background image that has some textures that conflict with the dialogs text in their default positions.
How can I control to (X,Y) position of the static text controls in these dialogs?
For example, I'd like to move around the title and description in the welcome dialog. Based on this post, I tried several variations of the following snippet, with no success:
<Publish Dialog="WelcomeDlg" Control="Title" Property="Y" Value="150" Order="3">1</Publish>
<Publish Dialog="WelcomeDlg" Control="Description" Property="Y" Value="250" Order="3">1</Publish>
EDIT: Adding an example of implementing the correct answer.
So, I can see that the Title control of the WelcomeDlg is at position Y=20 from looking at the source code.
I can change this from 20 to 100 by adding a foo.wxl
localization file to my WiX project that looks like this (full working file):
<?xml version="1.0" encoding="utf-8"?>
<WixLocalization Culture="en-us" xmlns="http://schemas.microsoft.com/wix/2006/localization">
<UI Dialog="WelcomeDlg" Control="Title" Y="100" />
</WixLocalization>
Upvotes: 1
Views: 756
Reputation: 21886
UI
elements, not Publish
elements and they need to go in a .wxl localization file.Upvotes: 2