mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2005
Posts: 28
T
Tuxman Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Dec 2005
Posts: 28
Obviously, the /loadbuf command - or the Edit control - has an undocumented character limit.

Given the following alias:

Code:
alias -l fillListText {
  if ($dialog($1) && ($2 isnum) && $3) {
    if ($did($1,$2).lines <= 1) {
      loadbuf -o $1 $2 $3
      did -z $1 $2
    }
  }
}


We want to display the GNU GPL (quite a long file) in the Edit control $did(setup,503).

Code:
fillListText setup 503 media\license.txt


The file is available here: http://minus.com/mB2D5XLc3/

Still something is apparently missing:



I presume this is not intended.


Gamers.IRC team - gamersirc.net
#Gamers.IRC on QuakeNet (sometimes we're there).
Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
Editboxes are known to be limited in the amount of data you can display, however, the "rich" option of editboxes allow you to display an unlimited amount of data, are you using this option?

Edit: it works with that option.

Last edited by Wims; 14/06/12 12:05 PM.

#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Dec 2005
Posts: 28
T
Tuxman Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Dec 2005
Posts: 28
That should be documented IMO.

Thank you for the advice!


Gamers.IRC team - gamersirc.net
#Gamers.IRC on QuakeNet (sometimes we're there).
Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
It is documented laugh
Quote:
edit "text", id, x y w h, style (right, center, multi, pass, read, return, hsbar, vsbar, autohs, autovs, limit N, rich)



#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard