mIRC Home    About    Download    Register    News    Help

Print Thread
#223178 17/07/10 02:23 AM
Joined: Apr 2010
Posts: 969
F
Hoopy frood
OP Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969


Not sure if it's intensional or not, but the dialog editbox has a 30002b limit on it frown

Code:
  edit "", 1, 5 5 690 300, multi return hsbar vsbar


I am SReject
My Stuff
Joined: Jul 2006
Posts: 4,211
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,211
That's why the 'rich' propriety has been added, it let you make an unlimited editbox.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Apr 2010
Posts: 969
F
Hoopy frood
OP Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
Even with the "rich" poperty added, I am still limited to 30002b


I am SReject
My Stuff
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
I can confirm this, but I'm not sure if this is intentional or not.

Code:
dialog xyz { 
  size -1 -1 420 320
  edit "", 1, 5 5 400 300, edit vsbar multi
}


1. /dialog xyz xyz
2. //did -a xyz 1 $str(x,4000) (repeat many times)
3. //echo -a $calc($did(xyz,1).lines * $did(xyz,1,1).len)
4. Repeat from step 2 a few times. Result maxes at 30012


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Joined: Dec 2002
Posts: 5,510
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,510
The "limit N" property allows you to set the number of characters in an editbox, however a standard editbox can only store a maximum of 30k of text. In order to use more than 30k of text in a custom dialog editbox, you will need to specify the "rich" property and the "limit N" property.


Link Copied to Clipboard