This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- ScrollabeText control not displaying RTF file
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 16, 2016
11:38 AM
ScrollabeText control not displaying RTF file
Hi All,
I've been struggling with this issue on and off for a little over a week now and have tried every solution I could find both on these forums and on other sites.
The problem I'm having is with a ScrollableText control on a custom dialog. Since I was seemingly blocked from adding the ScrollableText control to a newly created custom dialog, I copied the control from the sdLicense (RTF) dialog and pasted it onto my new dialog.
I then created a very small, very simple RTF file in WordPad and added it to the support files, as per the help/documentation. I then browsed to the source location for the file on the dev machine and added the RTF file as the source of the ScrollableText control. At this point, the control shows the text formatted properly.
I built the installer and ran it and when I got to the dialog the ScrollableText control displayed\License.rtf rather than the text.
This has been particularly vexing as it is very important I be able to display the EULA to the folks installing the software.
I will note that I am using an InstallScript MSI project.
Any help on overcoming this issue would be much appreciated.
Regards,
Daniel
I've been struggling with this issue on and off for a little over a week now and have tried every solution I could find both on these forums and on other sites.
The problem I'm having is with a ScrollableText control on a custom dialog. Since I was seemingly blocked from adding the ScrollableText control to a newly created custom dialog, I copied the control from the sdLicense (RTF) dialog and pasted it onto my new dialog.
I then created a very small, very simple RTF file in WordPad and added it to the support files, as per the help/documentation. I then browsed to the source location for the file on the dev machine and added the RTF file as the source of the ScrollableText control. At this point, the control shows the text formatted properly.
I built the installer and ran it and when I got to the dialog the ScrollableText control displayed
This has been particularly vexing as it is very important I be able to display the EULA to the folks installing the software.
I will note that I am using an InstallScript MSI project.
Any help on overcoming this issue would be much appreciated.
Regards,
Daniel
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 21, 2016
12:20 PM
It appears that, maybe, the support files I am using to populate this dialog are not being copied to the "supportdir" location by the time I am wanting to show the dialog (right after welcome, from the "ask dest path" dialog).
It seems likely that is the reason why it is simply showing the file name.
Can someone confirm when the "support" files are supposed to be copied and why they aren't copied by the time OnFirstUIBefore is fired?.
Thanks,
Daniel
It seems likely that is the reason why it is simply showing the file name.
Can someone confirm when the "support" files are supposed to be copied and why they aren't copied by the time OnFirstUIBefore is fired?.
Thanks,
Daniel
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 22, 2016
02:32 PM
You need to write code to set the multi-line edit field. The following sample code reads License.rtf located in the support folder and set the contents to the control, SD_MULTEDIT_FIELD1. You may want to add the code to the DLG_INIT event of your custom dialog that displays the Scrollable Text control.
list = ListCreate( STRINGLIST );
if(!ListReadFromFile( list, SUPPORTDIR^"License.rtf" )) then
CtrlSetMLEText( szDlg, SD_MULTEDIT_FIELD1, list );
endif;
ListDestroy( list );