Wix bootstrapper multiple hyperlink text - windows

My idea is to make multiple license terms link's with different name One of them should be "license terms" next "diagnostics". But then I try to change name I faced this issue:
Here is my code for this RtfTheme.XML:
<Page Name="Install">
<Hypertext Name="EulaHyperlink" X="94" Y="-100" Width="-11" Height="17" TabStop="yes" FontId="3" HideWhenDisabled="yes">#(loc.InstallLicenseLinkText)</Hypertext>
<Checkbox Name="EulaAcceptCheckbox" Height="30" Width="300" X="120" Y="-67" FontId="3">#(loc.InstallLicenseLinkCheckBox)</Checkbox>
<Button Name="InstallButton" X="160" Y="-30" Width="75" Height="23" TabStop="yes" FontId="0">#(loc.InstallInstallButton)</Button>
<Button Name="InstallCancelButton" X="240" Y="-30" Width="75" Height="23" TabStop="yes" FontId="0">
<Text>Cancel</Text>
<CloseWindowAction />
</Button>
</Page>
Bundle.wxs:
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.HyperlinkLicense" >
<bal:WixStandardBootstrapperApplication
LogoFile="Resources/banner.png" LogoSideFile="Resources/r2.png"
ThemeFile="Resources/RtfTheme.xml"
LocalizationFile="Resources/RtfTheme.wxl"
LicenseUrl="http://opensource.org/licenses/ms-rl" />
<Payload SourceFile="Resources/r2.png"/>
</BootstrapperApplicationRef>
RtfTheme.WXL
<String Id="InstallLicenseLinkText">By installing you accept these <a href="#">license terms</a></String>
<String Id="InstallLicenseLinkCheckBox">Also include <a href="#">diagnostics</a></String>
Maybe whom have same issue and know how can I fix this? Please suggest.

Make your check box the size of the box itself with no text. Add a second <Hypertext> that is positioned right beside the check box.

Related

Nativescript Vue: Why does position of code matter in a Dock Layout matter?

Why does this following code produce this result: https://imgur.com/a/lQhLs8o ?
However, if I move the BottomNavigatorBar component to top position before CountryListComponent, it produces the desired result that looks like this: https://imgur.com/a/23z7bb2 ?
<template>
<Page actionBarHidden="true">
<DockLayout height="100%">
// first
<CountryListComponent dock="top">
// second
<BottomNavigationBar dock="bottom" activeColor="pink"
inactiveColor="yellow"
backgroundColor="black"
verticalAlignment="bottom"
#tabSelected="this.changeTab"
row="1">
<BottomNavigationTab title="Fiaarst" icon="icon-29.png" />
<BottomNavigationTab title="Second" icon="icon-29.png" />
<BottomNavigationTab title="Third" icon="icon-29.png" />
</BottomNavigationBar>
</DockLayout>
</Page>
</template>
CountryListComponent
<template>
<StackLayout backgroundColor="blue">
</StackLayout>
</template>
Refer the DockLayout documentation, by default stretchLastChild will be true which means BottomNavigationBar will take entire space if it's last child and vice versa.

how can i create multiline editable textview in nativescript?

i try beloved code but dos't work in android can't get new line
<TextView style="margin-top: 15px" borderColor="#DEDEDE" borderWidth="1"
height="100px" hint="Enter Note" returnKeyType="send" class="input input-border"></TextView>
<Button text="ADD" (tap)="insertNote()"></Button>
Use height attribute without 'px' unit like this :
<TextView style="margin-top: 15px" borderColor="#DEDEDE" borderWidth="1" height="100" hint="Enter Note" returnKeyType="send" class="input input-border"/>
Or give greater value for height in pixel : 200px

How to set a number of error with xul like firebug does

As the question explains itself i've a button like firebug and i wanted to set there a number when some events happens like firebug doeas when it detects errors on the page.
Does anyone know how to set it?
This is the code of the top button that displays a panel, so i want to set there a number when certains events happens..
<panel id="asv-panel">
<hbox align="start">
<vbox>
<hbox align="center" style="background-color:#ffffff">
<image id="asvbutton-panel-icon" width="200px" height="50px" style="margin-left:10px"/>
</hbox>
<hbox style="background-color:#fff" id="menuPanelContainer">
<html:div style="margin-top:20px;margin-left:20px;width:150px" id="menuLogginInicial">
<description value="&asbutton.Signin;"/>
<html:hr/>
<image id="asvbutton-logoface" width="50px" height="50px" style="cursor:pointer" onclick="asvbutton.login();"/>
<image id="asvbutton-logogoogle" width="47px" height="45px" style="align:left;cursor:pointer"/>
<image id="asvbutton-logotwitter" width="50px" height="50px" style="align:left;cursor:pointer"/>
</html:div>
</hbox>
</vbox>
</hbox>
</panel>
</toolbarbutton>
After thousands of pages and samples... the easiest way was creating a div and doing an appendChild to it (old school method) :D
Hope this helps someone.

Not able to get DataMemberBinding in the telerik Datagridview

Hello I am using Telerik Rad Controls for the DataGrid view...
I want to display only some required columns in the DataGrid.. so I used this code
<telerik:RadGridView.Columns>
<telerik:GridViewColumn Header="Market Code" />
<telerik:GridViewColumn Header="Market Name" />
</telerik:RadGridView.Columns>
But I was not able to set the binding.. I was not able to set the DataMemberBinding to the column...
It says the property was not found in the GridViewColumn....
<riaControls:DomainDataSource AutoLoad="True"
Height="0"
LoadedData="mKT_MSTRDomainDataSource_LoadedData_1"
x:Name="mKT_MSTRDomainDataSource"
QueryName="GetMKT_MSTRQuery" Width="0" >
<riaControls:DomainDataSource.DomainContext>
<my:GNDataDomainContext />
</riaControls:DomainDataSource.DomainContext>
</riaControls:DomainDataSource>
<telerik:RadGridView Grid.Column="1" AutoGenerateColumns="False"
ItemsSource="{Binding Data,
ElementName=mKT_MSTRDomainDataSource}"
x:Name="mKT_MSTRRadGridView" Width="Auto"
Canvas.Left="290" Height="300" >
<telerik:RadGridView.Columns>
<telerik:GridViewColumn Header="Market Code" DataMemberBinding="" />
<telerik:GridViewColumn Header="Market Name" />
</telerik:RadGridView.Columns>
</telerik:RadGridView>
Can anyone help me where am I making mistake... please
You need to choose an appropriate type of column for binding, e.g. GridViewDataColumn, etc. depending on your data type. You can see the list of pre-defined column types here.
You then need to bind the columns to the data you want to display, with the DataMemberBinding attribute:
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn Header="Market Code" DataMemberBinding="{Binding MarketCode}" />
<telerik:GridViewDataColumn Header="Market Name" DataMemberBinding="{Binding MarketName}"/>
</telerik:RadGridView.Columns>
where MarketCode and MarketName are properties on your data records

How do I create a conditional property in WiX? (Almost like an If-Then)

I have a WiX project that installs a few EXE files. One is the 'Main' executable and the others are supporting programs to help diagnose problems.
The main executable is optional, and the support programs will run on their own. Often, the end user will install a third-party program instead of my main executable.
At the end of the WiX installer, I want to have a 'launch program' checkbox that will run the program as soon as the installer closes.
I can hide the checkbox based on the INSTALLLEVEL property, but that only changes depending on if the user selected a 'Typical' or 'Complete' install. I would like to hide it based on if the main executable feature is installed or not.
Something like this would be ideal:
<Feature Id='MainProgram' Title='MainExe'
Description='This application stores and displays information from our hardware.'
ConfigurableDirectory='INSTALLDIR' Level='4'
AllowAdvertise='no'>
<ComponentRef Id='MainExecutable' />
<ComponentRef Id='SQLLibrary' />
<ComponentRef Id='ProgramIcon' />
<ComponentRef Id='RemovePluginsFolder'/>
<Property Id='ShowFinalCheckbox'>1</Property> #<--This won't work, but I'd like it to.
</Feature>
The SetProperty element can be used to change the value of a Property before or after an action. To set a value based on the install state of an executable I would use a combination of Component states documented in the Conditional Statement Syntax in MSI SDK. You'll have to play around with this example, but I think this will get you close.
<SetProperty Id="ShowFinalCheckBox" Value="1" After="CostFinalize">?MainExecutableComponent>2 OR $MainExecutableComponent>2</SetProperty>
All of the magic in there is explained in the link to the MSI SDK above.
For WiX 2 you can use &Feature to find out if that feature is installed or not:
<Dialog Id="ExitDlg" Width="370" Height="270" Title="[ProductName] [Setup]" NoMinimize="yes">
<Control Id="Finish" Type="PushButton" X="236" Y="243" Width="56" Height="17"
Default="yes" Cancel="yes" Text="Finish">
<Publish Event="EndDialog" Value="Return">1</Publish>
<Publish Event="DoAction" Value="LaunchFile">(NOT Installed) AND (LAUNCHPRODUCT = 1) AND (&MainExecutable = 3)</Publish>
</Control>
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Disabled="yes" Text="Cancel" />
<Control Id="Bitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="234" TabSkip="no" Text="[DialogBitmap]" />
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Disabled="yes" Text="Back" />
<Control Id="Description" Type="Text" X="135" Y="70" Width="220" Height="20" Transparent="yes" NoPrefix="yes">
<Text>Click the Finish button to exit the Wizard.</Text>
</Control>
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
<Control Id="Title" Type="Text" X="135" Y="20" Width="220" Height="60" Transparent="yes" NoPrefix="yes">
<Text>{\VerdanaBold13}Completing the [ProductName] Wizard</Text>
</Control>
<Control Id="Launch" Type="CheckBox" X="135" Y="120" Width="150" Height="17"
Property="LAUNCHPRODUCT" CheckBoxValue="1">
<Text>Launch [ProductName]</Text>
<Condition Action="hide">
NOT (&MainProgramFeature = 3)
</Condition>
</Control>
</Dialog>
This way, you can hide the dialog and use the same condition to not launch the program (regardless of the initial state of the check box).
It has been well documented in the manual, How To: Run the Installed Application After Setup.

Resources