[comp.windows.ms] Edit control windows

tracy@cory.Berkeley.EDU (Tracy Elmore) (09/30/90)

 I have not been able to figure out a way to increase the size of an
 edit control.  How much text will an edit control  handle? I heard
 somewhere that it was up to 64K, but I am  not sure.  If it is 64K
 are there ways to increase it?  Does the momory model under which
 the code was compoiled make a difference?

 Thanks in advance,
 Tracy

patrickd@chinet.chi.il.us (Patrick Deupree) (10/09/90)

In article <28340@pasteur.Berkeley.EDU> tracy@cory.Berkeley.EDU (Tracy Elmore) writes:
>
> I have not been able to figure out a way to increase the size of an
> edit control.  How much text will an edit control  handle? I heard
> somewhere that it was up to 64K, but I am  not sure.  If it is 64K
> are there ways to increase it?  Does the momory model under which
> the code was compoiled make a difference?

No dice on increasing the "size" of an Edit control.  They're stuck at
64K and there's nothing that can be done to increase the size of one.
However, it is possible, I think, to subclass the editcontrol and create a
"virtual" edit control.  One that would load 64K at a time and scroll through
the file when it needs more text for the edit control.  Due to the adjustments
necessary to the scroll bar it's not the easiest process, but I'm pretty sure
it's possible.

Of course, the other choice is to create you're own edit Window.  @:)

Patrick
-- 
"What's in a name?  That which we call a rose by any other name would smell
 as sweet."             William Shakespeare
Patrick Deupree ->	patrickd@chinet.chi.il.us   (708) 328-3800
(Please note there are both a patrick and a patrickd at this site)