Ok, so I'm making a license page that has a print button on it, and I've got it all set up; However, I don't know how to read the contents of my License Agreement file and then put that into the State (or text) of the textbox. Any help greatly appreciated 🙂
Here's my textbox field:
[Field 1]
Type=Text
Left=8
Top=8
Right=288
Bottom=92
Flags=MULTILINE|VSCROLL|READONLY
State=LicenseTextHere
Oh, and my license agreement is in .rtf format.
Filling a textbox from file
6 posts
You can't use rich text in a plain text box.
InstallOptionsEx might have a rich text control which you can use.
-Stu
InstallOptionsEx might have a rich text control which you can use.
-Stu
Eek, I'm using ModernUI, and I don't think that InstallOptionsEx works with that.
MUI uses MUI_INSTALLOPTIONS_DISPLAY to mask InstallOptions:😁ialog.
Just use InstallOptionsEx:😁ialog instead.
You can still use the other MUI_INSTALLOPTIONS_* macros though (like READ, EXTRACT etc)
-Stu
Just use InstallOptionsEx:😁ialog instead.
You can still use the other MUI_INSTALLOPTIONS_* macros though (like READ, EXTRACT etc)
-Stu
Ok, well I used the InstallOptionsEx. However, I have two problems:
1) There is no vertical scroll bar
2) It scrolls to the very bottom of the license agreement when it first shows.
3) Also, everything is selected when it first shows!
Here's my file:
[Settings]
NumFields=3
[Field 1]
Type=RichText
Left=8
Top=8
Right=288
Bottom=92
Flags=MULTILINE|VSCROLL|READONLY
State=License.rtf
[Field 2]
Type=Label
Left=8
Top=100
Right=288
Bottom=120
Text=You must agree to these terms before continuing. You may print out a copy of the license agreement for future reference.
[Field 3]
Type=CheckBox
Left=128
Top=120
Right=160
Bottom=136
Text=Print
1) There is no vertical scroll bar
2) It scrolls to the very bottom of the license agreement when it first shows.
3) Also, everything is selected when it first shows!
Here's my file:
[Settings]
NumFields=3
[Field 1]
Type=RichText
Left=8
Top=8
Right=288
Bottom=92
Flags=MULTILINE|VSCROLL|READONLY
State=License.rtf
[Field 2]
Type=Label
Left=8
Top=100
Right=288
Bottom=120
Text=You must agree to these terms before continuing. You may print out a copy of the license agreement for future reference.
[Field 3]
Type=CheckBox
Left=128
Top=120
Right=160
Bottom=136
Text=Print
I have the same problem of Joudoki.
Is somebody found the solution?
Is somebody found the solution?