Old 28th June 2006, 19:18   #1
Joudoki
Junior Member
 
Join Date: Jun 2006
Location: Boulder, CO
Posts: 8
Send a message via AIM to Joudoki Send a message via Yahoo to Joudoki
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.
Joudoki is offline   Reply With Quote
Old 29th June 2006, 12:51   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
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
Afrow UK is offline   Reply With Quote
Old 29th June 2006, 17:00   #3
Joudoki
Junior Member
 
Join Date: Jun 2006
Location: Boulder, CO
Posts: 8
Send a message via AIM to Joudoki Send a message via Yahoo to Joudoki
Eek, I'm using ModernUI, and I don't think that InstallOptionsEx works with that.
Joudoki is offline   Reply With Quote
Old 29th June 2006, 17:13   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
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
Afrow UK is offline   Reply With Quote
Old 29th June 2006, 22:03   #5
Joudoki
Junior Member
 
Join Date: Jun 2006
Location: Boulder, CO
Posts: 8
Send a message via AIM to Joudoki Send a message via Yahoo to Joudoki
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
Joudoki is offline   Reply With Quote
Old 18th July 2006, 17:44   #6
SuperPat
Senior Member
 
SuperPat's Avatar
 
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.
SuperPat is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump