mIRC Homepage

Dialog Edit Box Line Cap?

Posted By: Zmodem

Dialog Edit Box Line Cap? - 28/09/08 07:03 PM

Okay, so I tried searching for numerous things, like edit box cap and limit, etc, but didn't quite find anything on this.

I'm using /loadbuf to load files into a certain edit box. I have a file that is almost 2,000 lines of code long and I want it to load into the edit box. However, mIRC seems to only allow up to 655-660 lines into an edit box. Is this a bug or just a limit that comes with mIRC's edit boxes? Just curious, thanks!
Posted By: argv0

Re: Dialog Edit Box Line Cap? - 28/09/08 08:41 PM

AFAIK the basic edit controls in Windows are limited to 64kb of data. I think only the richedit controls are able to store "unlimited" data. mIRC uses the standard edit controls. This may explain your predicament.

Can you tell us how big the file is, in bytes, as well as how big the file *would* be if it was only those first ~655 lines? If it approaches 64kb that would be the likely cause.

Also if you have any $chr(26) (the actual character, not the identifier) characters in your script they will cause /loadbuf to stop reading.
Posted By: Zmodem

Re: Dialog Edit Box Line Cap? - 30/09/08 03:19 PM

Ahh, it makes sense now. Although I do have a file larger than 64kb that I'm trying to view, I have one that is 46.0kb that will not show either. The following is the list of the files before and after the mIRC cut, size and lines:

Code:
64kb file/1932 lines
  mIRC cuts to: 28.6kb file/658 lines

46.0kb file/995 lines
  mIRC cuts to: 29.2kb file/659 lines


Seems rather odd, to me, but I'm just not understanding it.
Posted By: _Memo

Re: Dialog Edit Box Line Cap? - 07/10/08 07:11 AM

You're not using the 'limit' item in your dialog table, are you =) ? Have you tried using /filter ?
Posted By: Khaled

Re: Dialog Edit Box Line Cap? - 11/10/08 01:33 PM

mIRC uses the standard Windows editbox by default in most dialogs, including custom dialogs. The limit for the standard editbox is between 32k and 64k. I'll add support for richedit editboxes in custom dialogs for the next version however, which will allow you to specify an arbitrary limit using the "limit" custom dialog parameter.
Posted By: Zmodem

Re: Dialog Edit Box Line Cap? - 18/10/08 06:37 PM

Hey, Khaled, thanks for the heads-up! I will definitely be on the lookout for that feature! smile

Thanks again!
Posted By: vexed2

Re: Dialog Edit Box Line Cap? - 19/10/08 11:43 AM

Originally Posted By: Zmodem
Hey, Khaled, thanks for the heads-up! I will definitely be on the lookout for that feature! smile

Thanks again!



Look no further. http://www.mirc.com/get.html wink
Posted By: Zmodem

Re: Dialog Edit Box Line Cap? - 26/10/08 12:54 AM

Downloaded it already the day it was out. Hope he adds colors and stuff to the rich edit boxes, too, font changes, etc, support.
© 2020 mIRC Discussion Forums