a.guelle
Posts: 97
Joined: Tue May 19, 2015 2:23 pm

[solved] Is an Edit Box limited to 252 lines?

Dear AI-Team,

I just realized that an Edit Box is limited to 252 characters. Changing the property Text {260} to anything bigger does not change this behaviour (AI 16.3).
Any ideas if this can be enhanced?

Best regards,

Angelo
Attachments
2019-10-04_09h57_49.png
2019-10-04_09h57_49.png (60.93 KiB) Viewed 10146 times
Last edited by a.guelle on Wed Oct 23, 2019 10:50 am, edited 1 time in total.
a.guelle
Posts: 97
Joined: Tue May 19, 2015 2:23 pm

Re: Is an Edit Box limited to 252 lines?

Hi, thanx for the link.

Which property in the UI of Advanced Installer sets TextBox.MaxLength?
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Is an Edit Box limited to 252 lines?

Hi,

Please accept my apologies for the delayed reply on this.

I am not so sure why this happens. Can you please send us the .aip (project file) to support at advancedinstaller dot com so we can investigate its settings?

If you cannot share with us your project file, then you can try to isolate the behavior in a buildable sample (.aip + its referenced files) which we can build and test on our side.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Is an Edit Box limited to 252 lines?

Hi,

I have tested the setup configuration but I cannot replicate the behavior. The only behavior I can replicate is that when you set the "Text" attribute to {260} and you type in (multiline) the following input:

Code: Select all

123456789012345678901234567890123456789012345678901234567890
123456789012345678901234567890123456789012345678901234567890
123456789012345678901234567890123456789012345678901234567890
123456789012345678901234567890123456789012345678901234567890
123456789012
you can no longer type in any additional character. But please note that even you see only 252 visible characters, the above input includes 260 characters. There are 4 new lines invisible characters (don't know for sure but I assume a \n sequence) which count 8 chars I suppose.

To double check on this just copy and paste the above input in a text editor tool (e.g. Notepad++), select it and you will notice the selection includes 260 chars.

If you want to be able input a large number of characters into your edit box control just set the "Text" attribute to {0} , this will allow you to enter up to 2147483646 characters.

If there is anything else we can help you with just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
a.guelle
Posts: 97
Joined: Tue May 19, 2015 2:23 pm

Re: Is an Edit Box limited to 252 lines?

Hi Daniel,

thank you, this works as expected.

I realized tha somehow I was able to to change the property, selected another dialog and when I switched back the property was reset. So my property change was never saved. After a few tries I was able to save it and it works as expected.
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: [solved] Is an Edit Box limited to 252 lines?

You are always welcome.

I am glad this was sorted out.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”