Archive: 1024 char limit in text dispaly of custom page


1024 char limit in text dispaly of custom page
I have a custom page that need to display a large amount of text. Something like license agreement.

The problem is that if I try to put there a lot of text I get an error that only 1024 chars can be used.

Is there some other way to dispaly a lof of text ? Maybe from external text file somehow ?

Thanks.


http://nsis.sourceforge.net/Special_Builds


Yes but what if I want something even larger then 8192 ?

I only want to display this text, user dosnt need to change it, I dont need to validate it or anything like this so isn't there some easier way to do it? The standard license page displays large text files so can't I do something like this?


Did you try to add the entire text into custom.ini e.g.
State=bla bla
or it should be set at runtime?


Yes I tryed to put it inside the ini file but it dosnt work :(

And no I dont need to set it ar runtime


http://nsis.sourceforge.net/External_License_file


Yes but here they are using the standard license page and in my case the problem is that I need to use my own custom page (because this page has too many modifications)


you may add as many license pages as you like, anyway this also works fine,


1. I know I can use as many license pages as I want but the problem is that I make many customizations to this page and I wont be able to do them if I will be using standard license page

2. I was doing exactly the same, but in my case I have even larger text and it cuts it :(


There is some code to load an external file into a RichTextEdit without nsis string size limits @ http://forums.winamp.com/showthread....hreadid=231547 The code is not complete but if you cant figure it out, I'll see if I can dig up my working example


The only place in code related to license page is "GetDlgItem $0 $0 1000" - script gets license window handle. On your custom page you can get your target control handle from ini file instead (last NSIS versions).


@ Anders
Great piece of code though I can't manage to make it load from external file...
Could you please :)