2013-08-14 2 views
0

내 Wix 설치에서 사용자 지정 대화를 만들고 있습니다. 내 코드 : 당신이 코드에서 내 배너를 볼 수 있습니다처럼구성에서 정의 된 것과 다른 높이와 너비

<Binary Id="BannerBitmap" SourceFile="banner.bmp" /> 

    <Dialog Id="InstallDlg" Width="370" Height="270" 
     Title="[ProductName] Setup" NoMinimize="yes"> 
    <Control Id="Install" Type="PushButton" X="304" Y="243" Width="56" 
     Height="17" Default="yes" Text="[ButtonText_Install]"> 
     <Publish Event="EndDialog" Value="Return" /> 
    </Control> 
    <Control Id="Banner" Type="Bitmap" X="0" Y="0" Width="370" Height="44" 
     TabSkip="no" Text="BannerBitmap" /> 
    <Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" 
     Transparent="yes" NoPrefix="yes"> 
     <Text>The [Wizard] is ready to begin the installation</Text> 
    </Control> 
    <Control Id="Text" Type="Text" X="25" Y="70" Width="320" Height="20"> 
     <Text>Click Install to begin the installation.</Text> 
    </Control> 
    <Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" /> 
    <Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes"> 
     <Text>{\DlgTitleFont}Ready to Install</Text> 
    </Control> 
    <Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" /> 
    </Dialog> 

문제는이다 가지고 witdh = 370, 높이 = 44,하지만 내 대화 상자가 표시 될 때 배너는 폭 = 493 높이 = 58으로 표시됩니다

심각한 문제는 아니지만 이미지가 스트레치 모드로 표시되어 매우 왜곡되어 보일 수 있습니다.

왜 이런 일이 발생했는지 또는 어떻게 수정해야하는지 알 수 있습니까?

OBS : 빛에 내 명령 행 :

light.exe -sice:ICE20 SampleCustomUI1.wixobj 

답변

2

Windows Installer가 "Installer Units"하지 픽셀 또는 윈도우 "대화 상자 단위"를 사용합니다. 이렇게하면 대화 요소를 포함 할 수있는 텍스트에 상대적으로 배율을 조정할 수 있습니다. 당신은 당신의 이상적인 크기를 계산할 수 있지만, 필요하다면 비트 맵의 ​​크기가 조정된다는 것을 알 수 있습니다.

+0

확인. 이 경우 "이미지 모드"= 없음 (또는 이와 비슷한 것)을 사용할 수 있습니까? 또는 유일한 모드는 스트레치입니까? –

관련 문제