|
From: <RGo...@Ac...> - 2005-07-20 10:21:27
|
Hello, =20 I'm new on this so i will try to explain my problem : =20 =20 I'm trying to create my own customize dialog, but my Browse button = always stay disabled, and how do i make to put the INSTALLDIR on the = text of the Loacation ? =20 Here's an example that i took from a wix setup. =20 Thanks,=20 =20 Ricardo <Dialog Id=3D"CustomizeDlg" Width=3D"370" Height=3D"270" = Title=3D"[ProductName] [Setup]" NoMinimize=3D"yes" = TrackDiskSpace=3D"yes"> <Control Id=3D"Tree" Type=3D"SelectionTree" X=3D"25" Y=3D"85" = Width=3D"175" Height=3D"95" Property=3D"_BrowseProperty" Sunken=3D"yes" = TabSkip=3D"no" Text=3D"Tree of selections" /> <Control Id=3D"Browse" Type=3D"PushButton" X=3D"304" Y=3D"200" = Width=3D"56" Height=3D"17" Text=3D"[ButtonText_Browse]"> <Publish Event=3D"SelectionBrowse" Value=3D"BrowseDlg">1</Publish> <Condition Action=3D"hide">Installed</Condition> </Control> <Control Id=3D"Reset" Type=3D"PushButton" X=3D"42" Y=3D"243" = Width=3D"56" Height=3D"17" Text=3D"[ButtonText_Reset]"> <Publish Event=3D"Reset" Value=3D"0">1</Publish> <Subscribe Event=3D"SelectionNoItems" Attribute=3D"Enabled" /> </Control> <Control Id=3D"DiskCost" Type=3D"PushButton" X=3D"111" Y=3D"243" = Width=3D"56" Height=3D"17"> <Text>Disk &Usage</Text> <Publish Event=3D"SpawnDialog" Value=3D"DiskCostDlg">1</Publish> <Subscribe Event=3D"SelectionNoItems" Attribute=3D"Enabled" /> </Control> <Control Id=3D"Back" Type=3D"PushButton" X=3D"180" Y=3D"243" = Width=3D"56" Height=3D"17" Text=3D"[ButtonText_Back]"> <Publish Event=3D"NewDialog" = Value=3D"MaintenanceTypeDlg"><![CDATA[InstallMode =3D = "Change"]]></Publish> <Publish Event=3D"NewDialog" Value=3D"SetupTypeDlg"><![CDATA[InstallMode = =3D "Custom"]]></Publish> </Control> <Control Id=3D"Next" Type=3D"PushButton" X=3D"236" Y=3D"243" = Width=3D"56" Height=3D"17" Default=3D"yes" Text=3D"[ButtonText_Next]"> <Publish Event=3D"NewDialog" Value=3D"VerifyReadyDlg">1</Publish> <Subscribe Event=3D"SelectionNoItems" Attribute=3D"Enabled" /> </Control> <Control Id=3D"Cancel" Type=3D"PushButton" X=3D"304" Y=3D"243" = Width=3D"56" Height=3D"17" Cancel=3D"yes" Text=3D"[ButtonText_Cancel]"> <Publish Event=3D"SpawnDialog" Value=3D"CancelDlg">1</Publish> </Control> <Control Id=3D"BannerBitmap" Type=3D"Bitmap" X=3D"0" Y=3D"0" = Width=3D"370" Height=3D"44" TabSkip=3D"no" Text=3D"[BannerBitmap]" /> <Control Id=3D"Description" Type=3D"Text" X=3D"25" Y=3D"23" = Width=3D"280" Height=3D"15" Transparent=3D"yes" NoPrefix=3D"yes"> <Text>Select the way you want features to be installed.</Text> </Control> <Control Id=3D"Text" Type=3D"Text" X=3D"25" Y=3D"55" Width=3D"320" = Height=3D"20"> <Text>Click on the icons in the tree below to change the way features = will be installed.</Text> </Control> <Control Id=3D"BottomLine" Type=3D"Line" X=3D"0" Y=3D"234" Width=3D"370" = Height=3D"0" /> <Control Id=3D"Title" Type=3D"Text" X=3D"15" Y=3D"6" Width=3D"200" = Height=3D"15" Transparent=3D"yes" NoPrefix=3D"yes"> <Text>[DlgTitleFont]Custom Setup</Text> </Control> <Control Id=3D"BannerLine" Type=3D"Line" X=3D"0" Y=3D"44" Width=3D"370" = Height=3D"0" /> <Control Id=3D"Box" Type=3D"GroupBox" X=3D"210" Y=3D"81" Width=3D"140" = Height=3D"98" /> <Control Id=3D"ItemDescription" Type=3D"Text" X=3D"215" Y=3D"90" = Width=3D"131" Height=3D"30"> <Text>Multiline description of the currently selected item.</Text> <Subscribe Event=3D"SelectionDescription" Attribute=3D"Text" /> </Control> <Control Id=3D"ItemSize" Type=3D"Text" X=3D"215" Y=3D"130" Width=3D"131" = Height=3D"45"> <Text>The size of the currently selected item.</Text> <Subscribe Event=3D"SelectionSize" Attribute=3D"Text" /> </Control> <Control Id=3D"Location" Type=3D"Text" X=3D"75" Y=3D"200" Width=3D"215" = Height=3D"20"> <Text><The selection's path></Text> <Subscribe Event=3D"SelectionPath" Attribute=3D"Text" /> <Subscribe Event=3D"SelectionPathOn" Attribute=3D"Visible" /> <Condition Action=3D"hide">Installed</Condition> </Control> <Control Id=3D"LocationLabel" Type=3D"Text" X=3D"25" Y=3D"200" = Width=3D"50" Height=3D"10" Text=3D"Location:"> <Subscribe Event=3D"SelectionPathOn" Attribute=3D"Visible" /> <Condition Action=3D"hide">Installed</Condition> </Control> </Dialog> |