- NSIS Discussion
- 1024 char limit in text dispaly of custom page
Archive: 1024 char limit in text dispaly of custom page
is99
13th March 2007 18:11 UTC
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.
is99
13th March 2007 18:19 UTC
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?
Red Wine
13th March 2007 18:31 UTC
Did you try to add the entire text into custom.ini e.g.
State=bla bla
or it should be set at runtime?
is99
13th March 2007 18:33 UTC
Yes I tryed to put it inside the ini file but it dosnt work :(
And no I dont need to set it ar runtime
is99
13th March 2007 18:54 UTC
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)
Red Wine
13th March 2007 18:57 UTC
you may add as many license pages as you like, anyway this also works fine,
is99
13th March 2007 19:02 UTC
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 :(
Anders
14th March 2007 00:22 UTC
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
Takhir
14th March 2007 07:51 UTC
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).
Red Wine
15th March 2007 17:58 UTC
@ Anders
Great piece of code though I can't manage to make it load from external file...
Could you please :)