1. listview limit

Hi all;

	Is there a limit for the maximum number of caracters that listview can 
handle in one line?


Thanks,

Rubens

new topic     » topic index » view message » categorize

2. Re: listview limit

On Wed, 16 Jul 2003 22:04:19 -0300 (07/17/03 11:04:19)
, <rml at rubis.trix.net> wrote:

>
>
> Hi all;
>
> 	Is there a limit for the maximum number of caracters that listview can 
> handle in one line?
>

Yes, though its really a limit of 64K lines and not characters. To get 
araound this limitation, you need to implement a virtual-list. There are 
some examples of this somewhere, I just can't recall off hand. But 
basically what happens is that your app is responsible for managing the 
text lines, and when Windows needs a line of text, your app is asked to 
supply a line.

-- 

cheers,
Derek Parnell

new topic     » goto parent     » topic index » view message » categorize

3. Re: listview limit

Hi Derek;

I'm using listview to show selected frases, and frases bigger than 255 are 
cut, this is why I asked.
I will do a search for virtual-list.

Thanks
Rubens


At 23:57 16/7/2003, you wrote:
>
>On Wed, 16 Jul 2003 22:04:19 -0300 (07/17/03 11:04:19)
>, <rml at rubis.trix.net> wrote:
>
>>
>>Hi all;
>>
>>         Is there a limit for the maximum number of caracters that 
>> listview can handle in one line?
>
>Yes, though its really a limit of 64K lines and not characters. To get 
>araound this limitation, you need to implement a virtual-list. There are 
>some examples of this somewhere, I just can't recall off hand. But 
>basically what happens is that your app is responsible for managing the 
>text lines, and when Windows needs a line of text, your app is asked to 
>supply a line.
>
>--
>
>cheers,
>Derek Parnell
>
>
>
>TOPICA - Start your own email discussion group. FREE!
>
>

new topic     » goto parent     » topic index » view message » categorize

4. Re: listview limit

On Thu, 17 Jul 2003 00:34:33 -0300 (07/17/03 13:34:33)
, <rml at rubis.trix.net> wrote:

>
>
> Hi Derek;
>
> I'm using listview to show selected frases, and frases bigger than 255 
> are cut, this is why I asked.
> I will do a search for virtual-list.
>

Sorry, but are you saying that the LENGTH of each line is being restricted 
to 255 characters? Can you show me code that does this?

-- 

cheers,
Derek Parnell

new topic     » goto parent     » topic index » view message » categorize

5. Re: listview limit

Hi Derek;

This is the code:


without type_check
include Win32Lib.ew
without warning
with trace
--with profile
--------------------------------------------------------------------------------------------------------------
constant Window1 = createEx( Window, "", 0, 0, 0, 0.999, 0.9, 0, 0 )
constant ListView1 = createEx( ListView, 
{{"Count",100,0},{"Phrases",2000,0}},Window1,0, 0 ,0.99, 
0.9,or_all({LVS_REPORT,LVS_SHOWSELALWAYS}),0)


sequence texto
object bla

setLVStyle(ListView1, {LVS_EX_CHECKBOXES,LVS_EX_FULLROWSELECT})
texto=repeat(123456789,30)
bla = addLVItem( ListView1, 0, {sprint(1),sprint(texto)})
WinMain( Window1,Normal )




At 04:08 17/7/2003, you wrote:
>
>On Thu, 17 Jul 2003 00:34:33 -0300 (07/17/03 13:34:33)
>, <rml at rubis.trix.net> wrote:
>
>>
>>Hi Derek;
>>
>>I'm using listview to show selected frases, and frases bigger than 255 
>>are cut, this is why I asked.
>>I will do a search for virtual-list.
>
>Sorry, but are you saying that the LENGTH of each line is being restricted 
>to 255 characters? Can you show me code that does this?
>
>--
>
>cheers,
>Derek Parnell
>
>
>
>TOPICA - Start your own email discussion group. FREE!
>
>

new topic     » goto parent     » topic index » view message » categorize

6. Re: listview limit

----- Original Message -----=20
From: <rml at rubis.trix.net>
To: "EUforum" <EUforum at topica.com>
Subject: Re: listview limit


>=20
>=20
> Hi Derek;
>=20
> This is the code:
>=20
>=20
> without type_check
> include Win32Lib.ew
> without warning
> with trace
> --with profile
> =
-------------------------------------------------------------------------=
-------------------------------------
> constant Window1 =3D createEx( Window, "", 0, 0, 0, 0.999, 0.9, 0, 0 )
> constant ListView1 =3D createEx( ListView,=20
> {{"Count",100,0},{"Phrases",2000,0}},Window1,0, 0 ,0.99,=20
> 0.9,or_all({LVS_REPORT,LVS_SHOWSELALWAYS}),0)
>=20
>=20
> sequence texto
> object bla
>=20
> setLVStyle(ListView1, {LVS_EX_CHECKBOXES,LVS_EX_FULLROWSELECT})
> texto=3Drepeat(123456789,30)
> bla =3D addLVItem( ListView1, 0, {sprint(1),sprint(texto)})
> WinMain( Window1,Normal )
>=20
>=20
Ok, it seems that Windows does only display the first 259 characters (in =
my case) of a column. It still contains all the text though. If you add =
these three lines just before the WinMain() call.

 texto =3D ""
 texto =3D getLVItemText(ListView1,1,2)
 setText(Window1, {"Item has %d chars", length(texto)})

You'll see that all the text is still there, just not all of it is =
displayed.

--=20
Derek

new topic     » goto parent     » topic index » view message » categorize

7. Re: listview limit

Ok Derek,

so, it's not possible to show in display more than 259 caracters using 
listview ?
What you recommend me to use instead of listview ? MleText ?

Thanks,
Rubens

At 11:45 17/7/2003, you wrote:
>
>
>----- Original Message -----
>From: <rml at rubis.trix.net>
>To: "EUforum" <EUforum at topica.com>
>Sent: Thursday, July 17, 2003 11:36 PM
>Subject: Re: listview limit
>
>
> > Hi Derek;
> >
> > This is the code:
> >
> >
> > without type_check
> > include Win32Lib.ew
> > without warning
> > with trace
> > --with profile
> > 
>
> --------------------------------------------------------------------------------------------------------------
> > constant Window1 = createEx( Window, "", 0, 0, 0, 0.999, 0.9, 0, 0 )
> > constant ListView1 = createEx( ListView,
> > {{"Count",100,0},{"Phrases",2000,0}},Window1,0, 0 ,0.99,
> > 0.9,or_all({LVS_REPORT,LVS_SHOWSELALWAYS}),0)
> >
> >
> > sequence texto
> > object bla
> >
> > setLVStyle(ListView1, {LVS_EX_CHECKBOXES,LVS_EX_FULLROWSELECT})
> > texto=repeat(123456789,30)
> > bla = addLVItem( ListView1, 0, {sprint(1),sprint(texto)})
> > WinMain( Window1,Normal )
> >
> >
>Ok, it seems that Windows does only display the first 259 characters (in 
>my case) of a column. It still contains all the text though. If you add 
>these three lines just before the WinMain() call.
>
>  texto = ""
>  texto = getLVItemText(ListView1,1,2)
>  setText(Window1, {"Item has %d chars", length(texto)})
>
>You'll see that all the text is still there, just not all of it is displayed.
>
>--
>Derek
>
>
>
>TOPICA - Start your own email discussion group. FREE!

new topic     » goto parent     » topic index » view message » categorize

8. Re: listview limit

----- Original Message ----- 
From: "Al Getz" <Xaxo at aol.com>
To: "EUforum" <EUforum at topica.com>
Subject: RE: listview limit


> 
> 
> Derek Parnell wrote:
> > 
> > 
> > On Thu, 17 Jul 2003 00:34:33 -0300 (07/17/03 13:34:33)
> > , <rml at rubis.trix.net> wrote:
> > 
> > >
> > > Hi Derek;
> > >
> > > I'm using listview to show selected frases, and frases bigger than 255 
> > > are cut, this is why I asked.
> > > I will do a search for virtual-list.
> > >
> > 
> > Sorry, but are you saying that the LENGTH of each line is being 
> > restricted 
> > to 255 characters? Can you show me code that does this?
> > 
> > -- 
> > 
> > cheers,
> > Derek Parnell
> > 
> 
> Windows Listview control...
> 
> I've tested WinChecking up to something like 2048 chars in ONE
> column alone, so i KNOW it goes at LEAST that high smile

Al,
is that 2048 VISIBLE characters? I can only get it to DISPLAY the first 259
characters. The column still holds all the text, but only displays the first part
of it.

-- 
Derek

new topic     » goto parent     » topic index » view message » categorize

9. Re: listview limit

----- Original Message ----- 
From: "Al Getz" <Xaxo at aol.com>
To: "EUforum" <EUforum at topica.com>
Subject: RE: listview limit


[snip]
 
> So are you in fact using in-place editing then?
 
Its not my problem; its Rubens that's asking. I'm just reporting what I've found
too.

new topic     » goto parent     » topic index » view message » categorize

10. Re: listview limit

----- Original Message -----=20
From: <rml at rubis.trix.net>
To: "EUforum" <EUforum at topica.com>
Subject: Re: listview limit


>=20
>=20
> Ok Derek,
>=20
> so, it's not possible to show in display more than 259 caracters using =

> listview ?
> What you recommend me to use instead of listview ? MleText ?

The recommendation is to use other controls AS WELL AS the listview. =
Such that when a line in the listview gets focus, you display the column =
details in another set of controls (as required) to display and edit the =
listview contents.=20

So, when the column with the long text get focus, use a MleText control =
receive a copy of the long text.=20

--=20
Derek

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu