Hi all.
I need to show total information window before installation will be executed.
I do next (CA in VBS):
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Filing ScrollableText at runtime
Started by
nesesser
, Dec 13 2006 18:35
2 replies to this topic
Posted 13 December 2006 - 18:35
CODE |
Const msiViewModifyInsertTemporary = 7 Set viewlist = Database.OpenView("SELECT * FROM `Control` WHERE `Dialog_`='_ScrollText' AND `Control`='ScrollText'") viewlist.Execute Set reclist = Installer.CreateRecord(12) reclist.StringData(1) = "_ScrollText" ' Dialog_ reclist.StringData(2) = "ScrollText" ' Control reclist.StringData(3) = "ScrollableText" ' Type reclist.IntegerData(4) = 21 ' X reclist.IntegerData(5) = 70 ' Y reclist.IntegerData(6) = 307 ' Width reclist.IntegerData(7) = 133 ' Height reclist.IntegerData(8) = 3 ' Attributes reclist.StringData(9) = "" ' , Property reclist.StringData(10) = "Text going here" ' Text reclist.StringData(11) = "" ' Control_Next reclist.StringData(12) = "" ' Help ' insert the temporary record viewlist.Modify msiViewModifyInsertTemporary, reclist Set reclist = Nothing viewlist.Close |
ScrollableText field appears on _ScrollText dialog after it. But it's empty =(
It's still empty if I write some property in Property field.
Im puzzled. Any ideas?
Posted 14 December 2006 - 00:14
The text property must contain RTF text, not ANSI.
RTF is a special format with additional instructions for font, color etc.
Start Wordpad, enter some text, and save it as RTF. Open this file in Notepad: you'll see a large text starting with
{\rtf\ansi
and so on.
Creating RTF is not as hard as it appears.
Why do you create a control at runtime? You can also show/hide a control, depending on conditions.
*Edit*
The RTF format is explained on MSDN. Usually you don't want to use all features, so look up the features you need and write them. Creating RTF viewers is much harder, because they must implement all possibilities of the RTF standard.
RTF is a special format with additional instructions for font, color etc.
Start Wordpad, enter some text, and save it as RTF. Open this file in Notepad: you'll see a large text starting with
{\rtf\ansi
and so on.
Creating RTF is not as hard as it appears.
Why do you create a control at runtime? You can also show/hide a control, depending on conditions.
*Edit*
The RTF format is explained on MSDN. Usually you don't want to use all features, so look up the features you need and write them. Creating RTF viewers is much harder, because they must implement all possibilities of the RTF standard.
Edited by Zweitze, 14 December 2006 - 00:17.
Posted 18 December 2006 - 07:07
Thnks a lot. That is it!
But I'm still puzzled - when I have saved simple TXT file with RTF extention - it opened as RTF without any problem...
Anyway, runtime filing works. Thks.
But I'm still puzzled - when I have saved simple TXT file with RTF extention - it opened as RTF without any problem...
Anyway, runtime filing works. Thks.