For localization, if you don't want the localizers to mess up the bolding,
do this instead:

*.wxl
   ...
   <String Id="MyDlgTitle">Create Virtual Directory</String>
   ...

*.wxs
     ...
   <Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15"
Transparent="yes" NoPrefix="yes" Text="{\WixUI_Font_Title}!(loc.MyDlgTitle)"
/>
     ...

-----Original Message-----
From: James Green [mailto:james.gr...@lalpac.com] 
Sent: Wednesday, June 30, 2010 8:24 AM
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] Bold Titles on Custom Dialogs

Many thanks! 

-----Original Message-----
From: wix-users-boun...@lists.sourceforge.net
[mailto:wix-users-boun...@lists.sourceforge.net] On Behalf Of Yan Sklyarenko
Sent: 30 June 2010 16:09
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Bold Titles on Custom Dialogs

Prefix the text with "{\WixUI_Font_Title}". So, in your text it will be:

   <Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15"
Transparent="yes" NoPrefix="yes" Text="{\WixUI_Font_Title}Create Virtual
Directory" />

But, if you want this to be localized (I guess you do), move the value of
the Text attribute to a *.wxl file, and leave a reference to it from the
Control element, something like this:

*.wxl
   ...
   <String Id="MyDlgTitle">{\WixUI_Font_Title}Create Virtual
Directory</String>
   ...

*.wxs
     ...
   <Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15"
Transparent="yes" NoPrefix="yes" Text="!(loc.MyDlgTitle)" />
     ...

Hope this helps,

-- Yan

-----Original Message-----
From: James Green [mailto:james.gr...@lalpac.com]
Sent: Wednesday, 30 June, 2010 17:53
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Bold Titles on Custom Dialogs

Hi All,
 
I'm just creating my first WiX installer so far all is well.  I've created
one custom dialog for my installer but I cannot seem to set the Title to
bold text to fall in line with the other dialogs.
 
I'm using <UIRef Id="WixUI_InstallDir" /> as the basis for the UI and in my
custom dialog I have the following set:
 
<Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15"
Transparent="yes" NoPrefix="yes" Text="Create Virtual Directory" />
 
However, as opposed to the other dialogs this text isn't bold and I cannot
figure out how to set this.  Any pointers would be great.
 
Kind regards,
 
James Green
.NET Developer
 

LalPac Limited registered in England No: 4211747

Partner in Licensing to over 120 UK local government authorities.

Temple Court, 8 The Causeway, Chippenham, Wiltshire, SN15 3BT, UK.
Tel: +44 (0)1249 660088    Fax: +44 (0)1249 660099 - Technical Support:
+44 (0)1249 462542
Web: www.lalpac.com - Email: i...@lalpac.com

This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed. 
If an addressing or transmission error has misdirected this e-mail, please
notify the author by replying to this e-mail. If you are not the intended
recipient you may not use, disclose, distribute, copy, print or rely on this
e-mail.

Opinions advice, conclusions and other information in this message that do
not relate to the official business of LalPac Ltd shall be understood as
neither given nor endorsed by it or on its behalf, and consequently LalPac
Ltd shall bear no responsibility whatsoever in respect thereof.

This e-mail and any attachments have been checked by anti-virus software and
are believed to be free of viruses but it is your responsibility to carry
out all necessary virus checks and LalPac Ltd accepts no liability in
connection therewith.

The Company actively monitors all incoming and outgoing e-mails to ensure a
satisfactory level of customer service is maintained, to maintain Company
security, and to prevent abuse of the Company systems.

Please do not print this e-mail unless absolutely necessary - SAVE PAPER
------------------------------------------------------------------------
------
This SF.net email is sponsored by Sprint What will you do first with EVO,
the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

----------------------------------------------------------------------------
--
This SF.net email is sponsored by Sprint What will you do first with EVO,
the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

LalPac Limited registered in England No: 4211747

Partner in Licensing to over 120 UK local government authorities.

Temple Court, 8 The Causeway, Chippenham, Wiltshire, SN15 3BT, UK.
Tel: +44 (0)1249 660088    Fax: +44 (0)1249 660099 - Technical Support: +44
(0)1249 462542
Web: www.lalpac.com - Email: i...@lalpac.com

This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed. 
If an addressing or transmission error has misdirected this e-mail, please
notify the author by replying to this e-mail. If you are not the intended 
recipient you may not use, disclose, distribute, copy, print or rely on this
e-mail.

Opinions advice, conclusions and other information in this message that do
not relate to the official business of LalPac Ltd shall be understood as
neither given nor endorsed by it or on its behalf, and consequently LalPac
Ltd shall bear no responsibility whatsoever in respect thereof.

This e-mail and any attachments have been checked by anti-virus software and
are believed to be free of viruses but it is your responsibility to carry
out all necessary virus checks and LalPac Ltd accepts no liability in
connection therewith.

The Company actively monitors all incoming and outgoing e-mails to ensure a
satisfactory level of customer service is maintained, to maintain Company
security, and to prevent abuse of the Company systems.

Please do not print this e-mail unless absolutely necessary - SAVE PAPER


----------------------------------------------------------------------------
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to