Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Filling a textbox from file (http://forums.winamp.com/showthread.php?t=249911)

Joudoki 28th June 2006 19:18

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.

Afrow UK 29th June 2006 12:51

You can't use rich text in a plain text box.
InstallOptionsEx might have a rich text control which you can use.

-Stu

Joudoki 29th June 2006 17:00

Eek, I'm using ModernUI, and I don't think that InstallOptionsEx works with that.

Afrow UK 29th June 2006 17:13

MUI uses MUI_INSTALLOPTIONS_DISPLAY to mask InstallOptions::Dialog.
Just use InstallOptionsEx::Dialog instead.
You can still use the other MUI_INSTALLOPTIONS_* macros though (like READ, EXTRACT etc)

-Stu

Joudoki 29th June 2006 22:03

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

SuperPat 18th July 2006 17:44

I have the same problem of Joudoki.

Is somebody found the solution?


All times are GMT. The time now is 05:58.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.