|
|
#1 |
|
Junior Member
|
Filling a textbox from file
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. |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
You can't use rich text in a plain text box.
InstallOptionsEx might have a rich text control which you can use. -Stu |
|
|
|
|
|
#3 |
|
Junior Member
|
Eek, I'm using ModernUI, and I don't think that InstallOptionsEx works with that.
|
|
|
|
|
|
#4 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
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 |
|
|
|
|
|
#5 |
|
Junior Member
|
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 |
|
|
|
|
|
#6 |
|
Senior Member
Join Date: Mar 2006
Location: France
Posts: 212
|
I have the same problem of Joudoki.
Is somebody found the solution? Last edited by SuperPat; 18th July 2006 at 18:05. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|