bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: addCDKScrollItem function in CDK


From: Thomas Dickey
Subject: RE: addCDKScrollItem function in CDK
Date: Thu, 24 Mar 2005 15:31:56 -0500 (EST)

On Thu, 24 Mar 2005, Fu Steve X wrote:

Thanks for the quick response!

I checked out the latest CDK tarball and played with it. The new
addCDKScrollItem did work for normal case where the initial listSize is
greater than the height of the SCROLL. In this case you have to scroll up
and down to view the whole list.

But when the initial listSize is less than the height of the SCROLL, you can
only view the a SCROLL of effective height as the initial listSize even you
already added some items and the defined height is larger. This is on
RedHat9.

yes - I hadn't looked closely at scroll.c for a while, and was puzzling
over that part of it last night. But I can see that it would do what you're describing. (will investigate to see what improvement can be made).

It appears the ToggleSize didn't get incremented in addCDKScrollItem. Please
take a look into it.

yes - I didn't notice that (I see it's not updated for deleteCDKScrollItem either). But that wouldn't explain the core dump (unless toggleSize is zero, and you are for instance using Sun's curses - I don't recall if it does any error checking for that case).

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]