Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Scrolling a ListBox (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: License code problems?
Next thread: TextEncoding of the System Font?


Re: OpenBase Plugin 3.0a2 for REALbasic   -   Luís Eugênio <l
  Scrolling a ListBox   -   Stéphane Pinel <
   Re: Scrolling a ListBox   -   Seth Willits
    Re: Scrolling a ListBox   -   Stéphane Pinel <
     Re: Scrolling a ListBox   -   Seth Willits
     Re: Scrolling a ListBox   -   Alexander Traud
      Re: Scrolling a ListBox   -   Stéphane Pinel <
       Re: Scrolling a ListBox   -   Alexander Traud
        Re: Scrolling a ListBox   -   Stéphane Pinel <

Scrolling a ListBox
Date: 31.07.02 18:40 (Wed, 31 Jul 2002 19:40:54 +0200)
From: Stéphane Pinel <
Is there a way to accelerate ListBox vertical scrolling ? Once I get a
hundred rows, scrolling is almost unacceptable from the users
perspective....

Thanks

Re: Scrolling a ListBox
Date: 31.07.02 19:03 (Wed, 31 Jul 2002 11:03:45 -0700)
From: Seth Willits
On 7/31/02 10:40 AM, the NSA intercepted the following message from
"Stéphane Pinel" <<email address removed>>:

> Is there a way to accelerate ListBox vertical scrolling ? Once I get a
> hundred rows, scrolling is almost unacceptable from the users
> perspective....

Ditch the listbox scrollbar and slap a normal scrollbar right up beside it.
From there you can use: listbox1.scrollposition = me.value. Here you can
change the LineStep value and more lines will be scrolled with every click.
You can get really fancy and make it so if the user holds down the
scrollbutton for a very long time the scrolling actually gets faster by
changing the linestep value.

Seth Willits
---------------------------------------------------------------------------
President and Head Developer of Freak Software - http://www.freaksw.com
Q&A Columnist for REALbasic Developer Magazine - http://www.rbdeveloper.com

"Only two things are infinite, the universe and human stupidity, and I'm not
sure about the former."
-- Albert Einstein
---------------------------------------------------------------------------




---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: Scrolling a ListBox
Date: 31.07.02 19:24 (Wed, 31 Jul 2002 20:24:16 +0200)
From: Stéphane Pinel <
Le 31/07/02 20:03, « Seth Willits » <<email address removed>> a écrit :

> On 7/31/02 10:40 AM, the NSA intercepted the following message from
> "Stéphane Pinel" <<email address removed>>:
>
>> Is there a way to accelerate ListBox vertical scrolling ? Once I get a
>> hundred rows, scrolling is almost unacceptable from the users
>> perspective....
>
> Ditch the listbox scrollbar and slap a normal scrollbar right up beside it.
>> From there you can use: listbox1.scrollposition = me.value. Here you can
> change the LineStep value and more lines will be scrolled with every click.
> You can get really fancy and make it so if the user holds down the
> scrollbutton for a very long time the scrolling actually gets faster by
> changing the linestep value.
>
Thanks Seth, I just did it but in fact, it doesn't accelerate the scrolling
because the time take to pass from a lineStep to the next is proportionally
longer than when it does from one to one. When I click down in the scrollbar
, I get a waiting cursor and the process is very very slow. It's a big
problem because users will not accept this :-(

Thanks anyway.

--
Sté

Re: Scrolling a ListBox
Date: 31.07.02 19:35 (Wed, 31 Jul 2002 11:35:22 -0700)
From: Seth Willits
On 7/31/02 11:24 AM, the NSA intercepted the following message from
"Stéphane Pinel" <<email address removed>>:

>> Ditch the listbox scrollbar and slap a normal scrollbar right up beside it.
>> From there you can use: listbox1.scrollposition = me.value. Here you can
>> change the LineStep value and more lines will be scrolled with every click.
>> You can get really fancy and make it so if the user holds down the
>> scrollbutton for a very long time the scrolling actually gets faster by
>> changing the linestep value.
>>
> Thanks Seth, I just did it but in fact, it doesn't accelerate the scrolling
> because the time take to pass from a lineStep to the next is proportionally
> longer than when it does from one to one. When I click down in the scrollbar
> , I get a waiting cursor and the process is very very slow. It's a big
> problem because users will not accept this :-(

Hmmm... I'll see what I can come up with.


Seth Willits
---------------------------------------------------------------------------
President and Head Developer of Freak Software - http://www.freaksw.com
Q&A Columnist for REALbasic Developer Magazine - http://www.rbdeveloper.com

"Don't worry, I'll get it.....eventually."
-- Me
---------------------------------------------------------------------------



---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: Scrolling a ListBox
Date: 31.07.02 19:42 (Wed, 31 Jul 2002 20:42:50 +0200)
From: Alexander Traud
> Thanks Seth, I just did it but in fact, it doesn't accelerate the scrolling
> because the time take to pass from a lineStep to the next is proportionally
> longer than when it does from one to one. When I click down in the scrollbar
> , I get a waiting cursor and the process is very very slow. It's a big
> problem because users will not accept this :-(

You work with Textconverters, don't you? This is a bug currently within the
Classic ListBox if the String is has a "known" Encoding which is not
Unicode.

Kill the encoding either via ReplaceAll(), or set it to unknown via
GetTextEncoding(&hFFFF) before you add the text to the list. Or use Unicode
Meta.

Thanks to http://www.elfdata.com/programmer/faqrbunicode.html

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: Scrolling a ListBox
Date: 31.07.02 21:53 (Wed, 31 Jul 2002 22:53:47 +0200)
From: Stéphane Pinel <
Le 31/07/02 20:42, « Alexander Traud » <<email address removed>> a écrit :

>> Thanks Seth, I just did it but in fact, it doesn't accelerate the scrolling
>> because the time take to pass from a lineStep to the next is proportionally
>> longer than when it does from one to one. When I click down in the scrollbar
>> , I get a waiting cursor and the process is very very slow. It's a big
>> problem because users will not accept this :-(
>
> You work with Textconverters, don't you?

Yes. In fact, I get ISO data from a MySQL database and then convert it into
something French readable usin TextConverter etc. But this is done before
using the ListBox !?

>This is a bug currently within the
> Classic ListBox if the String is has a "known" Encoding which is not
> Unicode.

I'm using ListBox in OS X.

>
> Kill the encoding either via ReplaceAll(), or set it to unknown via
> GetTextEncoding(&hFFFF)

Can do that because I going to loose French special characters.

> before you add the text to the list. Or use Unicode
> Meta.
>
> Thanks to http://www.elfdata.com/programmer/faqrbunicode.html

Thanks for this information !

A+

--
St

Re: Scrolling a ListBox
Date: 31.07.02 22:21 (Wed, 31 Jul 2002 23:21:43 +0200)
From: Alexander Traud
>> This is a bug currently within the Classic ListBox if the String is has a
>> "known" Encoding which is not Unicode.
> I'm using ListBox in OS X.

Well then you shouldn't be affected by "my" problem...I only get it within
Classic.

>> You work with Textconverters, don't you?
> Yes. In fact, I get ISO data from a MySQL database and then convert it into
> something French readable usin TextConverter etc. But this is done before
> using the ListBox !?

Yes. It is about this new RB 4.5 String encoding info which are attached
after they were passed through a TextConverter.

>> Kill the encoding either via ReplaceAll(), or set it to unknown via
>> GetTextEncoding(&hFFFF)
> Can do that because I going to loose French special characters.

No. I meant not "changing" the encoding, only kill this bit information
which goes along with the String. Which Encoding do you use? French is and
should be MacRoman or Unicode compatible. Try for example a
ReplaceAll( text, chr(00), chr(00)) before adding to the ListBox if you do
not use UTF-16.

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: Scrolling a ListBox
Date: 01.08.02 00:41 (Thu, 01 Aug 2002 01:41:43 +0200)
From: Stéphane Pinel <
Le 31/07/02 23:21, « Alexander Traud » <<email address removed>> a écrit :

...
>>> You work with Textconverters, don't you?
>> Yes. In fact, I get ISO data from a MySQL database and then convert it into
>> something French readable usin TextConverter etc. But this is done before
>> using the ListBox !?
>
> Yes. It is about this new RB 4.5 String encoding info which are attached
> after they were passed through a TextConverter.

No matter where TextConverter is used ?

>
>
>>> Kill the encoding either via ReplaceAll(), or set it to unknown via
>>> GetTextEncoding(&hFFFF)
>> Can do that because I going to loose French special characters.
>
> No. I meant not "changing" the encoding, only kill this bit information
> which goes along with the String. Which Encoding do you use? French is and
> should be MacRoman or Unicode compatible. Try for example a
> ReplaceAll( text, chr(00), chr(00)) before adding to the ListBox if you do
> not use UTF-16.

Thanks Alexander.

I've placed "ReplaceAll..." before adding row into but nothing has changed.
The ListBox scrolling is horribly slow (each click on the down arrow
generates the appearance of the watch cursor, so when I keep mouse down, I
get a constant watch cursor and this is so slow. No user will accept this !)

Is someone else experiencing troubles with ListBox scrolling ?

A+
--
St